joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a8d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4319a4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov edx, dword [0x43f88c]
lea ecx, [esi + 4]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [ecx], edx
mov dword [esi + 8], 0x43487c
mov dword [esi + 0xc], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x1c], 0x434870
mov dword [esi + 0x20], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], eax
mov eax, dword [0x43f88c]
mov dword [esi + 0x30], eax
lea edx, [esp + 0x18]
mov byte [esp + 0x10], 4
push edx
mov dword [esi], 0x43486c
call fcn.00429b35
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.004299fc
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x40afd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x431ae7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
xor ebx, ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], ebx
push ecx
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
mov dword [esp + 0x24], 2
call fcn.00429771
mov ecx, esi
call fcn.0040b390
push ecx
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
mov edi, eax
call fcn.00429771
push edi
mov ecx, esi
call fcn.0040b420
cmp edi, 0xffffffff
jne 0x40b05b
push str.Unable_to_locate_specified_key.
lea ecx, [esi + 0x30]
call fcn.00429b85
mov esi, dword [esp + 0x24]
push 0x440fc0
mov ecx, esi
call fcn.00429a6a
mov eax, 1
mov dword [esp + 0xc], eax
jmp 0x40b0a1
cmp eax, 0xffffffff
jne 0x40b07f
push str.Unable_to_locate_specified_value.
lea ecx, [esi + 0x30]
call fcn.00429b85
mov esi, dword [esp + 0x24]
push 0x440fc0
mov ecx, esi
call fcn.00429a6a
jmp 0x40b098
mov edx, dword [esi + 0xc]
mov esi, dword [esp + 0x24]
lea ecx, [edi + edi*4]
mov ecx, dword [edx + ecx*8 + 4]
lea edx, [ecx + eax*4]
mov ecx, esi
push edx
call fcn.00429771
mov eax, 1
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], al
call fcn.004299fc
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1c], bl
call fcn.004299fc
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x14
ret 0xc
Function at 0x40c3b0
Capabilities:
Check if file exists
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x218
mov eax, dword [esp + 0x21c]
mov dword [esp + 0x10], ecx
test eax, eax
jne 0x40c3d2
mov eax, dword [ecx + 0x30]
test eax, eax
jg 0x40c4f1
jmp 0x40c3de
push 0xffffffffffffffff
push 0
add ecx, 0x28
call fcn.00425711
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c4f1
push ebx
push esi
mov eax, dword [esp + 8]
xor esi, esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push esi
push esi
push esi
lea ecx, [esp + 0x1c]
push esi
lea edx, [esp + 0x34]
push ecx
push edx
mov ebx, 0x100
push esi
push eax
mov dword [esp + 0x30], ebx
call edi
cmp eax, 0x103
je 0x40c4e3
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40c4b8
lea ecx, [esp + 0x18]
lea edx, [esp + 0x28]
push ecx
push 0x20019
push eax
mov eax, dword [esp + 0x1c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c4bd
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x128]
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x28]
push edx
push eax
push 0
push 0
push ecx
mov dword [esp + 0x34], ebx
call ebp
test eax, eax
jne 0x40c4ad
lea edx, [esp + 0x128]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40c4ad
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x28]
push edx
lea ecx, [eax + 0x28]
mov eax, dword [eax + 0x30]
push eax
call fcn.0042585a
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0
lea edx, [esp + 0x20]
push 0
lea eax, [esp + 0x38]
push edx
push eax
push esi
push ecx
call edi
cmp eax, 0x103
jne 0x40c43e
pop ebp
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
add esp, 0x218
ret 4
Function at 0x410690
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x6c
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov ecx, 0xc
lea edx, [esp + 0x2c]
mov dword [esp + 0x10], ecx
mov dword [esp + 4], ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], 0x44
push ecx
push edx
push eax
push eax
push 8
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, dword [esp + 0x90]
lea edx, [esp + 0x2c]
push edx
push ecx
push eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], 1
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
je 0x41073c
mov edx, dword [esp + 0x1c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x1c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x74]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 0x1c]
push eax
call esi
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
mov al, 1
pop esi
mov dword [ecx], edx
add esp, 0x6c
ret 8
xor al, al
add esp, 0x6c
ret 8

