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

Disassembly:
cmp ecx, dword [0x47a480]
jne 0x444724
repz ret
jmp fcn.0044c015

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x446896
call fcn.00447d68
mov dword [eax], esi
call fcn.00447d55
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00445f11
add esp, 0x14
push 0x16
pop eax
jmp 0x4468eb
test dword [ebp + 0xc], 0xfffffff9
jne 0x446872
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4468c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00447d7b
pop ecx
call fcn.00447d55
mov eax, dword [eax]
jmp 0x4468eb
test al, 0x10
jne 0x4468e9
test al, 1
je 0x4468e9
test byte [ebp + 0xc], 2
je 0x4468e9
call fcn.00447d68
mov dword [eax], 5
call fcn.00447d55
mov dword [eax], 0xd
jmp 0x4468ba
xor eax, eax
pop esi
pop ebp
ret

Function at 0x456db3
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.0044dcbf
and dword [ebp - 4], 0
cmp dword [0x47e3f4], 0
mov ebx, eax
jne 0x456e64
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x456f15
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x46aec0
push edi
call esi
test eax, eax
je 0x456f15
push eax
call fcn.0044dc4d
mov dword [esp], 0x46aeb0
push edi
mov dword [0x47e3f4], eax
call esi
push eax
call fcn.0044dc4d
mov dword [esp], 0x46ae9c
push edi
mov dword [0x47e3f8], eax
call esi
push eax
call fcn.0044dc4d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x47e3fc], eax
call esi
push eax
call fcn.0044dc4d
pop ecx
mov dword [0x47e404], eax
test eax, eax
je 0x456e64
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0044dc4d
pop ecx
mov dword [0x47e400], eax
mov eax, dword [0x47e400]
cmp eax, ebx
je 0x456ebc
cmp dword [0x47e404], ebx
je 0x456ebc
push eax
call fcn.0044dcc8
push dword [0x47e404]
mov esi, eax
call fcn.0044dcc8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x456ebc
test edi, edi
je 0x456ebc
call esi
test eax, eax
je 0x456eb3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x456eb3
test byte [ebp - 0xc], 1
jne 0x456ebc
or dword [ebp + 0x10], 0x200000
jmp 0x456ef5
mov eax, dword [0x47e3f8]
cmp eax, ebx
je 0x456ef5
push eax
call fcn.0044dcc8
pop ecx
test eax, eax
je 0x456ef5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x456ef5
mov eax, dword [0x47e3fc]
cmp eax, ebx
je 0x456ef5
push eax
call fcn.0044dcc8
pop ecx
test eax, eax
je 0x456ef5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x47e3f4]
call fcn.0044dcc8
pop ecx
test eax, eax
je 0x456f15
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x456f17
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4101fc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x431c48]
jne 0x410206
repz ret
jmp fcn.00410753
Function at 0x414e10
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x41e0d9
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x431c48]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
cmp eax, 0x411
jne 0x414e8b
push str.MGC_PCB_LANGUAGE
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
test eax, eax
je 0x414e8b
push eax
lea ecx, [esp + 8]
call dword [sym.imp.mfc90.dll_Ordinal_310]
push str.English
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0
call dword [sym.imp.mfc90.dll_Ordinal_1607]
test eax, eax
jne 0x414e81
push 0x409
call dword [sym.imp.KERNEL32.dll_SetThreadLocale]
lea ecx, [esp + 4]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret
Function at 0x22f2680
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1e92000]
push edi
jmp 0x22f269a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x22f26a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x22f2690
mov eax, 1
add ebx, ebx
jne 0x22f26b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x22f26c4
jne 0x22f26e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x22f26e3
dec eax
add ebx, ebx
jne 0x22f26d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x22f26a8
add ebx, ebx
jne 0x22f26df
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x22f2735
xor ecx, ecx
sub eax, 3
jb 0x22f26fb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x22f276a
sar eax, 1
mov ebp, eax
jmp 0x22f2706
add ebx, ebx
jne 0x22f2706
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x22f26d4
inc ecx
add ebx, ebx
jne 0x22f2714
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x22f26d4
add ebx, ebx
jne 0x22f2721
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x22f2716
jne 0x22f2732
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x22f2716
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x22f2754
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x22f2746
jmp 0x22f2696
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x22f2754
add edi, ecx
jmp 0x22f2696
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x22f2772
cmp byte [edi], 0x11
jne 0x22f2772
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 al, bl
loop 0x22f2777
lea edi, [esi + 0x1eeb000]
mov eax, dword [edi]
or eax, eax
je 0x22f27ef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3cff31c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3cff498]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x22f27a4
mov ecx, edi
jns 0x22f27d3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3cff49c]
or eax, eax
je 0x22f27e9
mov dword [ebx], eax
add ebx, 4
jmp 0x22f27c1
call dword [esi + 0x3cff4ac]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x22f2820
cmp al, 0xef
ja 0x22f2813
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x22f27f5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x22f2802
mov ebp, dword [esi + 0x3cff4a0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x22f2854
sub esp, 0xffffff80
jmp 0x420577
Function at 0x30402f3c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.30404ff0
test esi, esi
jne 0x30402f73
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.304050e0
jmp 0x30402f94
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.30402dd8
mov dword [esp], eax
test esi, esi
je 0x30402f94
cmp dword [ebx], 0
je 0x30402f94
dec esi
jmp 0x30402f7b
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x30403594
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x304ea008], 0x8088405
inc edx
mov dword [ebx + 0x304ea008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x30403f04
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x304ea024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x30403f9c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x30403f7c
xor eax, eax
push ebp
push 0x30403f75
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 0x30403fb8
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 0x30403f7c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x304ea024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x304ea024], ax
mov esp, ebp
pop ebp
ret

Function at 0x30404dc8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x304f104c], 0
je 0x30404e29
cmp word [0x304f1220], 0xd7b2
jne 0x30404df1
cmp dword [0x304f1228], 0
jbe 0x30404df1
mov eax, 0x304f121c
call dword [0x304f1238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x304ea0a0
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 0x30404e50
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x304ea034], 0
jne 0x30404e45
push 0
push 0x304ea098
push 0x304ea0a0
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x30404fa4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.30402b6c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x304f104d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x30404f6c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x30407584
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 0x304075ea
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.30405260
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.3040361c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x304075d4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x304075f1
lea eax, [ebp - 0x10]
call fcn.30404ff0
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.304054b0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x3040a739
test al, 0x10
jne 0x3040a73d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x3040a82c
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.304054b0
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x3040a84e
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x3040a854
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.304054b0
push eax
call sub.kernel32.dll_GetFileAttributesA
test al, 1
setne al
pop ebx
ret

Function at 0x3040dc14
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 0x3040dc4d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.304050e0
jmp 0x3040dc56
mov eax, ebx
mov edx, esi
call fcn.30405044
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x3040dc60
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 0x3040dc81
mov al, byte [esp]
jmp 0x3040dc83
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x3040e318
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x3040e180
mov eax, dword [0x304f08f4]
cmp byte [eax], 0
je 0x3040e394
mov eax, dword [0x304f0520]
call fcn.304033b8
call fcn.30402cf8
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.3040ac4c
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 0x3040e3dc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x3040e3ca
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x304f04a4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x304f1668]
call fcn.30406994
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 0x3040eca4
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 0x3040ed7a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.30405088
lea eax, [ebp - 8]
call fcn.30405500
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.304054b0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x3040ed64
mov eax, ebx
call fcn.30402b6c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x3040ed5d
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.304054b0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x3040ed47
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x3040ed8c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x3040ed47
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 0x3040ed64
mov eax, dword [ebp - 0x10]
call fcn.30402b9c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3040ed81
lea eax, [ebp - 8]
call fcn.30404ff0
ret

