joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417190
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ebp, ecx
xor edi, edi
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x4171a2
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
push edi
push eax
push 7
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x41ab30
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
mov ebx, dword [0x45668c]
mov eax, 0x95e7555
imul ebx, ebx, 0xdcfc
imul dword [0x456694]
sar edx, 9
push ebp
push esi
mov ebp, dword [0x45669c]
mov esi, edx
add ebx, edx
shr esi, 0x1f
add esi, ebx
mov ebx, dword [0x456690]
mov ecx, dword [0x4566a8]
mov eax, 0x5bdd0ecb
imul ebx
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov eax, 0x6000f003
imul ebp
push edi
mov edi, ecx
imul edi, edi, 0x3117
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov eax, dword [esp + 0x18]
add esi, edi
cmp eax, 0x132b600
mov dword [esp + 0x10], edi
mov dword [0x456684], esi
je 0x41abd2
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0x64
lea ebx, [ebx]
push 0x3e8
call edi
dec esi
jne 0x41abc0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov edi, dword [0x4566a0]
mov edx, ebx
imul edx, edx, 0xdd0b
mov eax, edi
imul eax, eax, 0xffff5557
sub eax, edx
mov dword [esp + 0x18], eax
mov eax, 0x55072b69
imul ebp
mov eax, dword [esp + 0x18]
sar edx, 0xf
add eax, edx
mov ebp, edx
mov edx, dword [0x4566a4]
shr ebp, 0x1f
add ebp, eax
mov eax, 0x80df83a9
imul edx
add edx, dword [0x4566a4]
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebp, eax
mov eax, dword [0x56a7d0]
add ebp, esi
mov esi, dword [0x456688]
add esi, ebp
mov edx, eax
inc eax
test edx, edx
mov dword [0x456688], esi
mov dword [0x56a7d0], eax
jle 0x41ac9a
mov ecx, dword [0x45668c]
imul edi, edi, 0xdcfc
mov eax, 0x95e7555
imul ebx
sar edx, 9
add edi, edx
mov esi, edx
mov eax, 0xb73ab967
imul ecx
shr esi, 0x1f
add edx, ecx
sar edx, 0xf
add esi, edi
add esi, edx
mov eax, edx
mov edx, dword [0x456694]
shr eax, 0x1f
add eax, esi
sub eax, dword [esp + 0x10]
pop edi
sub eax, edx
pop esi
add eax, 0xdbb5
pop ebp
mov dword [0x45668c], eax
mov eax, 1
pop ebx
pop ecx
ret
mov eax, 0x9524e185
imul ecx, ecx, 0xb25a
imul esi, esi, 0x7f22
imul ebx
add edx, ebx
sar edx, 0xf
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov eax, 0x5bdd0ecb
imul dword [0x45669c]
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
add ecx, esi
sub ecx, edi
sub ecx, 0xdd0b
mov dword [0x456690], ecx
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0x41a600
push 0
push 0
mov dword [0x56a4f4], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [0x45668c]
mov edx, dword [0x456684]
imul esi, esi, 0xdcfc
mov ecx, dword [0x45669c]
imul edx, edx, 0x36a6
add esi, edx
mov eax, 0xb73ab967
imul ecx
add edx, ecx
mov ecx, dword [0x456698]
sar edx, 0xf
imul ecx, ecx, 0x7f22
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
add esi, dword [0x4566a4]
pop edi
lea edx, [ecx + esi - 0xdd0b]
pop esi
pop ebp
mov dword [0x456694], edx
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x41f640
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [0x4566a8]
push edi
mov edi, dword [0x456694]
mov eax, 0x95e7555
imul edi
sar edx, 9
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0x6bb7d05b
imul esi
sub edx, esi
sar edx, 0xf
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x4566a0]
mov ebx, esi
imul edx, edx, 0xb2d6
imul ebx, ebx, 0xdd0b
mov ebp, eax
sub ebp, ebx
add ebp, edx
mov edx, dword [0x456698]
mov eax, 0x14dc1615
imul edx
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add ebp, edx
add eax, ebp
sub eax, ecx
mov dword [0x456698], eax
cmp dword [esp + 0x14], 0x132b600
mov eax, 0x5bdd0ecb
je 0x41f722
mov edx, dword [0x456690]
imul esi, esi, 0x3117
mov edi, dword [0x45668c]
imul edx
imul edi, edi, 0xdcfc
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45669c]
sub edi, eax
mov eax, 0x6000f003
imul edx
sar edx, 0xe
mov eax, edx
add edi, esi
shr eax, 0x1f
add eax, edx
sub edi, eax
add edi, ecx
mov dword [0x456684], edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0x64
push 0x3e8
call edi
dec esi
jne 0x41f711
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
imul edi
mov esi, edi
imul esi, esi, 0xdd0b
sar edx, 0xe
mov ecx, edx
add esi, edx
mov edx, dword [0x456690]
shr ecx, 0x1f
imul edx, edx, 0xaaa9
add ecx, esi
mov esi, dword [0x45668c]
mov eax, esi
imul eax, eax, 0x18161
add ecx, edx
add ecx, eax
mov eax, 0x80df83a9
imul esi
add edx, esi
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov eax, dword [0x56a4e8]
test eax, eax
mov dword [0x45669c], ecx
jne 0x41f853
mov eax, 0x95e7555
imul esi
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x456688]
mov edi, ecx
imul edx, edx, 0xb2d6
imul edi, edi, 0x36a6
sub edi, eax
add edi, edx
mov edx, dword [0x4566a4]
mov eax, 0x5bdd0ecb
imul edx
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
mov eax, 0x6000f003
imul ecx
sar edx, 0xe
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea edx, [esp + 0x14]
push edx
push 0
push 0
push 0x41e0e0
push 0
sub edi, ecx
push 0
mov dword [0x4566a4], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [0x45668c]
mov ecx, dword [0x45669c]
imul esi, esi, 0xdcfc
mov dword [0x56a4d8], eax
mov eax, dword [0x456684]
imul eax, eax, 0x36a6
add esi, eax
mov eax, 0xb73ab967
imul ecx
mov eax, dword [0x4566a4]
add edx, ecx
sar edx, 0xf
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x456698]
imul edx, edx, 0x7f22
sub esi, ecx
add esi, eax
lea eax, [edx + esi - 0xdd0b]
mov dword [0x56a4e8], 1
mov dword [0x456694], eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x420aee
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x420b41
call fcn.00441685
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x420b41
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x420b37
xor eax, eax
jmp 0x420c5a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x420b71
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x420b71
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x420c57
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x420b9e
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0041fd63
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x420c57
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x420be7
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x420be7
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x420be1
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0041fd63
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x420c47
and dword [ebp + 0xc], 0
jmp 0x420c47
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x420c47
push 0xc
call fcn.0043b587
mov esi, eax
test esi, esi
pop ecx
je 0x420c29
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x420c2b
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x420c42
push dword [ebp - 8]
call fcn.00436fda
jmp 0x420c47
call fcn.00436fb1
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x420bac
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x429b59
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042c0fc
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x429b7c
test byte [esp + 8], 2
je 0x429b7c
call fcn.0042c0ea
mov dword [eax], 0xd
call fcn.0042c0f3
mov dword [eax], 5
jmp 0x429b55
xor eax, eax
ret
Function at 0x429c43
Capabilities:
Terminate process

Disassembly:
push 8
push 0x44a588
call fcn.0042bf68
push 8
call fcn.0042e1a1
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x56c804], esi
jne 0x429c77
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x56c800], esi
mov al, byte [ebp + 0x10]
mov byte [0x56c7fc], al
cmp dword [ebp + 0xc], edi
jne 0x429cc1
cmp dword [0x56e0ec], edi
je 0x429cb1
mov eax, dword [0x56e0e8]
sub eax, 4
mov dword [0x56e0e8], eax
cmp eax, dword [0x56e0ec]
jb 0x429cb1
mov eax, dword [eax]
cmp eax, edi
je 0x429c92
call eax
jmp 0x429c92
push 0x4530cc
mov eax, 0x4530c4
call fcn.00429bc1
pop ecx
push 0x4530d8
mov eax, 0x4530d0
call fcn.00429bc1
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x429cf2
cmp dword [ebp + 0x10], edi
jne 0x429d00
mov dword [0x56c804], esi
push dword [ebp + 8]
call fcn.00429b7f
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x429cff
push 8
call fcn.0042e0ec
pop ecx
ret
call fcn.0042bfa3
ret

Function at 0x42a387
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0042a220
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42a422
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x56c7c4]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x42a422
cmp eax, 1
je 0x42a443
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42a422
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x42a3ef
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x42a41e
xor eax, eax
inc eax
jmp 0x42a462
cmp edi, eax
jae 0x42a426
xor eax, eax
jmp 0x42a462
cmp eax, esi
jae 0x42a42d
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x56c7c4]
jmp 0x42a446
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42ad22
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x44a640
call fcn.0042bf68
mov edi, 0x94
mov eax, edi
call fcn.0042a220
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x56c7c4], ecx
mov eax, dword [esi + 4]
mov dword [0x56c7d0], eax
mov edx, dword [esi + 8]
mov dword [0x56c7d4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x56c7c8], esi
cmp ecx, 2
je 0x42ad82
or esi, 0x8000
mov dword [0x56c7c8], esi
shl eax, 8
add eax, edx
mov dword [0x56c7cc], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x42adbd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42adbd
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x42add5
cmp eax, 0x20b
je 0x42adc2
mov dword [ebp - 0x1c], esi
jmp 0x42ade9
cmp dword [ecx + 0x84], 0xe
jbe 0x42adbd
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x42ade3
cmp dword [ecx + 0x74], 0xe
jbe 0x42adbd
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0042e2e2
pop ecx
test eax, eax
jne 0x42adfd
push 0x1c
call fcn.0042acfe
pop ecx
call fcn.0042d11d
test eax, eax
jne 0x42ae0e
push 0x10
call fcn.0042acfe
pop ecx
call fcn.0042e1d2
mov dword [ebp - 4], esi
call fcn.00430eaf
test eax, eax
jge 0x42ae27
push 0x1b
call fcn.0042acd9
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x56e0e0], eax
call fcn.00430d8d
mov dword [0x56c810], eax
call fcn.00430ceb
test eax, eax
jge 0x42ae4d
push 8
call fcn.0042acd9
pop ecx
call fcn.00430ab8
test eax, eax
jge 0x42ae5e
push 9
call fcn.0042acd9
pop ecx
push 1
call fcn.00429bd9
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x42ae74
push eax
call fcn.0042acd9
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00430a5b
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x42ae95
movzx eax, word [ebp - 0x40]
jmp 0x42ae98
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0043667e
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x42aeb6
push edi
call fcn.00429d06
call fcn.00429d28
jmp 0x42aee8
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0042bfa3
ret
Function at 0x42ee71
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x42ee9f
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x42eea6
cmp ebx, dword [eax + 4]
jae 0x42eea6
xor eax, eax
jmp 0x42f096
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x42eeb7
xor eax, eax
inc eax
jmp 0x42f095
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x42eecd
cmp ecx, edx
jae 0x42f012
cmp dword [eax + 4], 0
je 0x42eed6
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x42eebe
cmp dword [ebp + 8], 0
je 0x42eef8
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x42f012
cmp eax, esi
jae 0x42f012
mov eax, dword [0x56c9a0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x42ef1d
cmp dword [esi*4 + 0x56c9a8], edi
je 0x42f016
inc esi
cmp esi, eax
jl 0x42ef0b
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42f092
cmp dword [ebp - 8], 0x1000000
jne 0x42f092
test byte [ebp - 0xc], 0xcc
je 0x42ef9b
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x42f092
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x42f092
cmp word [eax + 0x18], 0x10b
jne 0x42f092
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x42f092
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x42ef9b
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x42ef9b
test byte [ecx + 0x27], 0x80
jne 0x42f012
push 1
push 0x56c9e8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x42eeaf
mov ecx, dword [0x56c9a0]
test ecx, ecx
mov edx, ecx
jle 0x42efcf
lea eax, [ecx*4 + 0x56c9a4]
cmp dword [eax], edi
je 0x42efcf
dec edx
sub eax, 4
test edx, edx
jg 0x42efc3
test edx, edx
jne 0x42f000
push 0xf
pop ebx
cmp ecx, ebx
jg 0x42efdc
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x42eff4
lea eax, [edx*4 + 0x56c9a8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x42efe2
cmp ecx, 0x10
jge 0x42f000
inc ecx
mov dword [0x56c9a0], ecx
push 0
push 0x56c9e8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x42eeaf
xor eax, eax
jmp 0x42f095
test esi, esi
jle 0x42eeaf
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x56c9e8
call ebx
test eax, eax
jne 0x42eeaf
cmp dword [esi*4 + 0x56c9a8], edi
je 0x42f06c
mov eax, dword [0x56c9a0]
lea esi, [eax - 1]
test esi, esi
jl 0x42f05a
cmp dword [esi*4 + 0x56c9a8], edi
je 0x42f056
dec esi
jns 0x42f04a
test esi, esi
jge 0x42f06a
cmp eax, 0x10
jge 0x42f065
inc eax
mov dword [0x56c9a0], eax
lea esi, [eax - 1]
jmp 0x42f06c
je 0x42f084
xor ecx, ecx
test esi, esi
jl 0x42f084
lea eax, [ecx*4 + 0x56c9a8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x42f072
push 0
push 0x56c9e8
call ebx
jmp 0x42eeaf
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430747
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x458000]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4588e0]
je 0x43077c
inc eax
cmp eax, 0x13
jb 0x43076d
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4588e0]
jne 0x4308a2
mov eax, dword [0x56c818]
cmp eax, 1
je 0x43087a
cmp eax, edx
jne 0x4307ac
cmp dword [0x458044], 1
je 0x43087a
cmp ecx, 0xfc
je 0x4308a2
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4307e2
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00431e40
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0042b290
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x430816
mov eax, edi
push eax
call fcn.0042b290
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x44a788
push edi
call fcn.0042ab70
add esp, 0x10
push edi
call fcn.0042b290
push dword [esi + 0x4588e4]
mov ebx, eax
call fcn.0042b290
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0042a220
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00431e40
push edi
push ebx
call fcn.00431e50
push 0x4471b8
push ebx
call fcn.00431e50
push dword [esi + 0x4588e4]
push ebx
call fcn.00431e50
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0043293a
add esp, 0x2c
jmp 0x4308a2
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4588e4]
push dword [esi]
call fcn.0042b290
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00429911
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x43293a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x56cc38], ebx
push esi
push edi
jne 0x4329ba
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4329f5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44b5a4
push edi
call esi
test eax, eax
mov dword [0x56cc38], eax
je 0x4329f5
push 0x44b594
push edi
call esi
push 0x44b580
push edi
mov dword [0x56cc3c], eax
call esi
cmp dword [0x56c7c4], 2
mov dword [0x56cc40], eax
jne 0x4329ba
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x56cc48], eax
je 0x4329ba
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x56cc44], eax
mov eax, dword [0x56cc44]
test eax, eax
je 0x4329ff
call eax
test eax, eax
je 0x4329e6
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x56cc48]
test eax, eax
je 0x4329e6
test byte [ebp - 8], 1
jne 0x4329ff
cmp dword [0x56c7d0], 4
jb 0x4329f9
or byte [ebp + 0x12], 0x20
jmp 0x432a1e
xor eax, eax
jmp 0x432a2e
or byte [ebp + 0x12], 4
jmp 0x432a1e
mov eax, dword [0x56cc3c]
test eax, eax
je 0x432a1e
call eax
mov ebx, eax
test ebx, ebx
je 0x432a1e
mov eax, dword [0x56cc40]
test eax, eax
je 0x432a1e
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x56cc38]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x432e1a
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x458000]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x432e4b
xor eax, eax
jmp 0x432fd4
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x56cd60]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x432e87
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00434781
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x432f62
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x432fa0
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x432eeb
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x432edc
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x432ebc
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x432f2b
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x432f34
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x432ead
jmp 0x432f36
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x432fcf
cmp dword [ebp - 0x6c], edi
je 0x432fa0
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x432f95
call fcn.0042c0ea
mov dword [eax], 9
call fcn.0042c0f3
mov dword [eax], esi
jmp 0x432fca
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x432f8a
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x432f36
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x432f36
push dword [ebp - 0x6c]
call fcn.0042c0fc
pop ecx
jmp 0x432fca
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x432fb8
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x432fb8
xor eax, eax
jmp 0x432fd2
call fcn.0042c0ea
mov dword [eax], 0x1c
call fcn.0042c0f3
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x432fd2
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00429911
add ebp, 0x3a0
leave
ret