joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412018
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x412057
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x412057
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x412057
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x412057
cmp dword [ecx + 0x74], 0xe
jbe 0x412057
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x427100
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42712d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42712d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x428235
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x44a49c
push str.FlsAlloc
push 0x1f
call fcn.004286e8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x428269
push dword [ebp + 8]
mov ecx, esi
call dword [0x451b2c]
call esi
jmp 0x42826f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4282b3
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x44a4c0
push str.FlsGetValue
push 0x21
call fcn.004286e8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4282ea
push dword [ebp + 8]
mov ecx, esi
call dword [0x451b2c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4282f2
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x44a4d4
push str.FlsSetValue
push 0x22
call fcn.004286e8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42832c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x451b2c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x42c83f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x455010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00427a7c
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00427a7c
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x42c8b6
cmp word [ecx], dx
je 0x42c8b6
mov eax, dword [0x44ae94]
push edi
dec eax
push eax
push 0x44ad80
call fcn.0042ca2f
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x42c929
cmp word [eax], dx
je 0x42c929
mov eax, dword [edi]
test eax, eax
je 0x42c8da
cmp word [eax], dx
je 0x42c8da
lea eax, [ebp - 0x10]
push eax
call fcn.0042ca90
jmp 0x42c8e3
lea eax, [ebp - 0x10]
push eax
call fcn.0042cd7e
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x42c953
mov eax, dword [0x44ad7c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x44aa70
call fcn.0042ca2f
add esp, 0xc
test al, al
je 0x42c953
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x42c91e
cmp word [eax], di
je 0x42c91e
lea eax, [ebp - 0x10]
push eax
call fcn.0042ca90
pop ecx
jmp 0x42c955
lea eax, [ebp - 0x10]
push eax
call fcn.0042cd7e
jmp 0x42c91b
mov eax, dword [edi]
test eax, eax
je 0x42c940
cmp word [eax], dx
je 0x42c940
lea eax, [ebp - 0x10]
push eax
call fcn.0042ceb2
pop ecx
jmp 0x42c953
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x42ca1e
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0042cfa4
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x42ca1e
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x42ca1e
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x42ca1e
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x42c9ab
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0042852b
test ebx, ebx
je 0x42ca19
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0042852b
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x42ca1e
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x42ca1e
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00421fab
add esp, 0x10
xor eax, eax
inc eax
jmp 0x42ca20
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412419
leave
ret
Function at 0x42d0aa
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00427a7c
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x42d119
cmp esi, dword [ebp - 4]
je 0x42d114
cmp dword [ebp + 0xc], 0
je 0x42d114
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x42d0f1
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0042d173
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x42d11b
xor eax, eax
inc eax
jmp 0x42d11b
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x42d4c2
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x455010]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x42d50d
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0042d638
test al, al
jne 0x42d507
sub edx, 2
cmp edx, edi
jne 0x42d4ed
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x42d52f
lea eax, [edi + 2]
cmp edx, eax
je 0x42d52f
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0042d40e
add esp, 0x10
jmp 0x42d629
push esi
lea ecx, [ebp - 0x255]
call fcn.0042d638
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42d572
push dword [ebp - 0x25c]
jmp 0x42d51f
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x42d5af
cmp word [ebp - 0x226], 0
je 0x42d5d0
cmp word [ebp - 0x226], ax
jne 0x42d5af
cmp word [ebp - 0x224], 0
je 0x42d5d0
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0042d40e
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x42d61c
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x42d589
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x42d604
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x42d629
push 0x42d65c
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00434870
add esp, 0x10
jmp 0x42d5f9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412419
leave
ret
Function at 0x42df6f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x42df80
pop esi
ret
push ebx
push edi
push esi
call fcn.0042dfbd
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00429c06
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x42dfa8
push ebx
push esi
push edi
call fcn.004150c0
add esp, 0xc
push 0
call fcn.00427414
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x42dff4
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042dfff
Function at 0x4308df
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4575c8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x43091f
cmp byte [ebx], 0xa
jne 0x43091f
or byte [edi + eax + 0x28], 4
jmp 0x430924
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x430a23
mov dl, byte [eax]
cmp dl, 0x1a
je 0x430a06
inc eax
cmp dl, 0xd
je 0x430950
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x430976
cmp eax, ecx
jae 0x430984
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x430938
jmp 0x430a23
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x430a01
cmp dword [ebp - 0x10], 0
je 0x430a01
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4575c8]
test byte [eax + edi + 0x28], 0x48
je 0x4309db
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4309c6
mov byte [esi], dl
jmp 0x4309d7
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4575c8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x430a23
cmp byte [ebp - 1], 0xa
jne 0x4309ea
cmp esi, ebx
jne 0x4309ea
mov byte [esi], 0xa
jmp 0x430a22
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00430c26
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x430a23
mov byte [esi], 0xd
jmp 0x430a22
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4575c8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x430a20
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x430a23
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x430a2c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4575c8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x430a72
cmp word [ebx], dx
jne 0x430a72
or byte [eax + edi + 0x28], 4
jmp 0x430a77
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x430bda
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x430bba
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x430ab8
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x430aee
cmp eax, edx
jae 0x430afc
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x430a93
jmp 0x430bda
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x430bb5
cmp dword [ebp - 0x18], 0
je 0x430bb5
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4575c8]
test byte [eax + edi + 0x28], 0x48
je 0x430b8b
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x430b4f
mov word [esi], cx
jmp 0x430b86
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4575c8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4575c8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4575c8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x430bda
pop eax
cmp word [ebp - 4], ax
jne 0x430b9b
cmp esi, ebx
jne 0x430b9b
mov word [esi], ax
jmp 0x430bd7
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00430c26
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x430bda
push 0xd
pop eax
jmp 0x430b96
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4575c8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x430bd4
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x430bda
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4058c2
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x40a128
call fcn.0040664c
mov edi, 0x94
mov eax, edi
call fcn.004067b0
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 [0x46f428], ecx
mov eax, dword [esi + 4]
mov dword [0x46f434], eax
mov edx, dword [esi + 8]
mov dword [0x46f438], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x46f42c], esi
cmp ecx, 2
je 0x405922
or esi, 0x8000
mov dword [0x46f42c], esi
shl eax, 8
add eax, edx
mov dword [0x46f430], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40595d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40595d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x405975
cmp eax, 0x20b
je 0x405962
mov dword [ebp - 0x1c], esi
jmp 0x405989
cmp dword [ecx + 0x84], 0xe
jbe 0x40595d
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x405983
cmp dword [ecx + 0x74], 0xe
jbe 0x40595d
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.004065fb
pop ecx
test eax, eax
jne 0x4059b5
cmp dword [0x46f418], 1
jne 0x4059a2
call fcn.00405db0
push 0x1c
call fcn.00405c39
push 0xff
call fcn.00405a9e
pop ecx
pop ecx
call fcn.00406559
mov dword [ebp - 4], esi
call fcn.004063ae
test eax, eax
jge 0x4059ce
push 0x1b
call fcn.0040589d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x46f9b4], eax
call fcn.0040628c
mov dword [0x46f410], eax
call fcn.004061ea
test eax, eax
jge 0x4059f4
push 8
call fcn.0040589d
pop ecx
call fcn.00405fb7
test eax, eax
jge 0x405a05
push 9
call fcn.0040589d
pop ecx
push 1
call fcn.00405ace
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x405a1b
push eax
call fcn.0040589d
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00405f5a
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x405a3c
movzx eax, word [ebp - 0x40]
jmp 0x405a3f
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401660
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x405a5d
push edi
call fcn.00405bf9
call fcn.00405c1b
jmp 0x405a8f
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00406687
ret
Function at 0x405b38
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x46f468], esi
push edi
jne 0x405b58
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x46f464], esi
mov byte [0x46f460], al
jne 0x405bbe
mov ecx, dword [0x46f9a8]
test ecx, ecx
je 0x405b9f
mov eax, dword [0x46f9a4]
sub eax, 4
cmp eax, ecx
jmp 0x405b98
mov eax, dword [eax]
test eax, eax
je 0x405b8a
call eax
mov eax, dword [0x46f9a4]
sub eax, 4
cmp eax, dword [0x46f9a8]
mov dword [0x46f9a4], eax
jae 0x405b82
mov eax, 0x40c01c
mov esi, 0x40c020
cmp eax, esi
mov edi, eax
jae 0x405bbe
mov eax, dword [edi]
test eax, eax
je 0x405bb7
call eax
add edi, 4
cmp edi, esi
jb 0x405baf
mov eax, 0x40c024
mov esi, 0x40c028
cmp eax, esi
mov edi, eax
jae 0x405bdd
mov eax, dword [edi]
test eax, eax
je 0x405bd6
call eax
add edi, 4
cmp edi, esi
jb 0x405bce
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x405bf7
push dword [ebp + 8]
mov dword [0x46f468], 1
call fcn.00405a9e
pop ebp
ret

Function at 0x405c39
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x46f2c0]
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 + 0x46f190]
je 0x405c6e
inc eax
cmp eax, 0x13
jb 0x405c5f
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x46f190]
jne 0x405d94
mov eax, dword [0x46f418]
cmp eax, 1
je 0x405d6c
cmp eax, edx
jne 0x405c9e
cmp dword [0x46f188], 1
je 0x405d6c
cmp ecx, 0xfc
je 0x405d94
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 0x405cd4
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00405710
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00406ae0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x405d08
mov eax, edi
push eax
call fcn.00406ae0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40a540
push edi
call fcn.004069b0
add esp, 0x10
push edi
call fcn.00406ae0
push dword [esi + 0x46f194]
mov ebx, eax
call fcn.00406ae0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004067b0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00405710
push edi
push ebx
call fcn.00405720
push 0x40a520
push ebx
call fcn.00405720
push dword [esi + 0x46f194]
push ebx
call fcn.00405720
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004068a9
add esp, 0x2c
jmp 0x405d94
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x46f194]
push dword [esi]
call fcn.00406ae0
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.00406b9c
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x4068a9
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x46f584], ebx
push esi
push edi
jne 0x406929
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x406964
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x46f584], eax
je 0x406964
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x46f588], eax
call esi
cmp dword [0x46f428], 2
mov dword [0x46f58c], eax
jne 0x406929
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x46f594], eax
je 0x406929
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x46f590], eax
mov eax, dword [0x46f590]
test eax, eax
je 0x40696e
call eax
test eax, eax
je 0x406955
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x46f594]
test eax, eax
je 0x406955
test byte [ebp - 8], 1
jne 0x40696e
cmp dword [0x46f434], 4
jb 0x406968
or byte [ebp + 0x12], 0x20
jmp 0x40698d
xor eax, eax
jmp 0x40699d
or byte [ebp + 0x12], 4
jmp 0x40698d
mov eax, dword [0x46f588]
test eax, eax
je 0x40698d
call eax
mov ebx, eax
test ebx, ebx
je 0x40698d
mov eax, dword [0x46f58c]
test eax, eax
je 0x40698d
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x46f584]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407fee
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 0x40801c
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 0x408023
cmp ebx, dword [eax + 4]
jae 0x408023
xor eax, eax
jmp 0x408213
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x408034
xor eax, eax
inc eax
jmp 0x408212
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40804a
cmp ecx, edx
jae 0x40818f
cmp dword [eax + 4], 0
je 0x408053
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40803b
cmp dword [ebp + 8], 0
je 0x408075
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40818f
cmp eax, esi
jae 0x40818f
mov eax, dword [0x46f5a0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40809a
cmp dword [esi*4 + 0x46f5a8], edi
je 0x408193
inc esi
cmp esi, eax
jl 0x408088
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40820f
cmp dword [ebp - 8], 0x1000000
jne 0x40820f
test byte [ebp - 0xc], 0xcc
je 0x408118
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40820f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40820f
cmp word [eax + 0x18], 0x10b
jne 0x40820f
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40820f
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x408118
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x408118
test byte [ecx + 0x27], 0x80
jne 0x40818f
push 1
push 0x46f5e8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40802c
mov ecx, dword [0x46f5a0]
test ecx, ecx
mov edx, ecx
jle 0x40814c
lea eax, [ecx*4 + 0x46f5a4]
cmp dword [eax], edi
je 0x40814c
dec edx
sub eax, 4
test edx, edx
jg 0x408140
test edx, edx
jne 0x40817d
push 0xf
pop ebx
cmp ecx, ebx
jg 0x408159
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x408171
lea eax, [edx*4 + 0x46f5a8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40815f
cmp ecx, 0x10
jge 0x40817d
inc ecx
mov dword [0x46f5a0], ecx
push 0
push 0x46f5e8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40802c
xor eax, eax
jmp 0x408212
test esi, esi
jle 0x40802c
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x46f5e8
call ebx
test eax, eax
jne 0x40802c
cmp dword [esi*4 + 0x46f5a8], edi
je 0x4081e9
mov eax, dword [0x46f5a0]
lea esi, [eax - 1]
test esi, esi
jl 0x4081d7
cmp dword [esi*4 + 0x46f5a8], edi
je 0x4081d3
dec esi
jns 0x4081c7
test esi, esi
jge 0x4081e7
cmp eax, 0x10
jge 0x4081e2
inc eax
mov dword [0x46f5a0], eax
lea esi, [eax - 1]
jmp 0x4081e9
je 0x408201
xor ecx, ecx
test esi, esi
jl 0x408201
lea eax, [ecx*4 + 0x46f5a8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4081ef
push 0
push 0x46f5e8
call ebx
jmp 0x40802c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret