joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409a6e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x424ea0]
jne 0x409a78
repz ret
jmp fcn.0040dc36

Function at 0x416f2c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00410a67
and dword [ebp - 4], 0
cmp dword [0x477eb0], 0
mov ebx, eax
jne 0x416fdd
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41708e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42195c
push edi
call esi
test eax, eax
je 0x41708e
push eax
call fcn.004109f5
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x477eb0], eax
call esi
push eax
call fcn.004109f5
mov dword [esp], 0x421938
push edi
mov dword [0x477eb4], eax
call esi
push eax
call fcn.004109f5
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x477eb8], eax
call esi
push eax
call fcn.004109f5
pop ecx
mov dword [0x477ec0], eax
test eax, eax
je 0x416fdd
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004109f5
pop ecx
mov dword [0x477ebc], eax
mov eax, dword [0x477ebc]
cmp eax, ebx
je 0x417035
cmp dword [0x477ec0], ebx
je 0x417035
push eax
call fcn.00410a70
push dword [0x477ec0]
mov esi, eax
call fcn.00410a70
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x417035
test edi, edi
je 0x417035
call esi
test eax, eax
je 0x41702c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41702c
test byte [ebp - 0xc], 1
jne 0x417035
or dword [ebp + 0x10], 0x200000
jmp 0x41706e
mov eax, dword [0x477eb4]
cmp eax, ebx
je 0x41706e
push eax
call fcn.00410a70
pop ecx
test eax, eax
je 0x41706e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41706e
mov eax, dword [0x477eb8]
cmp eax, ebx
je 0x41706e
push eax
call fcn.00410a70
pop ecx
test eax, eax
je 0x41706e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x477eb0]
call fcn.00410a70
pop ecx
test eax, eax
je 0x41708e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x417090
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a43e3
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
pushal
call 0x4a43ef
pop ebx
sub ebx, 0x403292
mov eax, 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0x424642
push 0
push 0x20
push 3
push 0
push 3
push 0xc0000000
push dword [ebp + 8]
call dword [ebx + fcn.00401291]
cmp eax, 0xffffffff
je 0x4a4575
mov dword [ebp - 4], eax
push 2
push 0
push 0xfffffffffffffffc
push dword [ebp - 4]
call dword [ebx + fcn.004012a5]
lea eax, [ebp - 8]
lea ecx, [ebp - 0xc]
push 0
push ecx
push 4
push eax
push dword [ebp - 4]
call dword [ebx + fcn.0040130d]
mov eax, dword [ebp - 8]
cmp eax, 0x424642
jne 0x4a4460
jmp 0x4a456c
push 0
push dword [ebp - 4]
call dword [ebx + 0x4012b9]
mov dword [ebp - 8], eax
cmp eax, 0x1000
jae 0x4a447a
jmp 0x4a456c
cmp eax, 0xe00000
jbe 0x4a4486
jmp 0x4a456c
or eax, eax
je 0x4a4575
mov ecx, dword [ebp - 8]
add ecx, 0x6000
mov dword [ebp - 0x14], ecx
push 0
push ecx
push 0
push 4
push 0
push dword [ebp - 4]
call dword [ebx + 0x401295]
or eax, eax
je 0x4a4524
mov dword [ebp - 0xc], eax
push dword [ebp - 0x14]
push 0
push 0
push 2
push dword [ebp - 0xc]
call dword [ebx + 0x401299]
or eax, eax
je 0x4a451b
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0
mov esi, dword [ebp - 0x10]
cmp word [esi], 0x5a4d
je 0x4a44df
jmp 0x4a4512
mov eax, dword [esi + 0x3c]
cmp eax, 0x200
jbe 0x4a44eb
jmp 0x4a4512
add esi, dword [esi + 0x3c]
cmp dword [esi], 0x4550
je 0x4a44f8
jmp 0x4a4512
push dword [ebp - 8]
push esi
push dword [ebp - 0x10]
call fcn.004a42bb
mov dword [ebp - 0x14], eax
push 0
push dword [ebp - 0x10]
call dword [ebx + 0x4012c1]
push dword [ebp - 0x10]
call dword [ebx + 0x40129d]
push dword [ebp - 0xc]
call dword [ebx + fcn.004012ad]
cmp dword [ebp - 0x14], 0
je 0x4a456c
mov eax, dword [ebp - 0x14]
sub eax, 4
push 0
push 0
push eax
push dword [ebp - 4]
call dword [ebx + fcn.004012a5]
lea eax, [ebp - 0x18]
lea ecx, [ebp - 8]
push 0
push ecx
push 4
push eax
push dword [ebp - 4]
call dword [ebx + fcn.004012a1]
push 0
push 0
push dword [ebp - 0x14]
push dword [ebp - 4]
call dword [ebx + fcn.004012a5]
push dword [ebp - 4]
call dword [ebx + 0x4012a9]
push dword [ebp - 4]
call dword [ebx + fcn.004012ad]
popal
leave
ret 4

Function at 0x4a4ab6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
pushal
mov dword [ebp - 4], 0
call fcn.004a4ac9

Function at 0x4a4b30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
pushal
mov dword [ebp - 4], 0
call fcn.004a4b43
Function at 0x4077a1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x4077b0
pop dword [ebp - 0x34]
mov eax, 0x222ab911
sub eax, 0x21ea4161
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0xc7f1d117
sub dword [ebp - 0x44], 0x799f8bcc
mov dword [ebp - 0x40], 0xa82b1d3
add dword [ebp - 0x40], 0x27b09a72
mov dword [ebp - 0x3c], 0xe2572242
add dword [ebp - 0x3c], 0x69f521ec
mov dword [ebp - 0x38], 0xcf6badb1
add dword [ebp - 0x38], 0x3094524f
lea eax, [ebp - 0x44]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0xad47e3e1
sub dword [ebp - 0x44], 0x38d57a8b
mov dword [ebp - 0x40], 0xdbe1c2e1
sub dword [ebp - 0x40], 0x9a75616c
mov dword [ebp - 0x3c], 0x6a6c2111
add dword [ebp - 0x3c], 0xf9034b5b
mov dword [ebp - 0x38], 0x1b64578c
sub dword [ebp - 0x38], 0x1b64578c
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0x6a1139e7
add eax, 0x962f4629
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x37188
push 0
call eax
mov ecx, 0x8a43f98e
add ecx, 0x75bc4ed9
xor edx, edx
add edx, eax
mov esi, 0x40ec00
add esi, dword [ebp - 0x34]
mov ebx, 0x5e0644b6
sub ebx, 0x6a169ba8
xor dword [ebp - 0x14], eax
mov edi, dword [esi]
xor dword [ebp - 0x10], ecx
add edi, ebx
mov dword [ebp - 0x10], 0xabd94cc9
mov dword [edx], edi
add dword [ebp - 0x18], esi
add edx, 0xfd01d92b
add edx, 0x2fe26d9
add esi, 0xbd683ffb
add esi, 0x4297c009
loop 0x4078c9
add eax, 0xdf4c0c9b
add eax, 0x20b507d4
mov ebx, eax
add eax, 0x3faee01b
add eax, 0xc0511fea
mov ecx, 0x400000
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x56cd30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xfb000]
push edi
or ebp, 0xffffffff
jmp 0x56cd52
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x56cd59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x56cd48
mov eax, 1
add ebx, ebx
jne 0x56cd6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x56cd7c
jne 0x56cd8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x56cd8c
dec eax
add ebx, ebx
jne 0x56cd88
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x56cd60
xor ecx, ecx
sub eax, 3
jb 0x56cda4
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x56ce16
sar eax, 1
mov ebp, eax
jmp 0x56cdaf
add ebx, ebx
jne 0x56cdaf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x56cdbc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x56cde0
inc ecx
add ebx, ebx
jne 0x56cdcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x56cdc1
jne 0x56cddd
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x56cdc1
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x56ce00
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x56cdf1
jmp 0x56cd4e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x56ce00
add edi, ecx
jmp 0x56cd4e
pop esi
mov edi, esi
mov ecx, 0x6295
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x56ce1e
cmp byte [edi], 0x24
jne 0x56ce1e
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x56ce23
lea edi, [esi + 0x169000]
mov eax, dword [edi]
or eax, eax
je 0x56ce92
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x16e594]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x16e670]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x56ce50
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x16e674]
or eax, eax
je 0x56ce8c
mov dword [ebx], eax
add ebx, 4
jmp 0x56ce6d
call dword [esi + 0x16e678]
popal
jmp 0x4d5ec0
Function at 0x402e8c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402ee5
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402d28
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402d28
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402ecf
inc ebx
jmp 0x402eb8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402eec
lea eax, [ebp - 8]
call fcn.00404a00
ret

Function at 0x402ef4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404a00
test esi, esi
jne 0x402f2b
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404af0
jmp 0x402f4c
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402d28
mov dword [esp], eax
test esi, esi
je 0x402f4c
cmp dword [ebx], 0
je 0x402f4c
dec esi
jmp 0x402f33
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403ae0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x46b020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403b78
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403b58
xor eax, eax
push ebp
push 0x403b51
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403b94
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403b58
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x46b020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x46b020], ax
mov esp, ebp
pop ebp
ret

Function at 0x40487c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46d04c], 0
je 0x4048dd
cmp word [0x46d220], 0xd7b2
jne 0x4048a5
cmp dword [0x46d228], 0
jbe 0x4048a5
mov eax, 0x46d21c
call dword [0x46d238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46b070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404904
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46b030], 0
jne 0x4048f9
push 0
push 0x46b068
push 0x46b070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406954
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4069ba
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404c70
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0040353c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4069a4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4069c1
lea eax, [ebp - 0x10]
call fcn.00404a00
ret

Function at 0x409434
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404ec0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40944d
test al, 0x10
jne 0x409451
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c680
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c6b9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404af0
jmp 0x40c6c2
mov eax, ebx
mov edx, esi
call fcn.00404a54
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c6cc
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c6ed
mov al, byte [esp]
jmp 0x40c6ef
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40ced0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cd38
mov eax, dword [0x46c318]
cmp byte [eax], 0
je 0x40cf4c
mov eax, dword [0x46c104]
call fcn.00403360
call fcn.00402c54
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409748
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40cf94
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40cf82
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46c0ac]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46d668]
call fcn.00405dc0
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40d844
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d91a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404a98
lea eax, [ebp - 8]
call fcn.00404f10
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404ec0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d904
mov eax, ebx
call fcn.00402ac8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d8fd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404ec0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d8e7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d92c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d8e7
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d904
mov eax, dword [ebp - 0x10]
call fcn.00402af8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d921
lea eax, [ebp - 8]
call fcn.00404a00
ret

Function at 0x40decc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40df30
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404c70
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409094
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40df37
lea eax, [ebp - 0xc]
call fcn.00404a00
ret

Function at 0x40f070
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffc00
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.00404a00
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.00404ec0
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
cmp ebx, 0x400
jge 0x40f0b5
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00404af0
jmp 0x40f0ce
mov edx, ebx
dec edx
mov eax, esi
call fcn.0040504c
push ebx
mov eax, dword [esi]
call fcn.00404ec0
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
add esp, 0x400
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x420b58
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
lea ebx, [ebp - 0xc]
mov esi, 0x46d888
cmp dword [esi], 0
jne 0x420bfe
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [0x46d884]
mov dword [eax], edx
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x46b530
mov ecx, 2
call fcn.00402ce8
mov edx, 0x420b30
mov eax, dword [ebp - 8]
add eax, 5
call fcn.00420b50
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebx], eax
mov eax, dword [ebx]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebx]
call fcn.00420b50
mov edx, dword [ebx]
mov dword [edx + 1], eax
mov eax, dword [ebx]
mov edx, dword [esi]
mov dword [eax + 5], edx
mov eax, dword [ebx]
mov dword [esi], eax
add dword [ebx], 0xd
mov eax, dword [ebx]
sub eax, dword [ebp - 8]
cmp eax, 0xffc
jl 0x420bc5
mov eax, dword [ebp - 8]
mov dword [0x46d884], eax
mov eax, dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [ebx]
mov eax, dword [eax + 5]
mov dword [esi], eax
mov eax, dword [ebx]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x42222c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x422232
ret

Function at 0x4246f8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x424749
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x424730
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x424720
jmp 0x424749
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x424731
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4325f0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404eb0
xor eax, eax
push ebp
push 0x432720
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x4326f3
xor eax, eax
push ebp
push 0x4326ec
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404cc0
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4326c1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4326b0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404cc0
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00404ec0
mov edx, dword [ebp - 0xc]
pop ecx
call fcn.00402ce8
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4326b7
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x46c044]
mov dl, 1
mov eax, dword [0x407e44]
call fcn.0040d060
call fcn.00404414
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x432727
lea eax, [ebp - 4]
call fcn.00404a00
ret
Function at 0x432730
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4328e1
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.004050b0
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, 0x4328f8
call fcn.00404d0c
mov eax, ebx
call fcn.004200d4
mov edi, eax
dec edi
test edi, edi
jl 0x4327e8
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.004200a8
mov edx, dword [0x42ef44]
call fcn.00403e0c
test al, al
je 0x4327e4
push dword [ebp - 0xc]
mov edx, esi
mov eax, ebx
call fcn.004200a8
lea edx, [ebp - 0x14]
call fcn.0043953c
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.004050b0
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404d80
inc esi
dec edi
jne 0x432796
mov al, byte [0x4328fc]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x432908
mov eax, dword [ebp - 0xc]
call fcn.0040e80c
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
call fcn.00404a98
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.0043953c
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x4328f8
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x2f8]
call fcn.0043953c
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x4328f8
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x4328f8
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x432914
call fcn.00409e54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4328e8
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.00404a24
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404a24
lea eax, [ebp - 0x14]
call fcn.00404a00
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404a24
ret

Function at 0x433f08
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x433e54
call sub.user32.dll_EnumWindows
ret