Function at 0x411660
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432728
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
cmp esi, ebx
mov dword [ebp - 0x10], esp
jne 0x41169d
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x2c]
call fcn.0042a51e
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
call fcn.0042a4c2
push ebx
push 0x9001
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.0042a630
mov edi, eax
cmp edi, ebx
je 0x411702
mov eax, dword [ebp + 0xc]
cmp eax, ebx
jle 0x411702
push eax
lea ecx, [ebp - 0x2c]
call fcn.0042a8fe
jmp 0x411702
mov dword [ebp - 4], ebx
call fcn.0042a500
cmp edi, ebx
jne 0x411740
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00410fb0
mov ecx, dword [eax]
mov byte [ebp - 4], 4
push ecx
push esi
push str.Create_file___s__failed.__s
push 2
call fcn.00410ad0
add esp, 0x18
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.004299fc
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x411754
cmp eax, 0xffffffff
je 0x411754
lea ecx, [ebp - 0x2c]
call fcn.0042a84b
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.0042a573
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x411780
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, 1
test esi, esi
je 0x4117b6
cmp esi, 0xffffffff
je 0x4117b6
mov eax, dword [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4117b1
xor edi, edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, edi
pop edi
pop esi
ret
pop edi
mov eax, 1
pop esi
ret
Function at 0x4121d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x432848
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
lea eax, [esp + 0xc]
mov dword [esp + 0x2c], 1
push eax
call fcn.00425232
mov ecx, dword [eax]
lea edx, [esp]
mov dword [esp + 4], ecx
push 0x43f5b4
push edx
lea ecx, [esp + 0xc]
call fcn.00425274
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.0042b7e7
push 0x43e34c
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 3
call fcn.00424be7
test eax, eax
jg 0x412285
lea eax, [esp + 0xc]
push eax
call fcn.00412420
add esp, 4
lea ecx, [esp + 0x34]
lea edx, [esp + 8]
push ecx
push eax
push edx
mov byte [esp + 0x38], 4
call fcn.00429c2b
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 5
call fcn.00429b35
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 4
call fcn.004299fc
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 3
call fcn.004299fc
mov eax, dword [esp + 0x34]
push 0
push 0x3002
push eax
lea ecx, [esp + 0x1c]
call fcn.0042b85c
test eax, eax
je 0x41234b
mov edx, dword [esp + 0x10]
push 2
push 0
lea ecx, [esp + 0x18]
call dword [edx + 0x28]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x412334
lea eax, [esp]
push 0x43e398
lea ecx, [esp + 0xc]
push eax
push ecx
call fcn.00429c91
lea edx, [esp + 0x38]
mov byte [esp + 0x2c], 6
push edx
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00429c2b
push 0x43f69c
lea ecx, [esp + 0x40]
push eax
push ecx
mov byte [esp + 0x38], 7
call fcn.00429c91
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x30], 8
call fcn.0042b9cf
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2c], 7
call fcn.004299fc
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 6
call fcn.004299fc
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 3
call fcn.004299fc
jmp 0x412342
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x10]
push edx
call fcn.0042b9cf
lea ecx, [esp + 0x10]
call fcn.0042bb8c
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.0042b819
lea ecx, [esp]
mov byte [esp + 0x2c], 1
call fcn.004299fc
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 0
call fcn.004299fc
lea ecx, [esp + 0x38]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004299fc
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret

Function at 0x4125b0
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx], 0x67452301
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x414ce1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00418093
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x414d04
test byte [esp + 8], 2
je 0x414d04
call fcn.00418106
mov dword [eax], 0xd
call fcn.0041810f
mov dword [eax], 5
jmp 0x414cdd
xor eax, eax
ret
Function at 0x41c4f5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4407e8
cmp edx, dword [eax]
je 0x41c517
add eax, 8
inc ecx
cmp eax, 0x440878
jl 0x41c508
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4407e8]
jne 0x41c645
mov eax, dword [0x443188]
cmp eax, 1
je 0x41c61f
test eax, eax
jne 0x41c548
cmp dword [0x43fe78], 1
je 0x41c61f
cmp edx, 0xfc
je 0x41c645
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41c57f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041bd60
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041aca0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41c5c2
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041aca0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x436a88
push edi
call fcn.00414d10
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041bd60
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041bd70
lea eax, [ebp - 0xa0]
push 0x436a68
push eax
call fcn.0041bd70
push dword [esi + 0x4407ec]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041bd70
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041e476
add esp, 0x2c
pop edi
jmp 0x41c645
lea eax, [ebp + 8]
lea esi, [esi + 0x4407ec]
push 0
push eax
push dword [esi]
call fcn.0041aca0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x424050
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004149c0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x42411b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x42411b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4240ce
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4240d9
or bh, 8
and edi, 0x8000000
je 0x4240f4
mov eax, dword [0x444a3c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x42411b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4244f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x42451b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x42453f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x42455a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x427340
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x427378
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00429ea3
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00429e7b
jmp 0x427384
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x428941
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x428983
call fcn.0042e7ad
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x428983
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x42897a
xor eax, eax
jmp 0x42898b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00428991
pop edi
pop esi
pop ebx
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x42a348
push edi
call ebx
push eax
call fcn.0042c395
push esi
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
je 0x42a372
test byte [ebp - 4], 1
je 0x42a372
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x42a372
push edi
call ebx
push eax
call fcn.0042c395
cmp dword [esi + 4], edi
lea eax, [esi + 4]
je 0x42a418
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.0042a265
cmp dword [esi + 8], edi
lea eax, [esi + 8]
pop ecx
pop ecx
je 0x42a3a4
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.0042a265
pop ecx
lea eax, [ebp - 0x14]
pop ecx
mov dword [ebp - 8], eax
cmp dword [esi], edi
je 0x42a3ba
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.0042a265
pop ecx
lea eax, [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xc], eax
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42a3e4
push 0
call ebx
push eax
call fcn.0042c395
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x42a402
push eax
call ebx
push eax
call fcn.0042c395
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x42a416
push eax
call ebx
push eax
call fcn.0042c395
xor edi, edi
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
pop esi
je 0x42a43f
test byte [ebp - 4], 1
jne 0x42a43f
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x42a43f
push edi
call ebx
push eax
call fcn.0042c395
pop edi
pop ebx
leave
ret 8

Function at 0x42febb
Capabilities:
Receive data
Receive data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_recv
ret 0xc

Function at 0x42fed2
Capabilities:
Send data
Send data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_send
ret 0xc
Function at 0x40b8b0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46b50b
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.0045ff67
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40b932
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045dcdd
mov eax, dword [eax]
push 0x49b1d0
push eax
call fcn.00450ab4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004601f2
test bl, bl
je 0x40b932
push 0x49b1d0
lea ecx, [esp + 0xc]
call fcn.00460582
push 0x49ed44
lea ecx, [esp + 0xc]
call fcn.00460582
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 0x40b96e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004601f2
jmp 0x40ba39
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 0x40b9f2
lea edx, [esp + 0x7c]
push 0x49ed40
push edx
call fcn.00450ab4
add esp, 8
test eax, eax
je 0x40b9f2
lea eax, [esp + 0x7c]
push 0x49ed3c
push eax
call fcn.00450ab4
add esp, 8
test eax, eax
je 0x40b9f2
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 0x40b982
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.004601f2
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 0x40cc90
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 0x40ccf2
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