joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d7208
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4d7211
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov byte [ebp - 5], cl
mov esi, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x4d73b7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004d7550
xor eax, eax
push ebp
push 0x4d7395
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 8
je 0x4d7260
call fcn.00404960
jmp 0x4d739c
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 8
je 0x4d7323
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 1
je 0x4d72b1
mov eax, dword [ebp - 4]
cmp word [eax + 0x3a], 0
je 0x4d72b1
lea eax, [ebp - 0x10]
call fcn.004d6fd4
push dword [ebp - 0x10]
push 0x4d73d0
push ebx
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004052f0
mov eax, dword [ebp - 0xc]
push eax
mov edi, dword [ebp - 4]
movzx ecx, byte [ebp - 5]
mov edx, esi
mov eax, dword [edi + 0x3c]
call dword [edi + 0x38]
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 4
je 0x4d72e6
lea eax, [ebp - 0x18]
call fcn.004d6fd4
push dword [ebp - 0x18]
push 0x4d73d0
push ebx
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004052f0
mov eax, dword [ebp - 0x14]
call fcn.004053ec
push eax
call sub.kernel32.dll_OutputDebugStringA
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 2
je 0x4d737f
lea eax, [ebp - 0x20]
call fcn.004d6fd4
push dword [ebp - 0x20]
push 0x4d73d0
push ebx
push 0x4d73dc
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.004052f0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.004d71d8
jmp 0x4d737f
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 1
je 0x4d7346
mov eax, dword [ebp - 4]
cmp word [eax + 0x3a], 0
je 0x4d7346
push ebx
mov edi, dword [ebp - 4]
movzx ecx, byte [ebp - 5]
mov edx, esi
mov eax, dword [edi + 0x3c]
call dword [edi + 0x38]
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 4
je 0x4d735c
mov eax, ebx
call fcn.004053ec
push eax
call sub.kernel32.dll_OutputDebugStringA
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 2
je 0x4d737f
lea eax, [ebp - 0x24]
mov ecx, 0x4d73dc
mov edx, ebx
call fcn.00405274
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.004d71d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d739c
mov eax, dword [ebp - 4]
call fcn.004d755c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d73be
lea eax, [ebp - 0x24]
mov edx, 7
call fcn.00404f80
ret
Function at 0x4db410
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov esi, eax
mov byte [esp], 0
xor eax, eax
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 8], eax
mov edi, 1
jmp 0x4db431
inc edi
mov eax, esi
call fcn.0040521c
cmp edi, eax
jg 0x4db443
cmp byte [esi + edi - 1], 0x20
je 0x4db430
mov eax, esi
test eax, eax
je 0x4db44e
sub eax, 4
mov eax, dword [eax]
cmp eax, edi
jl 0x4db510
cmp byte [esi + edi - 1], 0x2e
je 0x4db534
jmp 0x4db510
cmp byte [esi + edi - 1], 0x2e
jne 0x4db4b8
inc dword [esp + 4]
cmp dword [esp + 4], 3
jg 0x4db534
cmp dword [esp + 8], 0xff
jg 0x4db534
xor eax, eax
mov dword [esp + 8], eax
mov ebp, esi
test ebp, ebp
je 0x4db49c
sub ebp, 4
mov ebp, dword [ebp]
cmp ebp, edi
jg 0x4db4a4
mov bl, 1
jmp 0x4db4b2
movzx eax, byte [esi + edi]
add al, 0xd0
sub al, 0xa
setb bl
xor bl, 1
test bl, bl
jne 0x4db534
jmp 0x4db50f
movzx eax, byte [esi + edi - 1]
add al, 0xd0
sub al, 0xa
jae 0x4db4dd
mov eax, dword [esp + 8]
add eax, eax
lea eax, [eax + eax*4]
movzx edx, byte [esi + edi - 1]
add eax, edx
sub eax, 0x30
mov dword [esp + 8], eax
jmp 0x4db50f
inc edi
mov eax, esi
call fcn.0040521c
cmp edi, eax
jg 0x4db4ef
cmp byte [esi + edi - 1], 0x20
je 0x4db4dc
mov dword [esp + 0xc], esi
cmp dword [esp + 0xc], 0
je 0x4db507
mov eax, dword [esp + 0xc]
sub eax, 4
mov eax, dword [eax]
mov dword [esp + 0xc], eax
cmp edi, dword [esp + 0xc]
jle 0x4db534
jmp 0x4db51f
inc edi
mov eax, esi
call fcn.0040521c
cmp edi, eax
jle 0x4db466
cmp dword [esp + 4], 3
jne 0x4db534
cmp dword [esp + 8], 0xff
jg 0x4db534
mov byte [esp], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4ee5b8
Capabilities:
Hide graphical window

Disassembly:
push ebx
add esp, 0xfffffff0
mov ebx, eax
mov eax, ebx
call fcn.004ee018
test byte [ebx + 0x285], 4
jne 0x4ee64d
mov edx, esp
mov eax, ebx
call fcn.0045bbc4
push esp
mov eax, ebx
call fcn.00464258
push eax
push 0
mov eax, ebx
test eax, eax
je 0x4ee5ed
sub eax, 0xfffffd34
push eax
push 0
push 0xfffffffffffffffb
mov eax, dword [ebx + 0x260]
push eax
mov eax, dword [eax]
call dword [eax + 0x2c]
cmp dword [ebx + 0x274], 0
jne 0x4ee61e
mov ecx, dword [0x603e58]
mov dl, 1
mov eax, dword [0x481184]
call fcn.00411330
call fcn.004048b4
mov eax, ebx
call fcn.004eeb90
cmp byte [ebx + 0x57], 0
jne 0x4ee654
mov eax, ebx
call fcn.00464468
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4ee654
push 0
mov eax, ebx
call fcn.00464468
push eax
call sub.user32.dll_ShowWindow
jmp 0x4ee654
mov eax, ebx
call fcn.004605d4
add esp, 0x10
pop ebx
ret

Function at 0x4f2adc
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4f2b43
push dword fs:[eax]
mov dword fs:[eax], esp
push esi
call sub.user32.dll_GetWindowTextLengthA
mov ebx, eax
lea edi, [ebx + 1]
mov edx, edi
lea eax, [ebp - 4]
call fcn.00405680
push edi
mov eax, dword [ebp - 4]
call fcn.004053ec
push eax
push esi
call sub.user32.dll_GetWindowTextA
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404fb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f2b4a
lea eax, [ebp - 4]
call fcn.00404f5c
ret

Function at 0x4f72fc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, eax
push 0x40
push 0x1000
push pe_nt_image_headers32
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4f7386
xor edx, edx
push ebp
push 0x4f7367
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov dword [eax], 0x448b5050
mov dword [eax + 4], 0x44890824
mov dword [eax + 8], 0x58b0424
lea edx, [ebx + 4]
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0x8244489
mov dword [eax + 0x14], 0x25ff9058
mov dword [eax + 0x18], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f7386
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4fb158
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4fb186
mov eax, ebx
call fcn.004fbc0c
cmp dword [ebx + 0x40], 0
je 0x4fb17f
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4fb1f7
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4fb1e9
cmp dword [ebx + 8], 0
je 0x4fb1a8
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4fb1ba
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4fb1e9
cmp dword [ebx + 8], 0
je 0x4fb19b
cmp eax, 3
je 0x4fb1cd
dec eax
jne 0x4fb19b
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4fb19b
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4fb19b
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4fb215
cmp dword [ebx + 0x14], 0xcc
je 0x4fb215
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004fb220
pop ebx
ret

Function at 0x50b904
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004053dc
mov eax, dword [ebp - 8]
call fcn.004053dc
xor eax, eax
push ebp
push 0x50ba21
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov ebx, 0x14
mov dword [ebp - 0x24], 0x14
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x44], 3
mov dword [ebp - 0x3c], 2
mov eax, dword [ebp - 8]
call fcn.004053ec
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], 3
mov eax, 0x50ba34
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x14], eax
push 0
push 0
push 0
push 1
mov eax, dword [ebp - 4]
call fcn.004053ec
push eax
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x50ba06
xor eax, eax
push ebp
push 0x50b9ff
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
lea eax, [ebp - 0x24]
push eax
push 0x4b
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetSetOptionA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x50b9df
push 0
push 0
push 0x25
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetSetOptionA
test eax, eax
jne 0x50b9e3
xor eax, eax
jmp 0x50b9e5
mov al, 1
mov byte [ebp - 9], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50ba06
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50ba28
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404f80
ret
Function at 0x50ba3c
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004053dc
mov eax, dword [ebp - 8]
call fcn.004053dc
mov eax, dword [ebp - 0xc]
call fcn.004053dc
mov eax, dword [ebp + 0xc]
call fcn.004053dc
xor eax, eax
push ebp
push 0x50bbab
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov ebx, 0x14
mov dword [ebp - 0x28], 0x14
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x40], 2
mov eax, dword [ebp - 8]
call fcn.004053ec
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], 3
mov eax, 0x50bbc0
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
push 1
mov eax, dword [ebp - 4]
call fcn.004053ec
push eax
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x50bb88
xor edx, edx
push ebp
push 0x50bb81
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 3
mov eax, dword [ebp + 0xc]
call fcn.004053ec
push eax
mov eax, dword [ebp - 0xc]
call fcn.004053ec
push eax
movzx eax, word [ebp + 8]
push eax
mov eax, dword [ebp - 8]
call fcn.004053ec
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetConnectA
test eax, eax
je 0x50bb6a
push ebx
lea eax, [ebp - 0x28]
push eax
push 0x4b
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetSetOptionA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x50bb61
push 0
push 0
push 0x25
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetSetOptionA
test eax, eax
jne 0x50bb65
xor eax, eax
jmp 0x50bb67
mov al, 1
mov byte [ebp - 0xd], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50bb88
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50bbb2
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404f80
lea eax, [ebp + 0xc]
call fcn.00404f5c
ret
Function at 0x50bbc8
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
mov byte [ebp - 1], 0
mov ebx, 0x14
mov dword [ebp - 0x1c], 0x14
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 3
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x3c], 3
mov dword [ebp - 0x34], 2
mov eax, 0x50bc90
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], 3
mov eax, 0x50bc94
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 1
push 0x50bc90
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x50bc87
xor eax, eax
push ebp
push 0x50bc80
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
lea eax, [ebp - 0x1c]
push eax
push 0x4b
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetSetOptionA
push 0
push 0
push 0x25
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetSetOptionA
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50bc87
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
movzx eax, byte [ebp - 1]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x50bf00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
xor edx, edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x50c112
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x20], 0x105
mov eax, dword [ebp - 0x20]
call fcn.00403010
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x50bf7e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
test eax, eax
je 0x50bf68
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x10]
call fcn.00405154
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50bf85
mov eax, dword [ebp - 0x10]
call fcn.0040302c
ret

Function at 0x50d430
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov bl, 2
lea eax, [ebp - 0xa]
xor ecx, ecx
mov edx, 0xa
call fcn.00403830
push 0xa
lea eax, [ebp - 0xa]
push eax
push 0xd
push 0x400
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
je 0x50d46a
cmp byte [ebp - 0xa], 0x31
jne 0x50d468
mov bl, 1
jmp 0x50d46a
xor ebx, ebx
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50ea84
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 4], edx
mov esi, eax
xor ebx, ebx
mov eax, esi
call fcn.00464808
test al, al
je 0x50eb3d
mov byte [ebp - 9], 0
xor ebx, ebx
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 8], eax
jmp 0x50eb1b
cmp word [esi + 0x652], 0
je 0x50ead5
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 9]
push eax
mov ecx, dword [ebp - 8]
mov edx, esi
mov eax, dword [esi + 0x654]
call dword [esi + 0x650]
cmp byte [ebp - 9], 0
jne 0x50eaf2
cmp dword [ebp - 4], 0
jbe 0x50eaee
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
ja 0x50eaf2
xor ebx, ebx
jmp 0x50eaf4
mov bl, 1
test bl, bl
jne 0x50eb3d
mov eax, dword [0x604134]
mov eax, dword [eax]
cmp byte [eax + 0xa4], 0
jne 0x50eb3d
mov eax, dword [0x604134]
mov eax, dword [eax]
call fcn.0047d2c0
push 1
call sub.kernel32.dll_Sleep_2
test esi, esi
je 0x50eb3d
cmp byte [esi + 0x5e8], 0
jne 0x50eb3d
mov edx, 0xfffffdf3
mov eax, esi
call fcn.004ee9c8
cmp eax, 4
jne 0x50eab2
test bl, bl
sete al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x50fc60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 1], cl
mov ebx, edx
mov esi, eax
mov edi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x50fd13
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x104
call fcn.00403010
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x50fcf6
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, esi
cmp byte [ebp - 1], 0
je 0x50fcae
or eax, 0x8000
mov edx, dword [ebp - 8]
push edx
push 0
push 0
push eax
push 0
call sub.SHFolder.dll_SHGetFolderPathA
mov eax, edi
mov edx, dword [ebp - 8]
call fcn.00405154
test bl, bl
je 0x50fce0
lea edx, [ebp - 0xc]
mov eax, dword [edi]
call fcn.0041200c
mov edx, dword [ebp - 0xc]
mov eax, edi
call fcn.00404fb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50fcfd
mov eax, dword [ebp - 8]
call fcn.0040302c
ret

Function at 0x50fd88
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push esp
push 0x104
call sub.kernel32.dll_GetTempPathA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040504c
add esp, 0x104
pop ebx
ret
Function at 0x5102a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004053dc
xor eax, eax
push ebp
push 0x51033f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.00404f5c
mov eax, dword [ebp - 4]
test eax, eax
je 0x5102e3
sub eax, 4
mov eax, dword [eax]
mov edi, eax
test edi, edi
jle 0x510311
mov esi, 1
lea eax, [ebp - 0x10]
mov edx, ebx
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + esi - 1]
xor dl, cl
call fcn.00405144
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
call fcn.00405228
inc esi
dec edi
jne 0x5102ee
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00404fb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x510346
lea eax, [ebp - 0x10]
call fcn.00404f5c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404f80
ret

Function at 0x510360
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040504c
add esp, 0x104
pop ebx
ret

Function at 0x510448
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040504c
add esp, 0x104
pop ebx
ret

Function at 0x510474
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push esp
push 0x104
call sub.kernel32.dll_GetTempPathA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040504c
add esp, 0x104
pop ebx
ret

Function at 0x51092c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor edx, edx
push ebp
push 0x51098c
push dword fs:[edx]
mov dword fs:[edx], esp
mov bl, 1
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov esi, eax
test esi, esi
je 0x510969
push 0
push esi
call sub.kernel32.dll_TerminateProcess
test eax, eax
jne 0x510972
call sub.kernel32.dll_GetLastError_1
mov edi, eax
xor ebx, ebx
jmp 0x510972
call sub.kernel32.dll_GetLastError_1
mov edi, eax
xor ebx, ebx
push esi
call sub.kernel32.dll_CloseHandle
test bl, bl
jne 0x510982
push edi
call sub.kernel32.dll_SetLastError
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x510998
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x511f7c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
lea esi, [ebp - 0x105]
xor eax, eax
push ebp
push 0x512006
push dword fs:[eax]
mov dword fs:[eax], esp
push esi
push 0x104
call sub.kernel32.dll_GetTempPathA
push esi
push 0
push 0x512014
push esi
call sub.kernel32.dll_GetTempFileNameA
lea eax, [ebp - 0x10c]
mov edx, esi
mov ecx, 0x105
call fcn.004051cc
mov eax, dword [ebp - 0x10c]
mov ecx, ebx
mov edx, 0x512020
call fcn.0040bc3c
mov eax, dword [ebx]
call fcn.00510178
test al, al
jne 0x511fa5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51200d
lea eax, [ebp - 0x10c]
call fcn.00404f5c
ret

Function at 0x512024
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004053dc
xor eax, eax
push ebp
push 0x5120ba
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403830
lea eax, [ebp - 0x58]
xor ecx, ecx
mov edx, 0x10
call fcn.00403830
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0x220
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004053ec
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x5120a4
push 0xffffffffffffffff
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_WaitForSingleObject
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5120c1
lea eax, [ebp - 4]
call fcn.00404f5c
ret
Function at 0x5120e8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004053dc
mov eax, dword [ebp - 8]
call fcn.004053dc
mov eax, dword [ebp - 0xc]
call fcn.004053dc
xor eax, eax
push ebp
push 0x51221e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x41ff40]
call fcn.00403fb4
mov dword [ebp - 0x14], eax
xor ecx, ecx
push ebp
push 0x5121ee
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
call fcn.004259a0
push 0
push 0
mov eax, dword [ebp - 0x14]
call fcn.0042516c
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx]
push eax
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, dword [0x5120c8]
call fcn.004069c4
add esp, 4
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx]
mov ecx, eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0xc]
call fcn.0040b378
mov ebx, eax
mov eax, dword [ebp - 0x10]
call fcn.00406808
test eax, eax
jl 0x5121ac
inc eax
xor edx, edx
mov ecx, dword [ebp - 0x10]
xor byte [ecx + edx], bl
inc edx
dec eax
jne 0x5121a2
push 0
push 0
mov eax, dword [ebp - 0x14]
call fcn.0042516c
mov eax, dword [ebp - 0x10]
call fcn.00406808
mov ecx, eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
call fcn.004258cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5121f5
mov eax, dword [ebp - 0x14]
call fcn.00403fe4
ret

Function at 0x512740
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004053dc
xor eax, eax
push ebp
push 0x5127e2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xa
push ebx
mov eax, dword [0x6077f8]
push eax
call sub.kernel32.dll_FindResourceA
mov ebx, eax
push ebx
mov eax, dword [0x6077f8]
push eax
call sub.kernel32.dll_LoadResource
push eax
call sub.kernel32.dll_LockResource
mov esi, eax
push ebx
mov eax, dword [0x6077f8]
push eax
call sub.kernel32.dll_SizeofResource
mov edi, eax
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.004053ec
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
push 0
lea eax, [ebp - 8]
push eax
push edi
push esi
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5127e9
lea eax, [ebp - 4]
call fcn.00404f5c
ret