joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c60d
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor edi, edi
push edi
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
cmp ebx, edi
je 0x40c664
push ebx
call fcn.0042cd57
mov esi, eax
pop ecx
cmp esi, edi
mov dword [ebp - 8], esi
je 0x40c664
push esi
push ebx
push edi
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40c65d
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x46b9ec
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x40c672
push esi
call fcn.0042cd0f
pop ecx
mov ecx, dword [ebp + 8]
push edi
call fcn.0040c5bb
mov eax, dword [ebp + 8]
jmp 0x40c6b3
mov eax, dword [ebp - 4]
lea edi, [ebp - 0x18]
push dword [ebp - 8]
movzx ecx, word [eax + 0x14]
movzx edx, word [eax + 0x16]
movzx esi, word [eax + 0x10]
movzx ebx, word [eax + 0x12]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp - 0x18], bx
mov word [ebp - 0x16], si
mov word [ebp - 0x14], dx
mov word [ebp - 0x12], cx
call fcn.0042cd0f
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x18]
mov edi, eax
pop ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411c10
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x451d37
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
push 0x476b4c
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], ebx
call fcn.0044381f
xor esi, esi
mov dword [esp + 0x64], 1
mov si, word [0x47723c]
call fcn.0044da99
mov eax, dword [eax + 0xc]
push 0x46c390
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
call fcn.0044da99
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
call fcn.0044da99
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
lea esi, [edi + 0x50]
push ebp
push eax
mov ecx, esi
call fcn.00416b20
mov al, byte [esp + 0x70]
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x28], al
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov cl, byte [esp + 0x70]
push ebx
mov byte [esp + 0x3c], cl
lea ecx, [esp + 0x3c]
mov byte [esp + 0x68], 2
call fcn.0040a870
mov edx, dword [esp + 0x70]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x68], 3
mov dword [esp + 0x4c], edx
call fcn.0040ca75
lea ecx, [esp + 0x48]
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x6c], 4
call fcn.004121d0
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.00410620
mov esi, dword [esp + 0x20]
push 1
lea ecx, [esp + 0x50]
mov byte [esp + 0x68], 3
call fcn.0040a870
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x68], 2
call fcn.0040a870
lea eax, [esi + 0x10]
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x34]
call fcn.0040cbb9
mov esi, dword [esp + 0x6c]
mov dl, byte [esp + 0x28]
push 0xffffffffffffffff
lea eax, [esp + 0x2c]
push ebx
push eax
mov ecx, esi
mov byte [esi], dl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.0040cbb9
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x411d89
mov cl, byte [eax - 1]
dec eax
cmp cl, bl
je 0x411d80
cmp cl, 0xff
je 0x411d80
dec cl
mov byte [eax], cl
jmp 0x411d89
push eax
call fcn.00443dd4
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov byte [esp + 0x64], bl
call fcn.004437b1
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 8
Function at 0x413220
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x451ee8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x68]
test eax, eax
jne 0x4132d4
mov eax, dword [0x473630]
push esi
mov dword [esp + 8], eax
push 0x410
push 0x410
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.00443bcc
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.00443c1b
push 0x46c3d0
lea ecx, [esp + 0xc]
call fcn.00443b8d
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4132bb
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x4132bb
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x68], eax
mov dword [edi + 0xc4], 1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.004437b1
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x413560
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x824
test eax, eax
je 0x413585
mov eax, dword [esp + 0x828]
push eax
call fcn.00413680
add esp, 4
add esp, 0x824
ret
lea ecx, [esp + 4]
push edi
push ecx
push 0x46c714
push SysReAllocString
call fcn.004132f0
add esp, 0xc
test eax, eax
jne 0x41364a
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 8]
push 0x46c700
push edx
call edi
lea eax, [esp + 8]
lea ecx, [esp + 8]
push eax
push ecx
push SysReAllocString
call fcn.004132f0
add esp, 0xc
test eax, eax
jne 0x413673
push esi
lea edx, [esp + 0xc]
push 0x46c6f8
push edx
call fcn.0042e8ce
mov esi, eax
add esp, 8
test esi, esi
jne 0x413618
lea eax, [esp + 0xc]
push 0x46c6f4
push eax
call fcn.0042d340
mov esi, eax
add esp, 8
test esi, esi
jne 0x413618
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xb]
jmp 0x41361b
mov byte [esi], 0
push 0x46c6f0
push esi
call edi
mov edx, dword [esp + 0x830]
push edx
push esi
call edi
mov eax, dword [esp + 0x834]
lea ecx, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop esi
pop edi
add esp, 0x824
ret
mov edx, dword [esp + 0x830]
mov eax, dword [esp + 0x82c]
push edx
push 0
push 0
push eax
push 0x467c38
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
add esp, 0x824
ret
mov eax, dword [esp + 4]
pop edi
add esp, 0x824
ret
Function at 0x413680
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x451f38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [esp + 0x18]
push esi
push edi
push eax
lea ecx, [esp + 0x24]
call fcn.0044381f
push 0x46c71c
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
call fcn.0044381f
mov byte [esp + 0x18], 1
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov ecx, dword [esp + 8]
push 0x40
mov edi, eax
mov esi, dword [ecx - 8]
lea ecx, [esp + 0x24]
call fcn.00443c63
cmp eax, 0xffffffff
je 0x413746
push ebx
lea edx, [esp + 0x10]
push esi
push edx
lea ecx, [esp + 0x2c]
call fcn.004420cf
mov ecx, dword [esp + 0xc]
mov eax, dword [eax]
push ecx
push eax
call fcn.0042d745
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004437b1
test bl, bl
pop ebx
je 0x413746
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.004439e0
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 2
call fcn.004438ea
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 1
call fcn.004437b1
mov edx, dword [esp + 0x20]
push 5
push 0x476b4c
push 0
push edx
push 0x467c38
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 8]
mov esi, eax
mov byte [esp + 0x18], 0
call fcn.004437b1
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.004437b1
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x419566
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x308
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
je 0x4195da
lea eax, [ebp - 0x108]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4195fe
lea eax, [ebp - 0x308]
push eax
lea eax, [ebp - 0x208]
push eax
push ebx
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.0042d885
lea eax, [ebp - 0x308]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.0042eeb0
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call fcn.00433ec0
add esp, 0x24
test eax, eax
jne 0x4195fe
cmp dword [ebp + 0xc], ebx
jne 0x4195de
mov al, 1
jmp 0x419642
lea eax, [ebp - 0x108]
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
je 0x4195fe
push edi
call fcn.0042cd57
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x419602
xor al, al
jmp 0x419642
push esi
push edi
lea eax, [ebp - 0x108]
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x419639
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0x46b9ec
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x419639
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
cmp dword [eax + 0x10], ecx
sbb bl, bl
inc bl
push esi
call fcn.0042cd0f
pop ecx
mov al, bl
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4196b7
Capabilities:
Check os version

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 1
je 0x4196f0
cmp eax, 2
je 0x4196f0
cmp eax, 3
je 0x4196e5
cmp eax, 4
je 0x4196de
cmp eax, 5
je 0x4196d7
xor al, al
ret
call fcn.0041e4e9
jmp 0x4196ea
call fcn.0041e488
jmp 0x4196ea
call fcn.0041e4bf
test eax, eax
setne al
ret
mov al, 1
ret

Function at 0x41dc7f
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x41dcdb
cmp edi, 2
jae 0x41dc91
xor al, al
pop edi
ret
cmp byte [esp + 0x10], 0
push esi
je 0x41dca2
mov esi, dword [esp + 0xc]
mov ax, word [esi]
jmp 0x41dcbd
push 0
call fcn.0042eaa4
push eax
call fcn.0042efd1
pop ecx
pop ecx
call fcn.0042efde
mov esi, dword [esp + 0xc]
mov word [esi], ax
inc esi
movzx eax, ax
inc esi
dec edi
push eax
dec edi
call fcn.0042efd1
test edi, edi
pop ecx
je 0x41dcda
call fcn.0042efde
xor byte [esi], al
inc esi
dec edi
jne 0x41dccf
pop esi
mov al, 1
pop edi
ret
Function at 0x433ab5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x474f28
cmp edx, dword [eax]
je 0x433ad7
add eax, 8
inc ecx
cmp eax, 0x474fb8
jl 0x433ac8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x474f28]
jne 0x433c05
mov eax, dword [0x479974]
cmp eax, 1
je 0x433bdf
test eax, eax
jne 0x433b08
cmp dword [0x474554], 1
je 0x433bdf
cmp edx, 0xfc
je 0x433c05
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x433b3f
lea eax, [ebp - 0x1a4]
push 0x45ab88
push eax
call fcn.0042eea0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0042da00
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x433b82
lea eax, [ebp - 0x1a4]
push eax
call fcn.0042da00
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x45ab84
push edi
call fcn.0042ecc0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x45ab68
push eax
call fcn.0042eea0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0042eeb0
lea eax, [ebp - 0xa0]
push 0x46c388
push eax
call fcn.0042eeb0
push dword [esi + 0x474f2c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0042eeb0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x45ab40
push eax
call fcn.00437218
add esp, 0x2c
pop edi
jmp 0x433c05
lea eax, [ebp + 8]
lea esi, [esi + 0x474f2c]
push 0
push eax
push dword [esi]
call fcn.0042da00
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 0x440b60
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.0042d2d0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x440c2b
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 0x440c2b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x440bde
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x440be9
or bh, 8
and edi, 0x8000000
je 0x440c04
mov eax, dword [0x47b65c]
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 0x440c2b
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 0x441000
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 0x44102b
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 0x44104f
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 0x44106a
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 0x444cbd
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x444cf5
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.00443c43
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00443c1b
jmp 0x444d01
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4462f0
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 0x446332
call fcn.0044da99
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x446332
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x446329
xor eax, eax
jmp 0x44633a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00446340
pop edi
pop esi
pop ebx
ret 4

Function at 0x44e559
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x44e609
mov ecx, 0x479900
call fcn.0044e128
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, eax
cmp word [esi + 8], 0
jne 0x44e5e7
push 0x457e38
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x44e5c5
mov ecx, dword [ebp + 0x10]
push 5
neg ecx
sbb ecx, ecx
and ecx, 0xe
add ecx, 0x3ee
movzx ecx, cx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x44e5c5
push ebx
push edi
push eax
call fcn.00448cae
add esp, 0xc
mov eax, dword [edi]
mov eax, dword [eax - 8]
inc eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 4], eax
push dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ax, word [ebx]
mov word [esi + 8], ax
push dword [esi + 4]
mov ecx, edi
call fcn.0044393a
mov si, word [esi + 8]
xor eax, eax
mov word [ebx], si
cmp si, 0xffff
pop edi
pop esi
setne al
pop ebx
pop ebp
ret 0xc
Function at 0x401e40
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6b8
mov eax, dword [0x404004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 4
push ebx
push esi
push edi
push 0x1e
mov dword [ebp - 0x6b0], ecx
lea edi, [ebp - 0x80]
pop ecx
mov esi, 0x4014d0
mov dword [ebp - 0x6b8], 0x80000002
rep movsd dword es:[edi], dword [esi]
push 0x7a
mov ebx, edx
mov dword [ebp - 0x6b4], 0x80000001
movsw word es:[edi], word [esi]
pop esi
jb 0x401fb1
xor eax, eax
xor edi, edi
mov word [ebx], ax
xor eax, eax
cmp ax, word [ebx]
jne 0x401fb1
lea eax, [ebp - 0x6a0]
push eax
push 1
push 0
lea eax, [ebp - 0x80]
push eax
push dword [ebp + edi*4 - 0x6b8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x401fa7
mov dword [ebp - 0x69c], eax
lea ecx, [ebp - 0x6a4]
mov dword [ebp - 0x6ac], 0x104
push ecx
lea ecx, [ebp - 0x698]
mov dword [ebp - 0x6a4], 0x410
push ecx
lea ecx, [ebp - 0x6a8]
push ecx
push 0
lea ecx, [ebp - 0x6ac]
push ecx
lea ecx, [ebp - 0x288]
push ecx
push eax
push dword [ebp - 0x6a0]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
mov eax, dword [ebp - 0x69c]
inc eax
mov dword [ebp - 0x69c], eax
test esi, esi
jne 0x401f9b
cmp dword [ebp - 0x6a4], 2
jbe 0x401ece
lea eax, [ebp - 0x288]
push eax
push dword [ebp - 0x6b0]
call dword [sym.imp.SHLWAPI.dll_StrCmpICW]
test eax, eax
mov eax, dword [ebp - 0x69c]
jne 0x401ece
cmp dword [ebp - 0x6a8], 1
je 0x401f5f
cmp dword [ebp - 0x6a8], 2
jne 0x401f98
mov eax, dword [ebp + 8]
add eax, 0xfffffffe
push eax
lea eax, [ebx + 2]
push eax
lea eax, [ebp - 0x698]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x401f98
mov ecx, dword [ebp + 8]
add ecx, 0xfffffffe
cmp eax, ecx
ja 0x401f98
push 0x22
pop ecx
mov word [ebx], cx
mov word [ebx + eax*2], cx
xor ecx, ecx
mov word [ebx + eax*2 + 2], cx
jmp 0x401f9b
push 0xd
pop esi
push dword [ebp - 0x6a0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
cmp edi, 2
jb 0x401e97
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004029f0
mov esp, ebp
pop ebp
ret 4
Function at 0x402594
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
push 0x22
pop ecx
movzx eax, word [esi]
cmp ax, cx
jne 0x4025cb
add esi, 2
movzx eax, word [esi]
test ax, ax
je 0x4025c1
cmp ax, cx
jne 0x4025b1
cmp word [esi], cx
jne 0x4025db
add esi, 2
jmp 0x4025db
push 0x20
pop ecx
cmp ax, cx
jbe 0x4025db
add esi, 2
cmp word [esi], cx
ja 0x4025d3
push 0x401688
push esi
call dword [sym.imp.SHLWAPI.dll_StrTrimW]
push 0x44
lea eax, [ebp - 0x44]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x18], 1
je 0x40260d
movzx edi, word [ebp - 0x14]
jmp 0x402610
push 0xa
pop edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
push esi
call fcn.0040226e
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4027a0
Capabilities:
Terminate process

Disassembly:
call fcn.00402c98
jmp 0x4027af
push 0x5c
push 0x402fc8
call fcn.00402d6c
and dword [ebp - 0x24], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov edi, dword [eax + 4]
xor esi, esi
mov edx, 0x404364
mov ecx, edi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x4027fc
cmp eax, edi
jne 0x40280e
mov esi, ebx
cmp dword [0x404368], ebx
jne 0x40281b
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x40284a
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4027e5
cmp dword [0x404368], 0
jne 0x402844
mov dword [0x404368], ebx
push 0x401018
push 0x40100c
call fcn.0040299a
pop ecx
pop ecx
test eax, eax
je 0x40284a
jmp 0x402983
mov dword [0x404014], ebx
cmp dword [0x404368], ebx
jne 0x40286d
push 0x401008
push section..text
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x404368], 2
test esi, esi
jne 0x40287a
xor eax, eax
mov ecx, 0x404364
xchg dword [ecx], eax
cmp dword [0x40436c], 0
je 0x4028a8
push 0x40436c
call fcn.00402b90
pop ecx
test eax, eax
je 0x4028a8
push 0
push 2
push 0
mov esi, dword [0x40436c]
mov ecx, esi
call dword [0x4050e4]
call esi
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov edi, dword [ebp - 0x24]
mov cl, byte [esi]
cmp cl, 0x20
ja 0x402906
test cl, cl
je 0x4028c4
test edi, edi
jne 0x402906
mov al, byte [esi]
test al, al
je 0x4028d4
cmp al, 0x20
ja 0x4028d4
inc esi
mov dword [ebp - 0x20], esi
jmp 0x4028c4
test byte [ebp - 0x40], 1
je 0x4028e0
movzx eax, word [ebp - 0x3c]
jmp 0x4028e3
push 0xa
pop eax
push eax
push esi
push 0
push 0x400000
call main
mov dword [0x404010], eax
cmp dword [0x404028], 0
jne 0x40295f
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cl, 0x22
jne 0x402917
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [ebp - 0x24], edi
movzx eax, cl
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x40292a
inc esi
mov dword [ebp - 0x20], esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x4028b5
cmp dword [0x404014], 0
jne 0x402973
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x404010]
mov dword [ebp - 4], 0xfffffffe
jmp 0x40298f
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00402db4
ret

Function at 0x402a7f
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x402ff0
call fcn.00402f58
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x402adf
cmp eax, 0xffffffff
je 0x402adf
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x402ad8
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x402ad8
cmp edx, 0x10000000
jae 0x402ad8
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x402ad5
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.00402f9d
ret 4