joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40552d
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0xe0]
sub esp, 0x160
mov eax, dword [0x4456d0]
xor eax, ebp
mov dword [ebp + 0xdc], eax
cmp dword [ebp + 0xec], 0x800
mov eax, dword [ebp + 0xe8]
push esi
mov dword [ebp - 0x3c], eax
mov esi, ecx
lea eax, [ebp - 0x40]
jne 0x4055c5
push 0x43797c
push 4
push eax
call fcn.004232c6
push eax
call fcn.004035c0
add esp, 0x10
push ebx
push edi
call fcn.00423431
mov edi, dword [eax]
call fcn.00423431
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.004233d7
add esp, 0x18
mov dword [ebp - 0x3c], eax
call fcn.00423431
cmp dword [eax], ebx
je 0x4055dc
call fcn.00423431
push dword [eax]
call fcn.004054bb
pop ecx
jmp 0x4055e3
push 4
push eax
push 3
push dword [ebp + 0xec]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x405579
jmp 0x405655
call fcn.00423431
mov dword [eax], edi
cmp dword [ebp - 0x3c], 0xffffffff
je 0x405651
cmp dword [ebp - 0x3c], esi
jae 0x405651
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x40
call fcn.00422f30
add esp, 0xc
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x405643
push str.FindActCtxSectionStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x405643
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x405643
push ebx
push ebx
push esi
jmp 0x405649
push ebx
push ebx
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x405653
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0xdc]
xor ecx, ebp
pop esi
call fcn.0042058e
add ebp, 0xe0
leave
ret
Function at 0x406abf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x406b05
call fcn.0040eab0
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x406b05
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x406b48
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x406b31
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x406b31
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x406b45
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x407d83
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x4355bb
call fcn.00422ca7
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.0040eab0
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x407dce
call fcn.0040eab0
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x407ddf
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x407dec
or eax, 0xffffffff
jmp 0x407f48
mov ecx, esi
call fcn.004078ca
mov dword [ebp - 0x14], eax
call fcn.0040b3a2
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x407e6a
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x407e6a
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x407e6a
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00404856
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x407e6a
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x407e6a
mov ecx, ebx
call fcn.0040fa58
test eax, eax
je 0x407e6a
push 0
mov ecx, ebx
call fcn.0040fa73
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0040cd21
push dword [ebp - 0x14]
call fcn.0040b2fa
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.00407b8b
xor edi, edi
cmp eax, edi
je 0x407ec7
test byte [esi + 0x3c], 0x10
je 0x407eb1
push 4
pop edi
mov ecx, esi
call fcn.0040f969
test ax, 0x100
je 0x407ea7
push 5
pop edi
push edi
mov ecx, esi
call fcn.0040ae90
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x407ec7
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0040fc03
or dword [ebp - 4], 0xffffffff
jmp 0x407ef2
cmp dword [ebp - 0x28], edi
je 0x407f00
push 1
mov ecx, ebx
call fcn.0040fa73
cmp dword [ebp - 0x2c], edi
je 0x407f10
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x407f29
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x407f29
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.00407904
cmp dword [esi + 0x58], edi
je 0x407f45
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.00422d4c
ret
Function at 0x40de3e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40de81
call fcn.0040eab0
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40de81
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40de9c
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040d9f5
test ebx, ebx
mov esi, eax
je 0x40de9a
test edi, edi
je 0x40de9a
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x42058e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4456d0]
jne 0x420598
repz ret
jmp fcn.00425fda

Function at 0x42ad6f
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x446188]
je 0x42ad8a
inc edi
cmp edi, 0x17
jb 0x42ad7b
cmp edi, 0x17
jae 0x42af0a
push ebp
push 3
call fcn.004305c4
cmp eax, 1
pop ecx
je 0x42aed6
push 3
call fcn.004305c4
test eax, eax
pop ecx
jne 0x42adbe
cmp dword [0x44554c], 1
je 0x42aed6
cmp ebx, 0xfc
je 0x42af09
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x448dd0
push ebp
call fcn.004232c6
add esp, 0xc
test eax, eax
je 0x42adf4
push esi
push esi
push esi
push esi
push esi
call fcn.0042695e
add esp, 0x14
push 0x104
mov esi, 0x448de9
push esi
push 0
mov byte [0x448eed], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42ae38
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004232c6
add esp, 0xc
test eax, eax
je 0x42ae38
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0042695e
add esp, 0x14
push esi
call fcn.00423330
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x42ae7d
push esi
call fcn.00423330
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4490e4
push 0x43abcc
sub ecx, eax
push ecx
push eax
call fcn.00424e8b
add esp, 0x14
test eax, eax
je 0x42ae7d
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0042695e
add esp, 0x14
jmp 0x42ae7f
xor esi, esi
push 0x43abc8
push ebx
push ebp
call fcn.004234fc
add esp, 0xc
test eax, eax
je 0x42ae9f
push esi
push esi
push esi
push esi
push esi
call fcn.0042695e
add esp, 0x14
push dword [edi*8 + 0x44618c]
push ebx
push ebp
call fcn.004234fc
add esp, 0xc
test eax, eax
je 0x42aec1
push esi
push esi
push esi
push esi
push esi
call fcn.0042695e
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00430407
add esp, 0xc
jmp 0x42af09
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x42af09
cmp ebp, 0xffffffff
je 0x42af09
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x44618c]
push dword [esi]
call fcn.00423330
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x430407
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004262b2
xor ebx, ebx
cmp dword [0x449268], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4304dd
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4305bd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43bc00
push edi
call esi
cmp eax, ebx
je 0x4305bd
push eax
call fcn.00426244
mov dword [esp], 0x43bbf0
push edi
mov dword [0x449268], eax
call esi
push eax
call fcn.00426244
mov dword [esp], 0x43bbdc
push edi
mov dword [0x44926c], eax
call esi
push eax
call fcn.00426244
mov dword [0x449270], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00423053
test eax, eax
pop ecx
pop ecx
je 0x4304ab
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042695e
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4304dd
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00426244
cmp eax, ebx
pop ecx
mov dword [0x449278], eax
je 0x4304dd
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00426244
pop ecx
mov dword [0x449274], eax
mov eax, dword [0x449274]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x430562
cmp dword [0x449278], ecx
je 0x430562
push eax
call fcn.004262bb
push dword [0x449278]
mov esi, eax
call fcn.004262bb
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x430562
cmp edi, ebx
je 0x430562
call esi
cmp eax, ebx
je 0x43052f
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43052f
test byte [ebp - 0x18], 1
jne 0x430562
lea eax, [ebp - 0x10]
push eax
call fcn.0042308a
test eax, eax
pop ecx
je 0x43054a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042695e
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x430559
or dword [ebp + 0x10], 0x200000
jmp 0x43059d
or dword [ebp + 0x10], 0x40000
jmp 0x43059d
mov eax, dword [0x44926c]
cmp eax, dword [ebp - 8]
je 0x43059d
push eax
call fcn.004262bb
cmp eax, ebx
pop ecx
je 0x43059d
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43059d
mov eax, dword [0x449270]
cmp eax, dword [ebp - 8]
je 0x43059d
push eax
call fcn.004262bb
cmp eax, ebx
pop ecx
je 0x43059d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x449268]
call fcn.004262bb
cmp eax, ebx
pop ecx
je 0x4305bd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4305bf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x434f28
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4456d0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00434ebd
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00422f30
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x434f77
cmp dword [ebp - 0x1c], 5
jb 0x434f8f
jmp 0x434f8b
cmp dword [ebp - 0x10], 1
jne 0x434f8f
cmp dword [ebp - 0x1c], 4
ja 0x434f8b
jne 0x434f8f
cmp dword [ebp - 0x18], 0
jbe 0x434f8f
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x43c4a4
call fcn.00434dae
test eax, eax
jge 0x434fb0
mov byte [0x4492fd], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042058e
add ebp, 0x78
leave
ret
Function at 0x405c21
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x405c42
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x405c39
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x405c31
mov eax, ebx
leave
ret

