joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43cc6d
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov esi, ecx
push 0x4975e4
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov bl, byte [esi + 0xb]
xor edi, edi
cmp dword [ebp + 0x10], edi
setl byte [ebp - 1]
and bl, 0x11
cmp byte [ebp - 1], 0
jne 0x43cca1
test byte [ebp + 0x10], 0x40
je 0x43cca3
xor bl, bl
mov esi, dword [ebp + 8]
push 0x486e8c
push esi
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x43ccf7
mov word [ebp - 0x4c], di
call fcn.00428f27
and edx, 0x7fffffff
push edx
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0043627a
mov esi, dword [ebp + 0xc]
add esp, 0xc
push 3
mov ecx, esi
mov word [ebp - 0xe], di
call fcn.0042c850
mov esi, dword [esi]
mov ax, word [ebp - 0x4c]
mov word [esi], ax
lea eax, [esi + 2]
jmp 0x43ce2a
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp byte [ebp - 1], 0
mov edi, dword [ebp + 0xc]
movsx eax, bl
mov byte [ebp + 0x13], 0
mov dword [ebp - 8], eax
jne 0x43cd23
cmp word [esi], 0x26
je 0x43cdd5
test bl, bl
jne 0x43cdae
push 0x52
mov ecx, edi
call fcn.0042c850
mov esi, dword [edi]
and word [esi], 0
push 0
mov dword [ebp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [edi]
push 0x50
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test ebx, ebx
jle 0x43cd8d
cmp word [esi], 0
jne 0x43cd85
lea eax, [ebx + 0xc]
push eax
mov ecx, edi
call fcn.0042c850
mov esi, dword [edi]
and word [esi], 0
push 0
mov dword [ebp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [edi]
add ebx, 0xa
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test ebx, ebx
jg 0x43ce27
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
jne 0x43ce23
cmp byte [ebp + 0x13], 0
jne 0x43ce21
cmp byte [ebp - 1], 0
mov byte [ebp + 0x13], 1
jne 0x43ce21
mov ecx, dword [ebp - 0xc]
push 0xffffffffffffffff
xor ebx, ebx
push ebx
push dword [ebp + 8]
call fcn.0040f2f5
cmp eax, ebx
jne 0x43cde4
cmp dword [ebp - 8], ebx
jne 0x43cdf2
cmp byte [ebp + 0x13], bl
jne 0x43cdf2
mov byte [ebp + 0x13], 1
jmp 0x43cd23
add esi, 2
mov dword [ebp + 8], esi
mov dword [ebp - 8], 1
jmp 0x43cdae
mov eax, dword [eax]
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea eax, [ebx + 2]
push eax
mov ecx, edi
call fcn.0042c850
dec ebx
mov esi, dword [edi]
mov dword [ebp + 0xc], esi
js 0x43ce2d
lea eax, [ebx + 1]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov cx, word [ecx]
add dword [ebp + 0xc], 2
add dword [ebp + 8], 2
dec eax
mov word [edx], cx
jne 0x43ce08
jmp 0x43ce2d
xor ebx, ebx
test ebx, ebx
jle 0x43ce2d
lea eax, [esi + ebx*2]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
and word [eax], 0
mov eax, 0x4975e4
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x43d8d6
Capabilities:
Parse credit card information
Query environment variable

Disassembly:
push ebp
mov ebp, esp
cmp byte [ecx + 0x8a], 0
jne 0x43d8ee
test byte [ecx + 0xb], 0xf
jne 0x43d8ee
pop ebp
jmp fcn.0043d7de
pop ebp
jmp fcn.0043c527
Function at 0x43dc47
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov eax, esi
call fcn.004349a3
and word [ebp - 0xc], 0
and word [ebp - 2], 0
mov ebx, eax
lea eax, [ebp - 8]
push eax
mov word [ebp - 0x18], 0x20
mov word [ebp - 0x16], 0x2a
mov word [ebp - 0x14], 0x20
mov word [ebp - 0x12], si
mov word [ebp - 0x10], 0x3a
mov word [ebp - 0xe], 0x2c
mov word [ebp - 8], si
mov word [ebp - 6], 0x3a
mov word [ebp - 4], 0x5c
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
je 0x43dca7
cmp ebx, 2
je 0x43dcb7
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x496eb8
call fcn.0043ae19
pop ebx
leave
ret
Function at 0x44b086
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor esi, esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, eax
cmp ebx, esi
jne 0x44b1af
mov eax, dword [ebp - 0x10]
lea eax, [eax*4 + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.0042c827
cmp dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
jle 0x44b1a7
push edi
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
push esi
push esi
push esi
shl eax, 2
push esi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 0xc]
mov dword [ebp - 8], esi
push dword [ebp + 8]
mov word [edi], si
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
cmp ebx, esi
jne 0x44b197
cmp word [edi], si
je 0x44b197
mov eax, dword [ebp + 0x10]
push dword [eax]
lea ecx, [ebp - 4]
call fcn.004365ba
push 0x480bd8
lea ecx, [ebp - 4]
call fcn.0042c877
push edi
lea ecx, [ebp - 4]
call fcn.0042c877
push esi
push dword [ebp + 0xc]
push esi
push esi
push 4
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
lea eax, [ebp - 8]
push eax
movzx eax, word [0x496b68]
or eax, 0xf003f
push eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 8], esi
mov ebx, eax
je 0x44b18f
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.0044b086
add esp, 0xc
cmp dword [ebp - 8], esi
mov ebx, eax
je 0x44b18f
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 4]
call fcn.00427365
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jl 0x44b0dd
pop edi
lea ecx, [ebp - 0x18]
call fcn.00427365
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x45190d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2dc
push ebx
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov eax, 0xb4
cmp esi, eax
jle 0x45192f
mov esi, eax
and dword [ebp - 0x2dc], 0
xor eax, eax
mov ecx, 0xb6
lea edi, [ebp - 0x2d8]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xb0], eax
lea eax, [esi + esi]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x248]
push eax
mov byte [ebp - 0x274], 0x40
mov dword [ebp - 0x24c], edi
call fcn.0046cbf0
and word [ebp + esi*2 - 0x248], 0
add esp, 0xc
mov ebx, 0x4975bc
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x496b6c
push 0x10000
lea eax, [ebp - 0x2dc]
push eax
push 0x451018
push 0x20000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [ebp + 0x18], eax
je 0x4519f7
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp + 0x1c], 0x270f
cmp dword [ebp - 0x24c], edi
jne 0x4519ee
push 0
call esi
dec dword [ebp + 0x1c]
jns 0x4519cf
jmp 0x4519e6
push 1
call esi
cmp dword [ebp - 0x24c], edi
je 0x4519e2
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x454e58
Capabilities:
Hide graphical window

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x84
push ebx
push esi
xor ebx, ebx
cmp byte [ebp + 0x78], bl
push edi
mov edi, ecx
mov esi, dword [edi + 0x1c]
mov dword [ebp + 0x64], edi
mov word [ebp - 0x1c], bx
jne 0x454ec6
push dword [ebp + 0x70]
lea ebx, [esi + 0x70]
mov ecx, ebx
call fcn.00409ff0
and dword [ebp + 0x4c], 0
xor eax, eax
mov dword [ebp + 0x48], 1
lea edi, [ebp + 0x50]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0x74]
mov edi, dword [esi + 0x7c]
mov dword [ebp + 0x54], eax
lea eax, [ebp + 0x48]
push eax
push dword [ebp + 0x70]
push 0x133d
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebx]
mov eax, dword [eax + edi*4]
mov eax, dword [eax]
mov ebx, dword [eax + 0x18]
mov edi, dword [ebp + 0x64]
mov eax, dword [ebp + 0x70]
inc eax
push eax
lea eax, [ebp - 0x1c]
push 0x48812c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x486fdc
lea ecx, [ebp + 0x78]
call fcn.004365ba
push dword [edi + 8]
lea ecx, [ebp + 0x78]
call fcn.0042c877
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0x78]
call fcn.0042c877
push dword [ebp + 0x74]
mov ecx, dword [edi + 0x30]
push dword [ebp + 0x78]
call fcn.0042b2cd
mov eax, dword [ebp + 0x7c]
test eax, eax
je 0x454f26
mov ecx, dword [eax]
test ecx, ecx
je 0x454f26
and dword [eax], 0
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
je 0x454f3a
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push ebx
call esi
push 5
push ebx
call esi
lea ecx, [ebp + 0x78]
call fcn.00427365
pop edi
pop esi
pop ebx
add ebp, 0x68
leave
ret 0x10
Function at 0x4664f3
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
push 0
mov esi, ecx
mov eax, dword [esi + 0x7c]
push 0x132f
push dword [esi + 0x18]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [esi + 0x70]
mov edi, eax
mov eax, dword [ebp - 4]
cmp edi, eax
je 0x466591
test edi, edi
jl 0x466591
cmp edi, dword [esi + 0x78]
jge 0x466591
mov eax, dword [ebx + eax*4]
mov eax, dword [eax]
test eax, eax
je 0x46653d
push 0
push dword [eax + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esi + 0x7c], edi
mov eax, dword [ebx + edi*4]
mov eax, dword [eax]
test eax, eax
je 0x466554
push 5
push dword [eax + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x486fdc
lea ecx, [ebp - 4]
call fcn.004365ba
push dword [esi + 0x4c]
lea ecx, [ebp - 4]
call fcn.0042c877
push str..Select
lea ecx, [ebp - 4]
call fcn.0042c877
push dword [ebp - 4]
inc edi
push edi
push dword [esi + 0x50]
call fcn.0042e74e
add esp, 0xc
lea ecx, [ebp - 4]
call fcn.00427365
pop edi
pop esi
pop ebx
leave
ret

Function at 0x46723f
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0xfffffffffffffff0
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x46726a
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [esi + 0x18]
call edi
push 5
push dword [esi + 0x18]
call edi
pop edi
pop esi
ret

Function at 0x46c4b6
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
and eax, 0xffdf
cmp ax, 0x41
je 0x46c4d4
cmp ax, 0x42
je 0x46c4d4
push 0xfffffffffffffffe
pop eax
leave
ret
and word [ebp - 4], 0
mov word [ebp - 8], ax
lea eax, [ebp - 8]
push eax
mov word [ebp - 6], 0x3a
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
cmp eax, 2
setne cl
mov eax, ecx
leave
ret

Function at 0x46c659
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop ebp
ret
Function at 0x46fbf2
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x489a80
call fcn.0046f1a8
mov edi, 0x94
mov eax, edi
call fcn.0046d3f0
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 [0x497af0], ecx
mov eax, dword [esi + 4]
mov dword [0x497afc], eax
mov edx, dword [esi + 8]
mov dword [0x497b00], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x497af4], esi
cmp ecx, 2
je 0x46fc52
or esi, 0x8000
mov dword [0x497af4], esi
shl eax, 8
add eax, edx
mov dword [0x497af8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x46fc8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x46fc8d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x46fca5
cmp eax, 0x20b
je 0x46fc92
mov dword [ebp - 0x1c], esi
jmp 0x46fcb9
cmp dword [ecx + 0x84], 0xe
jbe 0x46fc8d
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x46fcb3
cmp dword [ecx + 0x74], 0xe
jbe 0x46fc8d
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0047843c
pop ecx
test eax, eax
jne 0x46fccd
push 0x1c
call fcn.0046fbce
pop ecx
call fcn.00472773
test eax, eax
jne 0x46fcde
push 0x10
call fcn.0046fbce
pop ecx
call fcn.0047a1e4
mov dword [ebp - 4], esi
call fcn.004714ba
test eax, eax
jge 0x46fcf7
push 0x1b
call fcn.0046fba9
pop ecx
call fcn.0047a145
mov dword [0x4984b0], eax
call fcn.00479fdb
mov dword [0x497ae4], eax
call fcn.00479f45
test eax, eax
jge 0x46fd1c
push 8
call fcn.0046fba9
pop ecx
call fcn.00479d12
test eax, eax
jge 0x46fd2d
push 9
call fcn.0046fba9
pop ecx
push 1
call fcn.0046ffcd
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x46fd43
push eax
call fcn.0046fba9
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.00479ccc
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x46fd64
movzx eax, word [ebp - 0x40]
jmp 0x46fd67
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004097da
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x46fd85
push edi
call fcn.004700fa
call fcn.0047011c
jmp 0x46fdb7
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0046f1e3
ret
Function at 0x470037
Capabilities:
Terminate process

Disassembly:
push 8
push 0x489ab8
call fcn.0046f1a8
push 8
call fcn.00471aca
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x497b30], esi
jne 0x47006b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x497b2c], esi
mov al, byte [ebp + 0x10]
mov byte [0x497b28], al
cmp dword [ebp + 0xc], edi
jne 0x4700b5
cmp dword [0x4984a8], edi
je 0x4700a5
mov eax, dword [0x4984a4]
sub eax, 4
mov dword [0x4984a4], eax
cmp eax, dword [0x4984a8]
jb 0x4700a5
mov eax, dword [eax]
cmp eax, edi
je 0x470086
call eax
jmp 0x470086
push 0x4950b0
mov eax, 0x4950a8
call fcn.0046ffb5
pop ecx
push 0x4950bc
mov eax, 0x4950b4
call fcn.0046ffb5
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4700e6
cmp dword [ebp + 0x10], edi
jne 0x4700f4
mov dword [0x497b30], esi
push dword [ebp + 8]
call fcn.0046ff73
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4700f3
push 8
call fcn.00471a15
pop ecx
ret
call fcn.0046f1e3
ret
Function at 0x471ea2
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x496300]
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 0x471ed3
xor eax, eax
jmp 0x47205c
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 + 0x4983a0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x471f0f
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0047a874
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x471fea
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x472028
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 0x471f73
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x471f64
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 0x471f44
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 0x471fb3
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x471fbc
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x471f35
jmp 0x471fbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x472057
cmp dword [ebp - 0x6c], edi
je 0x472028
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x47201d
call fcn.00471e1d
mov dword [eax], 9
call fcn.00471e26
mov dword [eax], esi
jmp 0x472052
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 0x472012
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x471fbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x471fbe
push dword [ebp - 0x6c]
call fcn.00471e2f
pop ecx
jmp 0x472052
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x472040
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x472040
xor eax, eax
jmp 0x47205a
call fcn.00471e1d
mov dword [eax], 0x1c
call fcn.00471e26
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x47205a
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0047a5eb
add ebp, 0x3a0
leave
ret
Function at 0x477e40
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 0x477e6e
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 0x477e75
cmp ebx, dword [eax + 4]
jae 0x477e75
xor eax, eax
jmp 0x478065
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x477e86
xor eax, eax
inc eax
jmp 0x478064
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x477e9c
cmp ecx, edx
jae 0x477fe1
cmp dword [eax + 4], 0
je 0x477ea5
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x477e8d
cmp dword [ebp + 8], 0
je 0x477ec7
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x477fe1
cmp eax, esi
jae 0x477fe1
mov eax, dword [0x497d90]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x477eec
cmp dword [esi*4 + 0x497d98], edi
je 0x477fe5
inc esi
cmp esi, eax
jl 0x477eda
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x478061
cmp dword [ebp - 8], 0x1000000
jne 0x478061
test byte [ebp - 0xc], 0xcc
je 0x477f6a
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x478061
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x478061
cmp word [eax + 0x18], 0x10b
jne 0x478061
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x478061
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x477f6a
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x477f6a
test byte [ecx + 0x27], 0x80
jne 0x477fe1
push 1
push 0x497dd8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x477e7e
mov ecx, dword [0x497d90]
test ecx, ecx
mov edx, ecx
jle 0x477f9e
lea eax, [ecx*4 + 0x497d94]
cmp dword [eax], edi
je 0x477f9e
dec edx
sub eax, 4
test edx, edx
jg 0x477f92
test edx, edx
jne 0x477fcf
push 0xf
pop ebx
cmp ecx, ebx
jg 0x477fab
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x477fc3
lea eax, [edx*4 + 0x497d98]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x477fb1
cmp ecx, 0x10
jge 0x477fcf
inc ecx
mov dword [0x497d90], ecx
push 0
push 0x497dd8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x477e7e
xor eax, eax
jmp 0x478064
test esi, esi
jle 0x477e7e
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x497dd8
call ebx
test eax, eax
jne 0x477e7e
cmp dword [esi*4 + 0x497d98], edi
je 0x47803b
mov eax, dword [0x497d90]
lea esi, [eax - 1]
test esi, esi
jl 0x478029
cmp dword [esi*4 + 0x497d98], edi
je 0x478025
dec esi
jns 0x478019
test esi, esi
jge 0x478039
cmp eax, 0x10
jge 0x478034
inc eax
mov dword [0x497d90], eax
lea esi, [eax - 1]
jmp 0x47803b
je 0x478053
xor ecx, ecx
test esi, esi
jl 0x478053
lea eax, [ecx*4 + 0x497d98]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x478041
push 0
push 0x497dd8
call ebx
jmp 0x477e7e
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4780e6
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.0046d3f0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x478181
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 [0x497af0]
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 0x478181
cmp eax, 1
je 0x4781a2
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 0x478181
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x47814e
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x47817d
xor eax, eax
inc eax
jmp 0x4781c1
cmp edi, eax
jae 0x478185
xor eax, eax
jmp 0x4781c1
cmp eax, esi
jae 0x47818c
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 [0x497af0]
jmp 0x4781a5
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 0x4799b8
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x496300]
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 + 0x496310]
je 0x4799ed
inc eax
cmp eax, 0x13
jb 0x4799de
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x496310]
jne 0x479b13
mov eax, dword [0x497ae8]
cmp eax, 1
je 0x479aeb
cmp eax, edx
jne 0x479a1d
cmp dword [0x495b4c], 1
je 0x479aeb
cmp ecx, 0xfc
je 0x479b13
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 0x479a53
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0046cae0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00471c10
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x479a87
mov eax, edi
push eax
call fcn.00471c10
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x48fed8
push edi
call fcn.0047bfb0
add esp, 0x10
push edi
call fcn.00471c10
push dword [esi + 0x496314]
mov ebx, eax
call fcn.00471c10
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0046d3f0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0046cae0
push edi
push ebx
call fcn.0046caf0
push 0x48feb8
push ebx
call fcn.0046caf0
push dword [esi + 0x496314]
push ebx
call fcn.0046caf0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0047d7c4
add esp, 0x2c
jmp 0x479b13
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x496314]
push dword [esi]
call fcn.00471c10
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.0047a5eb
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret