joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fcc20
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x547051
push eax
mov dword fs:[0], esp
sub esp, 0xec
push edi
mov edi, ecx
mov eax, dword [edi + 0x5c]
test eax, eax
jne 0x4fcc5d
xor eax, eax
pop edi
mov ecx, dword [esp + 0xec]
mov dword fs:[0], ecx
add esp, 0xf8
ret
push esi
push 0x400
lea ecx, [esp + 0xc]
call fcn.0053b3a6
push 0
push 0x1000
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x10c], 0
call fcn.0053927a
lea ecx, [esp + 0x30]
mov byte [esp + 0xfc], 1
push ecx
mov ecx, dword [edi + 0x5c]
call fcn.004f58a0
lea ecx, [esp + 8]
call fcn.0053b651
lea ecx, [esp + 0x30]
call fcn.005393de
mov edx, dword [esp + 8]
push 0
push 0
lea ecx, [esp + 0x10]
call dword [edx + 0x28]
push 0
push 0x1000
lea eax, [esp + 0x10]
push 1
push eax
lea ecx, [esp + 0x84]
call fcn.0053927a
lea ecx, [esp + 0x74]
lea esi, [edi + 0x60]
push ecx
mov ecx, esi
mov byte [esp + 0x100], 2
call fcn.004f5d10
lea ecx, [esp + 0x74]
call fcn.005393de
lea ecx, [esp + 8]
call fcn.0053b652
mov eax, dword [edi + 0x5c]
lea edx, [esp + 0xb8]
push edx
push 0x3c
mov eax, dword [eax + 0xc8]
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
lea ecx, [esp + 0xb8]
push ecx
mov ecx, esi
call fcn.004f34c0
mov edx, dword [edi + 0x5c]
push 0xffffffffffffffff
mov ecx, esi
mov eax, dword [edx + 0xdc]
mov dword [esi + 0xdc], eax
call fcn.004f57b0
mov ecx, esi
call fcn.004f63f0
mov eax, dword [edi + 0x5c]
push 0xffffffffffffffff
mov ecx, esi
mov eax, dword [eax + 0xe0]
mov dword [esi + 0xe0], eax
call fcn.004f57b0
mov ecx, esi
call fcn.004f63f0
mov ecx, dword [edi + 0x5c]
push 0xffffffffffffffff
mov eax, dword [ecx + 0xe4]
mov ecx, esi
mov dword [esi + 0xe4], eax
call fcn.004f57b0
mov ecx, esi
call fcn.004f63f0
mov ecx, dword [edi + 0x5c]
call fcn.004f2ca0
push eax
mov ecx, esi
call fcn.004f2cb0
mov ecx, dword [edi + 0x5c]
call fcn.004f3260
push eax
mov ecx, esi
call fcn.004f3200
mov ecx, dword [edi + 0x5c]
call fcn.004f3380
push eax
mov ecx, esi
call fcn.004f3330
mov ecx, dword [edi + 0x5c]
push 0
call fcn.004f2580
push eax
mov ecx, esi
call fcn.004f2590
mov edx, dword [edi + 0x7c]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x74]
mov byte [esp + 0xfc], 1
call fcn.00539356
lea ecx, [esp + 0x30]
mov byte [esp + 0xfc], 0
call fcn.00539356
lea ecx, [esp + 8]
mov dword [esp + 0xfc], 0xffffffff
call fcn.0053b46b
mov ecx, dword [esp + 0xf4]
pop esi
mov eax, 1
pop edi
mov dword fs:[0], ecx
add esp, 0xf8
ret
Function at 0x4fe4c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x547277
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], method.CMenu.virtual_0
mov dword [esi + 4], ebx
lea ecx, [esi + 0x1c]
mov dword [esp + 0x16c], ebx
call fcn.0052fdb4
lea ecx, [esi + 0x24]
mov byte [esp + 0x16c], 1
call fcn.0052fdb4
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 7
mov byte [esp + 0x170], 2
mov dword [esi], method.CMenu.virtual_0
call edi
push 0xe
mov dword [esi + 0x2c], eax
call edi
push 0xf
mov dword [esi + 0x30], eax
call edi
push 4
mov dword [esi + 0x34], eax
call edi
push 0xd
mov dword [esi + 0x38], eax
call edi
push 0x14
mov dword [esi + 0x3c], eax
call edi
push 0x10
mov dword [esi + 0x40], eax
call edi
push 0x11
mov dword [esi + 0x44], eax
call edi
push 0xf
mov dword [esi + 0x48], eax
call edi
push 0x14
mov dword [esi + 0x4c], eax
call edi
push 0x10
mov dword [esi + 0x50], eax
call edi
mov dword [esi + 0x54], eax
mov eax, 0x14
mov ecx, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov ecx, 0x55
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push 0x29
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x20], 0x154
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov ecx, esi
mov dword [esi + 0x10], eax
mov dword [esi + 8], ebx
call fcn.004fefe0
mov eax, esi
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret
Function at 0x4ff030
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x547350
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.0053d88c
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x4ff063
xor al, al
jmp 0x4ff18f
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x4ff085
xor al, al
jmp 0x4ff18f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x4ff098
xor al, al
jmp 0x4ff18f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x4ff0ac
xor al, al
jmp 0x4ff18f
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.0052fe79
test eax, eax
jne 0x4ff0e0
xor al, al
jmp 0x4ff18f
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x901344
mov dword [esp + 0x20], ebp
call fcn.0053d88c
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.00538f2f
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.00538f86
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x4ff174
mov ax, word [ebx]
test ax, ax
je 0x4ff166
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.004ff1b0
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x4ff14a
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.00538f86
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x4ff6b0
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.0053ba8f
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x4ff6f6
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.0051ef48
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x927258
push ecx
call fcn.00520c33
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x502cf0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x502d93
test eax, eax
jbe 0x502d93
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x502d93
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x502d3e
xor esi, esi
jmp 0x502d44
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x502d6f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00506f60
add esi, eax
push esi
mov ebx, esi
call fcn.00506f60
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x502d50
pop ebp
test edi, edi
pop edi
jne 0x502d93
test ebx, ebx
je 0x502d93
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0051fa70
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x502ef5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x50300d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x50300d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00533881
mov esi, eax
test esi, esi
je 0x50300d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x50300d
mov ecx, esi
call fcn.00502e80
cmp edi, eax
jge 0x50300d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x502f93
mov dword [esp + 0x34], 1
jmp 0x502fee
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x50300d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.005023f0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x50fd00
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x50fd66
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x50fd66
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x50fd47
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x5100f0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x510128
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x510d60
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x510da9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x511220
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x548810
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00510dd0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00510e50
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00510e50
lea ecx, [esi + 0xc]
call fcn.00531d3d
lea ecx, [esi + 0x10]
call fcn.00531d3d
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.005123e0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.005123e0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.005123e0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00531db2
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00531db2
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x532c0a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.0053d88c
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x532c3b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.00532c4e
pop edi
pop esi
pop ebx
ret 8

Function at 0x534225
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x53425d
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.00532259
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00532231
jmp 0x534269
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x535bea
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 0x535c2c
call fcn.0053d88c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x535c2c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x535c23
xor eax, eax
jmp 0x535c34
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00535c3a
pop edi
pop esi
pop ebx
ret 4

Function at 0x53ddbc
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 0x53ddea
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x53de08
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0053dd22
jmp 0x53de08
mov eax, dword [esi + 0x14]
test eax, eax
je 0x53de08
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0053dd22
test edi, edi
mov eax, edi
jne 0x53ddf2
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4036f0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 4]
push 0
push eax
push 0
push 0
push 0
push closesocket
push 0
push closesocket
push 0xcf0000
push 0x410190
push 0x410128
push 0
mov dword [0x4101f4], eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
test eax, eax
mov dword [0x40ffec], eax
jne 0x40372f
ret
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x40ffec]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
ret

Function at 0x403750
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0x44
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x58]
push eax
push ecx
xor ebx, ebx
push edi
xor ebp, ebp
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebp
je 0x4038a7
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
je 0x4038a7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebp
mov dword [esp + 0x14], eax
je 0x4038a7
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp esi, ebp
je 0x4038a7
mov edx, dword [0x40ffe8]
lea ebx, [esi*8]
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebp
je 0x40389b
mov eax, dword [esp + 0x14]
push 0x38
lea ecx, [esp + 0x20]
push str.1.1.4
push ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
call fcn.00401190
lea edx, [esp + 0x28]
push 4
push edx
call fcn.004011b0
mov esi, eax
lea eax, [esp + 0x30]
push eax
call fcn.00401040
add esp, 0x18
cmp esi, 1
jne 0x40388c
mov ecx, dword [esp + 0x64]
push ebp
push 0x8000080
push 2
push ebp
push ebp
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x403861
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x403878
cmp eax, 0xb7
jne 0x40388c
jmp 0x403878
mov eax, dword [esp + 0x30]
push ebp
lea edx, [esp + 0x1c]
push edx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403880
mov dword [esp + 0x10], 1
cmp esi, 0xffffffff
je 0x40388c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x40ffe8]
push edi
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x44
ret
Function at 0x403cb0
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
mov dword [edi], 0
push ebp
mov dword [ebx], 0
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [esp + 0x1c], eax
je 0x403d33
push esi
push eax
call fcn.0040598f
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
add esp, 4
mov esi, eax
push esi
push ecx
push edx
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x40a2f0
push esi
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x10]
mov dword [ebx], edx
mov eax, dword [eax + 0x14]
push esi
mov dword [edi], eax
call fcn.004058e5
add esp, 4
pop esi
pop edi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
pop edi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret

Function at 0x403e40
Capabilities:
Enumerate gui resources

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_EnumWindows]
push 1
push 0x403d40
call esi
push 2
push 0x403d40
call esi
push 0
push 0
push 0
push 0x1b
call dword [sym.imp.USER32.dll_keybd_event]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
ret

Function at 0x4051a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 0xc]
sub esp, 0xc
push esi
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push ecx
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x405203
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x10], edx
lea edx, [esp + 0x14]
push edx
push esi
push eax
push ecx
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 4]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
add esp, 0xc
ret

Function at 0x405210
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 0xc]
sub esp, 0xc
push edi
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push ecx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
test edi, edi
jne 0x405281
mov edx, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push esi
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x30]
push edi
push edx
push eax
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 8]
push ecx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x405280
mov edx, dword [esp + 0xc]
mov byte [edx + esi], 0
pop esi
xor eax, eax
test edi, edi
sete al
pop edi
add esp, 0xc
ret
Function at 0x405290
Capabilities:
Set registry value

Disassembly:
push ecx
mov eax, dword [esp + 0x14]
test eax, eax
push esi
je 0x4052c3
mov edx, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
jmp 0x4052df
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push 0xf003f
push 0
push ecx
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x405314
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x14]
inc eax
push eax
mov eax, dword [esp + 0x1c]
push esi
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x18]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
pop ecx
ret

Function at 0x405320
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x20
push esi
lea eax, [esp + 4]
push eax
push 0x20019
xor esi, esi
push esi
push ecx
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405392
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
push esi
push edx
push eax
mov dword [esp + 0x20], 0x14
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405387
cmp dword [esp + 0xc], 4
jne 0x405387
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
mov dword [ecx], edx
mov esi, 1
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x20
ret

Function at 0x4053a0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x10]
test eax, eax
push esi
je 0x4053cf
mov ecx, dword [esp + 8]
push 0
lea eax, [esp + 0x18]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ecx
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
jmp 0x4053eb
mov eax, dword [esp + 8]
lea edx, [esp + 0x14]
push edx
push 0xf003f
push 0
push eax
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x405418
mov edx, dword [esp + 0xc]
push 4
lea ecx, [esp + 0x14]
push ecx
push 4
push eax
mov eax, dword [esp + 0x24]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x14]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
ret

Function at 0x405430
Capabilities:
Delete registry value

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push 0xf003f
push 0
push ecx
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405473
mov edx, dword [esp + 0xc]
mov eax, dword [esp]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ecx
ret
xor eax, eax
pop ecx
ret