Function at 0x405c68
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0xc]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 8]
mov eax, dword [esi]
add eax, dword [ebp + 8]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 8]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 8]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 8]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 8]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x405cc7
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x405cf4
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x405ce3
xor ecx, eax
xor edx, ebx
dec edi
jne 0x405cd4
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x405d1a
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x405cbb
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 8]
pop ecx
pop edx
pop edi
pop ebx
pop esi
leave
ret 8
Function at 0x40655a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword ds:[ebp - 0x20], 0xff8bff8b
mov dword ds:[ebp - 0x14], 0xff8bff8b
mov dword ds:[ebp - 0x1c], 0xff8bff8b
push 0x7fc
push dword [ebp - 0x20]
call fcn.00405be7
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 4]
mov ebx, eax
pop ecx
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x406739
push dword [ebp - 4]
call fcn.00405bcb
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40662a
jmp 0x406739
push dword [ebp - 4]
call fcn.00405bcb
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [ebp - 4], eax
jne 0x40667e
lea eax, [ebp - 4]
push eax
call fcn.00406540
mov dword [ebp - 0x28], eax
push 0
push 4
push dword [ebp - 0x28]
push dword [ebp - 4]
push 0xffffffff
push dword [ebp - 0x14]
call fcn.00405df2
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x40667e
mov eax, 1
jmp 0x406680
xor eax, eax
test eax, eax
je 0x40672e
push ebx
push esi
push edx
mov ebx, dword [ebp + 8]
lea eax, [ebx + 0x3c]
mov eax, dword [eax]
add eax, ebx
lea eax, [eax + 0x78]
mov eax, dword [eax]
lea esi, [eax + ebx]
mov dword [ebp - 0x10], esi
lea edx, [esi + 0x20]
mov edx, dword [edx]
add edx, ebx
mov edx, dword [edx]
add edx, ebx
mov dword [ebp - 0x18], edx
lea eax, [esi + 0x18]
mov eax, dword [eax]
dec eax
mov dword [ebp - 4], eax
pop ebx
pop esi
pop edx
push dword [ebp - 4]
lea eax, [ebp - 4]
mov ebx, eax
mov ecx, 0
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x406726
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call dword [ebp - 0x1c]
call fcn.0040635d
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x406715
push edi
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
lea eax, [eax + 0x1c]
mov eax, dword [eax]
add eax, dword [ebp + 8]
lea eax, [eax + edi*4]
mov eax, dword [eax]
add eax, dword [ebp + 8]
pop edi
leave
ret 8
push dword [ebp - 0xc]
call fcn.00406519
add dword [ebp - 8], eax
pop ebx
pop ecx
pop edx
inc ecx
jmp 0x4066c8
add esp, 0xc
jmp 0x406739
pop ebx
pop ecx
pop edx
add ecx, 4
jmp 0x406603
add esp, 0xc
mov edi, edi
mov edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, 0
jmp 0x40675a
mov esp, ebp
pop ebp
ret 8
Function at 0x437170
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b5ffb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004a7e9d
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4371f2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004a5290
mov eax, dword [eax]
push 0x5fb224
push eax
call fcn.00497c94
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004a8128
test bl, bl
je 0x4371f2
push 0x5fb224
lea ecx, [esp + 0xc]
call fcn.004a8504
push 0x5fedc0
lea ecx, [esp + 0xc]
call fcn.004a8504
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x43722e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004a8128
jmp 0x4372f9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x4372b2
lea edx, [esp + 0x7c]
push 0x5fedbc
push edx
call fcn.00497c94
add esp, 8
test eax, eax
je 0x4372b2
lea eax, [esp + 0x7c]
push 0x5fedb8
push eax
call fcn.00497c94
add esp, 8
test eax, eax
je 0x4372b2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x437242
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004a8128
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x437b10
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x437b72
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x437b80
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b607b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x608720]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x437cb8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x437be6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004a8128
xor eax, eax
jmp 0x437d2f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004a82b1
push esi
lea ecx, [esp + 0xc]
call fcn.004a8540
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x5fedf8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x437d0d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00437b10
test eax, eax
jne 0x437d0d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.00437b10
test eax, eax
jne 0x437d0d
lea eax, [esp + 0x14]
push 0x5fedd4
push eax
call fcn.00498e70
mov esi, eax
add esp, 8
test esi, esi
jne 0x437cec
lea ecx, [esp + 0x14]
push 0x5fedd0
push ecx
call fcn.00498df0
mov esi, eax
add esp, 8
test esi, esi
jne 0x437cec
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x437cef
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004a8261
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x437bfe
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004a8128
xor eax, eax
jmp 0x437d2f
mov byte [esi], 0
push 0x5fedcc
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.004a8128
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4