Function at 0x3040f41c
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 0x3040f480
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.30405260
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.3040a240
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3040f487
lea eax, [ebp - 0xc]
call fcn.30404ff0
ret
Function at 0x3040fc78
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov eax, dword [0x304f0554]
cmp dword [eax], 0
je 0x3040fcae
push 0xa
push 0x3040fd04
mov eax, dword [0x304f0554]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_FindResourceA
push eax
mov eax, dword [0x304f0554]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_LoadResource
mov dword [esp], eax
jmp 0x3040fcfa
xor eax, eax
mov dword [esp], eax
mov eax, dword [0x304f09ac]
mov eax, dword [eax]
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x3040fcfa
mov ebx, dword [esp + 4]
push 0xa
push 0x3040fd04
mov esi, dword [ebx + 4]
push esi
call sub.kernel32.dll_FindResourceA
push eax
push esi
call sub.kernel32.dll_LoadResource
mov dword [esp], eax
cmp dword [esp], 0
jne 0x3040fcfa
mov eax, dword [esp + 4]
mov eax, dword [eax]
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
jne 0x3040fcc5
mov eax, dword [esp]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x304287b0
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.30428608
dec esi
jne 0x304287d2
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x30429f34
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x304f188c
cmp dword [edi], 0
jne 0x30429fb0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x304f1888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x304ea700
mov ecx, 2
call fcn.30402d98
mov edx, 0x30429f0c
lea eax, [esi + 5]
call fcn.30429f2c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.30429f2c
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x30429f85
mov dword [0x304f1888], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x3042b534
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 0x3042b53a
ret

Function at 0x3042da74
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 0x3042dac5
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x3042daac
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x3042da9c
jmp 0x3042dac5
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 0x3042daad
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x3043b49c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.3043af04
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.304054b0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x3043b4fa
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x304f0748]
mov dl, 1
mov eax, dword [0x3043adfc]
call fcn.3040e4fc
call fcn.30404944
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x3043b504
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.304054b0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x3043b55c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x304f0b1c]
mov dl, 1
mov eax, dword [0x3043adfc]
call fcn.3040e4fc
call fcn.30404944
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.3043af34
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x30442d40
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 0x30442c8c
call sub.user32.dll_EnumWindows
ret

Function at 0x30442e60
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x30442edd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.304428c0
call sub.kernel32.dll_GetTickCount
mov ebx, eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x30442e85
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.304424c0
cmp dword [ebp - 4], 0
je 0x30442ec7
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.304054b0
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.user32.dll_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x30442ee4
lea eax, [ebp - 4]
call fcn.30404ff0
ret
Function at 0x304461b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x304f1b64], 0
je 0x304462ff
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x304f0834]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x304462ff
mov eax, dword [0x304f1b68]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x304f1b64]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x304462ce
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x304f1b64]
call fcn.3041f890
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x304462c6
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x304462c6
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x304462c6
mov eax, dword [ebp - 0x14]
call fcn.3044ee48
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x304462c6
push ebp
call fcn.3044616c
pop ecx
test al, al
jne 0x304462c6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x30446282
mov eax, dword [ebp - 0x14]
call fcn.3044d978
dec eax
jle 0x304462c6
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.304042a8
cmp byte [ebp - 1], 0
je 0x304462c6
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x304462c6
mov edx, dword [ebp - 0x14]
mov eax, dword [0x304f1b68]
call fcn.30445938
inc edi
dec ebx
jne 0x30446215
mov eax, dword [0x304f1b68]
cmp dword [eax + 8], 0
jle 0x304462e6
mov eax, dword [0x304f1b68]
call fcn.304459c8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x304462ff
push ebp
mov eax, dword [ebp - 0x18]
call fcn.30445fd4
pop ecx
test al, al
jne 0x304462ff
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret