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

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44b3d0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44b3b1
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44b3c0
or bl, 4
test esi, 0x20000000
je 0x44b3cb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x451a78
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x451a8a
add esp, 0xfffffff0
call fcn.004035ac
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041cbb8
mov eax, dword [0x45ceac]
mov dword [eax + 4], ebx
mov dword [eax], 0x451e1c
mov eax, dword [0x45ceb8]
mov dword [eax + 4], ebx
mov dword [eax], 0x451e28
mov eax, ebx
call fcn.00451e34
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x414eb0]
call fcn.00403258
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x414eb0]
call fcn.00403258
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x414eb0]
call fcn.00403258
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x414eb0]
call fcn.00403258
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x414eb0]
call fcn.00403258
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44e250
push eax
push 0
push 0
mov eax, dword [0x45d014]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41e61c]
call fcn.0041fd58
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41e61c]
call fcn.0041fd58
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41e61c]
call fcn.0041fd58
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00452254
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x452130
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x452130
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x452130
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x451bc7
call fcn.00403604
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x451f14
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4520bf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4520a0
mov dl, 1
mov eax, dword [0x4152cc]
call fcn.00403258
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403fd8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45208f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043fe78
test al, al
je 0x452082
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x4520d0
lea eax, [ebp - 0x254]
call fcn.00408d6c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x452082
xor eax, eax
push ebp
push 0x45207b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x452108
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x452064
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404248
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x452064
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404248
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452082
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x451f85
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00418da8
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4520c6
lea eax, [ebp - 0x260]
call fcn.00403fd8
ret

Function at 0x4529f4
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x45ebbc]
cmp byte [eax + 0xa5], 0
jne 0x452a65
cmp dword [0x45ebd4], 0
jne 0x452a26
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4529b0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45ebd4], eax
cmp dword [0x45ebd0], 0
jne 0x452a41
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45ebd0], eax
cmp dword [0x45ebd8], 0
jne 0x452a65
push esp
push 0
push 0
push 0x452954
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x45ebd8], eax
pop edx
ret
Function at 0x452b5c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x452b73
add esp, 0xfffffff0
call fcn.004035ac
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041cbb8
mov eax, dword [0x45d000]
cmp word [eax + 2], 0
jne 0x452b9b
mov eax, dword [0x45d000]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004542c4
mov eax, dword [0x45d0b4]
cmp word [eax + 2], 0
jne 0x452bb5
mov eax, dword [0x45d0b4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004544bc
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x414eb0]
call fcn.00403258
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x414eb0]
call fcn.00403258
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41f0c4]
call fcn.004269c8
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x452d3c
mov eax, dword [0x45cf14]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00426d98
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x454a6c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x45cf14]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c4bc
test eax, eax
je 0x452caa
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408760
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c4e4
test eax, eax
je 0x452cbe
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404248
mov eax, dword [0x45cde8]
cmp byte [eax], 0
jne 0x452cf2
mov eax, ebx
call fcn.00452e64
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00454c48
mov eax, ebx
call fcn.0045560c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x452d32
call fcn.00403604
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4530e4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45ebbc]
cmp dword [eax + 0x30], 0
je 0x45318e
cmp dword [ebx + 0x94], 0
jne 0x453188
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x453074
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x453188
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45314e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x453188
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00417218
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45315d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x453cf0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x453d25
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004040c8
jmp 0x453d32
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040402c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x454e24
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x454e65
mov eax, esi
call fcn.0043b538
test al, al
je 0x454e65
mov eax, dword [ebx + 0x84]
call fcn.0043b234
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x454e65
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043b234
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x409a30
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x409a4e
or eax, eax
pop esi
add esp, 0x10
ret
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
mov dword [esp + 0xc], eax
mov word [esp + 8], 2
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esp + 4]
push 0x10
push edx
push esi
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x409a8f
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x4010b2
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x410284]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x4010ff
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x804]
push 0x3ff
push 0x400
push eax
call fcn.0040170c
lea eax, [ebp - 0x804]
push eax
call fcn.0040170c
add esp, 0x18
push 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401ea2
leave
ret

Function at 0x40110b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x410284]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x401158
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push 0x3ff
push 0x400
push eax
call fcn.0040170c
lea eax, [ebp - 0x404]
push eax
call fcn.0040170c
add esp, 0x18
push 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401ea2
leave
ret

Function at 0x40170c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x40171b
pop dword [ebp - 0x44]
mov eax, 0x7361ea35
add eax, 0x8cde2ce6
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x2e09d42b
add dword [ebp - 0x54], 0x20487120
mov dword [ebp - 0x50], 0x7fe6ff1
add dword [ebp - 0x50], 0x2a34dc54
mov dword [ebp - 0x4c], 0xda3e3f13
sub dword [ebp - 0x4c], 0x8df1fae5
mov dword [ebp - 0x48], 0x70937968
add dword [ebp - 0x48], 0x8f6c8698
lea eax, [ebp - 0x54]
push eax
mov eax, 0x9bb3bfd0
sub eax, 0x9b72ef7c
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xa429129a
add dword [ebp - 0x54], 0xd04956bc
mov dword [ebp - 0x50], 0xa4f6cf3f
add dword [ebp - 0x50], 0x9c759236
mov dword [ebp - 0x4c], 0x1084486e
add dword [ebp - 0x4c], 0x52eb23fe
mov dword [ebp - 0x48], 0x8a65b300
sub dword [ebp - 0x48], 0x8a65b300
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0xcadc4a16
add eax, 0x35648636
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x37a9e
push 0
call eax
mov ecx, 0xf742a3e5
sub ecx, 0xf742642b
mov edx, eax
mov ebx, 0x4d82b261
sub ebx, 0x4d410261
add ebx, dword [ebp - 0x44]
mov edi, 0x4abc1e46
xor dword [ebp - 0x14], 0xc518d4ef
mov esi, dword [ebx]
xor dword [ebp - 0x40], 0xfce64ce9
xor esi, edi
xor dword [ebp - 0x1c], 0x5a8bd2
mov dword [edx], esi
add edx, 0x9c5ee6d4
add edx, 0x63a11930
add ebx, 0x626f7f2c
sub ebx, 0x626f7f28
loop 0x401837
add eax, 0x460f8bdf
add eax, 0xb9f165dc
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x1663e5b6
sub ecx, 0x1623e5b6
add ecx, dword [ebp - 0x44]
call ebx
leave
ret

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53
Function at 0x401040
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push str.Start_n
call fcn.00401010
add esp, 4
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x4043bc], eax
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x4048b0], eax
push str.msvcrt.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x4043c0], eax
push str.gdi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x4043d4], eax
push str.kernelbase.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x404424], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x4043dc], eax
push str.d3d9.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x4043d8], eax
push str.ddraw.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x4043b8], eax
call fcn.00401600
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40213a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402179
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402179
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402179
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402179
cmp dword [ecx + 0x74], 0xe
jbe 0x402179
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x402a36
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x451c10]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402aca
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a87
cmp dword [ebp + 0x10], ebx
jne 0x402abe
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a36
test eax, eax
jne 0x402a99
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a6e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405d2e
cmp eax, ebx
je 0x402ad1
push ebx
push dword [0x451c10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402aca
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
jmp 0x71b273
cmp dword [0x451c10], ebx
jne 0x402ac7
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ac7
jmp 0x402aca
Function at 0x4030c6
Capabilities:
Create directory

Disassembly:
push esi
mov esi, 0x484000
push esi
jmp loc.00718000
Function at 0x403555
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [0x451b70]
push edi
push 6
call fcn.00405d2e
xor ebx, ebx
cmp eax, ebx
je 0x403581
call eax
movzx eax, ax
push eax
push 0x482000
call fcn.0040596a
jmp 0x4035cb
mov edi, 0x43b7e0
push ebx
push edi
push ebx
push str.Control_PanelDesktopResourceLocale
push 0x80000001
mov dword [0x482000], 0x7830
call fcn.004058f3
cmp byte [0x43b7e0], bl
jne 0x4035c0
push ebx
push edi
push 0x407302
push str..DEFAULTControl_PanelInternational
push 0x80000003
call fcn.004058f3
push edi
push 0x482000
call sub.KERNEL32.dll_lstrcatA
call fcn.0040381e
mov eax, dword [0x451b78]
mov ebp, 0x47c000
and eax, 0x20
push ebp
mov dword [0x451be0], eax
mov dword [0x451bfc], 0x10000
call fcn.004055e0
test eax, eax
jne 0x40367b
mov ecx, dword [esi + 0x48]
cmp ecx, ebx
je 0x40367b
mov edx, dword [esi + 0x4c]
mov eax, dword [0x451b98]
mov edi, 0x449b00
push ebx
add edx, eax
push edi
add ecx, eax
push edx
push ecx
push dword [esi + 0x44]
call fcn.004058f3
mov al, byte [0x449b00]
cmp al, bl
je 0x40367b
cmp al, 0x22
jne 0x40363a
mov edi, 0x449b01
push 0x22
push edi
call fcn.0040552a
mov byte [eax], bl
push edi
call sub.KERNEL32.dll_lstrlenA
lea eax, [eax + edi - 4]
cmp eax, edi
jbe 0x40366e
push str..exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40366e
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x403668
test al, 0x10
jne 0x40366e
push edi
call fcn.00405546
push edi
call fcn.004054ff
push eax
push ebp
call fcn.00405a0c
push ebp
call fcn.004055e0
test eax, eax
jne 0x403691
push dword [esi + 0x118]
push ebp
call fcn.00405a2e
push 0x8040
push ebx
push ebx
push 1
push 0x67
push dword [0x451b60]
call dword [sym.imp.USER32.dll_LoadImageA]
mov dword [0x44db48], eax
cmp dword [esi + 0x50], 0xffffffff
mov edi, 0x44db00
je 0x403745
mov ecx, dword [0x451b60]
mov dword [0x44db14], eax
lea eax, [esp + 0x10]
push edi
mov dword [esp + 0x14], 0x624e5f
mov dword [0x44db04], 0x401000
mov dword [0x44db10], ecx
mov dword [0x44db24], eax
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
je 0x403814
lea eax, [esp + 0x14]
push ebx
push eax
push ebx
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push ebx
push dword [0x451b60]
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
push ebx
push ebx
push eax
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
push eax
lea eax, [esp + 0x28]
push dword [esp + 0x30]
push dword [esp + 0x30]
push 0x80000000
push ebx
push eax
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x43b7b8], eax
jmp 0x71b40d
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x405331
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.004055e0
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x405365
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x451be8], eax
jmp 0x4054f9
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x405383
test eax, eax
je 0x4054a4
test byte [ebp + 0xc], 2
je 0x4054a4
mov esi, 0x4437e8
push edi
push esi
call fcn.00405a0c
test ebx, ebx
je 0x4053a0
push str..
push esi
jmp 0x71a409
push edi
call fcn.00405546
cmp byte [edi], 0
jne 0x4053b4
cmp byte [0x4437e8], 0x5c
jne 0x4053bf
push 0x409010
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x40549a
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.0040552a
cmp byte [eax], 0
je 0x405405
cmp byte [ebp - 0x18], 0
je 0x405405
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x40541b
mov al, byte [esi + 1]
test al, al
je 0x405479
cmp al, 0x2e
jne 0x40541b
cmp byte [esi + 2], 0
je 0x405479
push esi
push ebx
call fcn.00405a0c
test byte [ebp - 0x148], 0x10
je 0x405440
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405479
push dword [ebp + 0xc]
push edi
call fcn.00405331
jmp 0x405479
push edi
call fcn.004056c4
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405471
test byte [ebp + 0xc], 4
je 0x405469
push edi
push 0xfffffffffffffff1
call fcn.00404daa
push 0
push edi
call fcn.0040575a
jmp 0x405479
inc dword [0x451be8]
jmp 0x405479
push edi
push 0xfffffffffffffff2
call fcn.00404daa
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4053e3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x4054a4
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x4054f9
cmp dword [ebp - 8], esi
jne 0x4054b9
inc dword [0x451be8]
jmp 0x4054f9
push edi
call fcn.00405d07
test eax, eax
je 0x4054f9
push edi
call fcn.004054ff
push edi
call fcn.004056c4
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4054f1
test byte [ebp + 0xc], 4
je 0x4054b1
push edi
push 0xfffffffffffffff1
call fcn.00404daa
push esi
push edi
call fcn.0040575a
jmp 0x4054f9
push edi
push 0xffffffffffffffe5
call fcn.00404daa
pop edi
pop esi
leave
ret 8

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

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x4457e8
push esi
call fcn.00405a0c
jmp loc.00719cd4

Function at 0x4056c4
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4056e0
jmp loc.0071be76
ret 4