joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4454f1
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov esi, ecx
call fcn.00437921
test eax, eax
jne 0x4456e1
mov edi, dword [edi + 4]
push ebx
mov ecx, esi
call fcn.0041eb1d
test byte [esi + 0x7c], 0x20
mov dword [ebp - 0x10], eax
mov ebx, 0x201
jne 0x445535
cmp edi, ebx
je 0x445535
cmp edi, 0x202
jne 0x44568e
cmp edi, 0x200
jb 0x445545
cmp edi, 0x209
jbe 0x44555d
cmp edi, 0xa0
jb 0x44568e
cmp edi, 0xa9
ja 0x44568e
call fcn.0044dd9a
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x1c]
mov dword [ebp - 0x18], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
push 0x30
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.00428760
mov eax, dword [esi]
add esp, 0xc
lea ecx, [ebp - 0x48]
push ecx
push dword [ebp - 0x14]
mov ecx, esi
push dword [ebp - 0x18]
mov dword [ebp - 0x48], 0x28
call dword [eax + 0x6c]
cmp dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 4], eax
je 0x4455bb
push dword [ebp - 0x24]
call fcn.00429258
pop ecx
cmp edi, ebx
jne 0x4455ce
test byte [ebp - 0x41], 0x80
je 0x4455ce
mov dword [ebp - 8], 1
jmp 0x4455ec
and dword [ebp - 8], 0
cmp edi, ebx
je 0x4455ec
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x4455ec
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x78]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x445658
cmp dword [ebp - 8], 0
jne 0x445658
cmp edi, 0x202
jne 0x445618
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
call dword [eax + 0x160]
push 0xc8
push 0xe001
jmp 0x445640
test byte [esi + 0x78], 8
jne 0x445649
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x445649
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
cmp eax, dword [ecx + 0x78]
je 0x445685
push 0x12c
push 0xe000
mov ecx, esi
call fcn.00444ba2
jmp 0x445685
push dword [ebp - 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x160]
jmp 0x445685
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x44566b
cmp dword [ebp - 8], 0
je 0x445685
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
call dword [eax + 0x160]
push 0xe001
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x78], eax
mov ecx, esi
call fcn.00439925
test eax, eax
pop ebx
je 0x4456a0
cmp dword [eax + 0x64], 0
jne 0x4456e6
cmp dword [ebp - 0x10], 0
je 0x4456c8
mov edi, dword [ebp - 0x10]
push dword [ebp + 8]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + pe_nt_image_headers32]
test eax, eax
jne 0x4456e1
mov ecx, edi
call fcn.004398e6
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x4456a6
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4456e6
push dword [ebp + 8]
mov ecx, esi
call fcn.00438345
jmp 0x4456e8
xor eax, eax
inc eax
jmp 0x4456e8
xor eax, eax
pop edi
pop esi
leave
ret 4
Function at 0x44c572
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.0044dd74
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x44c5b2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 8], eax
je 0x44c5b2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x44c5b6
xor eax, eax
jmp 0x44c633
movzx eax, word [esi + 6]
push ebx
shl eax, 2
push edi
push eax
call fcn.0043be2a
mov edi, eax
xor eax, eax
cmp word [esi + 6], ax
pop ecx
jbe 0x44c5e4
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x44c5d3
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.0044c1b6
push edi
mov ebx, eax
call fcn.0043be55
test ebx, ebx
pop ecx
je 0x44c626
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.0044c3f8
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.0044c47f
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4

Function at 0x44c638
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [ebp + 0xc], 0x800
mov eax, dword [0x46ae58]
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
jne 0x44c696
push 0x45b758
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00429c36
add esp, 0x10
cmp eax, 0xffffffff
je 0x44c6aa
cmp eax, esi
jae 0x44c6aa
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x44c6ac
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x44c661
jmp 0x44c6ad
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
call fcn.00429953
leave
ret
Function at 0x44c6cd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x46ae58]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ebx, ebx
push str.kernel32.dll
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x44c76f
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x1c], ecx
call esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x34], eax
call esi
mov dword [ebp - 0x30], eax
push 4
xor ebx, ebx
jmp 0x44c871
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x44c81f
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push 0x80000001
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x44c872
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x44c814
cmp dword [ebp - 0x24], 1
jne 0x44c814
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push 0x45b768
push eax
call fcn.00429b24
add esp, 0xc
cmp eax, 1
jne 0x44c814
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
push 2
mov dword [ebp - 0x38], eax
pop esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x44c872
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x44c872
lea ecx, [ebp - 0x18]
push ecx
push 0x44c6b7
push 1
push 0x10
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 0x18], bx
je 0x44c872
movzx eax, word [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
mov dword [ebp - 0x38], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x3c], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x44c898
push dword [ebp + edi*4 - 0x3c]
push dword [ebp + 8]
call fcn.0044c638
cmp eax, ebx
pop ecx
pop ecx
jne 0x44c89a
inc edi
cmp edi, esi
jl 0x44c881
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00429953
leave
ret 4
Function at 0x44c8a9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x46a2c0
je 0x44c965
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x44c94d
mov esi, dword [ebx + 4]
jmp 0x44c947
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x44c937
cmp dword [ebp - 0xc], 4
jne 0x44c937
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x44c92f
or dword [eax + 0x9c], ecx
jmp 0x44c937
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x44c8fb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x44c8de
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x44d1cf
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x452297
call fcn.00428578
sub esp, 0x11c
mov eax, dword [0x46ae58]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x124]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x44d2c8
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x44d29c
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.0040386a
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.0044d1cf
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00401019
test bl, bl
jne 0x44d29c
or dword [ebp - 4], 0xffffffff
jmp 0x44d20d
cmp esi, 0x103
je 0x44d2ac
cmp esi, 0x3f2
jne 0x44d2bc
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.00429953
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x44d70e
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov eax, 0x452324
call fcn.00428578
mov eax, 0x1014
call fcn.00428d50
mov eax, dword [0x46ae58]
push ebx
push edi
xor edi, edi
mov dword [ebp - 0x101c], edi
cmp dword [ecx + 0x50], edi
mov dword [ebp - 0x10], eax
je 0x44d809
push dword [ebp + 0xc]
call fcn.0044d65f
cmp eax, edi
mov dword [ebp - 0x1014], eax
jne 0x44d757
push dword [ebp + 0x14]
jmp 0x44d83a
push esi
call fcn.004375e4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp + 0xc], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x1020]
push eax
push edi
lea eax, [ebp - 0x101c]
push eax
push edi
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
push dword [ebp - 0x1014]
call esi
cmp eax, edi
mov dword [ebp - 0x1018], eax
jne 0x44d7d4
lea eax, [ebp - 0x1020]
push eax
push dword [ebp - 0x1020]
lea ecx, [ebp + 0xc]
call fcn.004011f6
push eax
lea eax, [ebp - 0x101c]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 0x1014]
call esi
push 0xffffffffffffffff
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x1018], eax
call fcn.00403072
mov ebx, dword [ebp + 0xc]
push dword [ebp - 0x1014]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1018], edi
mov ecx, dword [ebp + 8]
pop esi
jne 0x44d7f7
lea eax, [ebp + 0xc]
push eax
call fcn.00403138
jmp 0x44d7ff
push dword [ebp + 0x14]
call fcn.0040386a
lea ecx, [ebx - 0x10]
call fcn.00401019
jmp 0x44d842
cmp dword [ebp + 0x14], edi
jne 0x44d815
mov dword [ebp + 0x14], 0x4537c1
push dword [ecx + 0x64]
lea eax, [ebp - 0x1010]
push 0x1000
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x1010]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040386a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.00429953
leave
ret 0x10
Function at 0x44d85d
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x452324
call fcn.00428578
push ecx
push ebx
mov ebx, dword [ebp + 0x14]
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [edi], esi
mov dword [ebx], esi
cmp dword [ecx + 0x50], esi
je 0x44d8f3
push dword [ebp + 8]
call fcn.0044d65f
cmp eax, esi
mov dword [ebp + 0x14], eax
jne 0x44d892
xor eax, eax
jmp 0x44d974
lea ecx, [ebp + 0x10]
push ecx
push esi
lea ecx, [ebp - 0x10]
push ecx
push esi
push dword [ebp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
call esi
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx], eax
xor ebx, ebx
cmp dword [ebp + 8], ebx
jne 0x44d8d5
push eax
call fcn.0043be2a
pop ecx
lea ecx, [ebp + 0x10]
push ecx
push eax
mov dword [edi], eax
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 0x14]
call esi
mov dword [ebp + 8], eax
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 8], ebx
je 0x44d971
push dword [edi]
call fcn.0043be55
pop ecx
mov dword [edi], ebx
jmp 0x44d88b
push esi
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.0044d70e
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx - 0xc]
cmp eax, esi
mov dword [ebp - 4], esi
mov dword [ebp + 8], eax
jne 0x44d920
add ecx, 0xfffffff0
call fcn.00401019
jmp 0x44d88b
shr eax, 1
push eax
mov dword [ebx], eax
call fcn.0043be2a
cmp dword [ebp + 8], esi
pop ecx
mov dword [edi], eax
jle 0x44d966
lea eax, [esi + 1]
push eax
lea ecx, [ebp + 0xc]
call fcn.0041643e
mov bl, al
dec bl
shl bl, 4
push esi
lea ecx, [ebp + 0xc]
sub bl, 0x41
call fcn.0041643e
mov ecx, dword [edi]
add bl, al
mov eax, esi
cdq
sub eax, edx
sar eax, 1
inc esi
inc esi
cmp esi, dword [ebp + 8]
mov byte [eax + ecx], bl
jl 0x44d932
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00401019
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10

Function at 0x44e13b
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x44e170
cmp edi, dword [esi + 0xc]
jge 0x44e170
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x44e170
cmp edi, dword [eax + 8]
jge 0x44e170
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x44e172
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x44e276
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x44e2aa
jmp fcn.004345f2
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret
Function at 0x44e31b
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x44e414
cmp eax, dword [edi + 0xc]
jge 0x44e414
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x44e36c
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x44e3fd
cmp dword [ebp + 0xc], ebx
je 0x44e3fd
jmp 0x44e396
push 0x10
call fcn.0044e007
cmp eax, ebx
je 0x44e382
mov ecx, eax
call fcn.0044e26d
mov esi, eax
jmp 0x44e384
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x44e3ad
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x44e3bd
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x44e3cf
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.004345f2
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.00428760
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x44e40f
cmp ecx, dword [esi + 8]
jge 0x44e40f
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x44e415
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x44e4d3
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x44e501
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x44e51f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0044e43d
jmp 0x44e51f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x44e51f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0044e43d
test edi, edi
mov eax, edi
jne 0x44e509
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x46db94]
test ecx, ecx
je 0x44e5d2
jmp 0x44e4d2
ret 8
Function at 0x40a540
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4899fb
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.0047b293
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40a5c2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00478bdf
mov eax, dword [eax]
push 0x4a7200
push eax
call fcn.0046ad74
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0047b51e
test bl, bl
je 0x40a5c2
push 0x4a7200
lea ecx, [esp + 0xc]
call fcn.0047b8ae
push 0x4aad68
lea ecx, [esp + 0xc]
call fcn.0047b8ae
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 0x40a5fe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0047b51e
jmp 0x40a6c9
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 0x40a682
lea edx, [esp + 0x7c]
push 0x4aad64
push edx
call fcn.0046ad74
add esp, 8
test eax, eax
je 0x40a682
lea eax, [esp + 0x7c]
push 0x4aad60
push eax
call fcn.0046ad74
add esp, 8
test eax, eax
je 0x40a682
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 0x40a612
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.0047b51e
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 0x40aec0
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 0x40af22
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 0x40af30
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x489a7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4b23b0]
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 0x40b068
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40af96
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0047b51e
xor eax, eax
jmp 0x40b0df
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0047b65b
push esi
lea ecx, [esp + 0xc]
call fcn.0047b8ea
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40b0bd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040aec0
test eax, eax
jne 0x40b0bd
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.0040aec0
test eax, eax
jne 0x40b0bd
lea eax, [esp + 0x14]
push 0x4aad7c
push eax
call fcn.0046bdb0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40b09c
lea ecx, [esp + 0x14]
push 0x4aad78
push ecx
call fcn.0046bd30
mov esi, eax
add esp, 8
test esi, esi
jne 0x40b09c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40b09f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0047b60b
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40afae
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0047b51e
xor eax, eax
jmp 0x40b0df
mov byte [esi], 0
push 0x4aad74
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.0047b51e
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