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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10092c18
push ebx
push esi
call fcn.10092b44
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10091a0c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10092bc5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10092c17
push edi
push eax
call fcn.1008ecb2
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10092be5
call fcn.1008dc9b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10092c16
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10091a0c
add esp, 0x20
test eax, eax
jne 0x10092c04
push edi
call fcn.1008dc9b
jmp 0x10092c0c
push ebx
call fcn.1008dc9b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10094d52
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1008b22c
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 0x10094dc1
cmp esi, dword [ebp - 4]
je 0x10094dbc
cmp dword [ebp + 0xc], 0
je 0x10094dbc
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10094d99
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.100948a4
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10094dc3
xor eax, eax
inc eax
jmp 0x10094dc3
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10094e28
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100b7040]
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.1008b22c
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.1008b22c
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 0x10094e9f
cmp word [ecx], dx
je 0x10094e9f
mov eax, dword [0x100a59bc]
push edi
dec eax
push eax
push 0x100a58a8
call fcn.10094dc7
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10094f12
cmp word [eax], dx
je 0x10094f12
mov eax, dword [edi]
test eax, eax
je 0x10094ec3
cmp word [eax], dx
je 0x10094ec3
lea eax, [ebp - 0x10]
push eax
call fcn.100947aa
jmp 0x10094ecc
lea eax, [ebp - 0x10]
push eax
call fcn.10094845
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10094f3c
mov eax, dword [0x100a58a4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100a5598
call fcn.10094dc7
add esp, 0xc
test al, al
je 0x10094f3c
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10094f07
cmp word [eax], di
je 0x10094f07
lea eax, [ebp - 0x10]
push eax
call fcn.100947aa
pop ecx
jmp 0x10094f3e
lea eax, [ebp - 0x10]
push eax
call fcn.10094845
jmp 0x10094f04
mov eax, dword [edi]
test eax, eax
je 0x10094f29
cmp word [eax], dx
je 0x10094f29
lea eax, [ebp - 0x10]
push eax
call fcn.1009475f
pop ecx
jmp 0x10094f3c
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 0x10095007
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10094c4c
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10095007
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10095007
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10095007
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10094f94
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1008e800
test ebx, ebx
je 0x10095002
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1008e800
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10095007
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 0x10095007
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100996f1
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10095009
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007f9e5
leave
ret
Function at 0x10099911
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1009988d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10099a80
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10099a80
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10099a35
jg 0x1009996d
test eax, eax
je 0x10099a2b
push 1
push 0x1000
call fcn.1008e1c9
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10099990
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10099a22
push 0x8000
push ebx
call fcn.100997be
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100999b9
jg 0x100999b4
cmp ecx, 0x1000
jb 0x100999b9
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10096c30
add esp, 0x10
cmp eax, 0xffffffff
je 0x100999fe
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x100999b4
jl 0x100999e5
test ecx, ecx
jne 0x100999a6
push dword [ebp - 0xc]
push ebx
call fcn.100997be
push esi
call fcn.1008dc9b
add esp, 0xc
xor ebx, ebx
jmp 0x10099a8e
cmp byte [edi + 0x24], 0
je 0x10099a15
cmp dword [edi + 0x20], 5
jne 0x10099a15
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10099a20
mov ebx, dword [edi + 0x18]
jmp 0x10099a22
xor ebx, ebx
push esi
call fcn.1008dc9b
pop ecx
jmp 0x10099a8e
test ecx, ecx
jg 0x100999f7
jl 0x10099a35
test eax, eax
jae 0x100999f7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1009616d
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10099a55
cmp byte [edi + 0x1c], 0
je 0x100999f7
jmp 0x10099a86
push ebx
call fcn.10096080
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100999f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10099a8e
cmp byte [edi + 0x1c], 0
je 0x10099a8b
mov ebx, dword [edi + 0x18]
jmp 0x10099a8e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1009616d
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1009b6e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1009b70d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1009b70d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10001000
Capabilities:
Accept command line arguments

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
inc esi
cmp al, 0x22
jne 0x1000103f
push 0x22
push esi
call fcn.100010a0
mov edx, eax
add esp, 8
test edx, edx
je 0x10001056
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 3
ja 0x1000103a
mov esi, 0x10006490
jmp 0x10001056
lea esi, [edx + 2]
jmp 0x10001056
push 0x20
push esi
call fcn.100010a0
add esp, 8
mov esi, 0x10006494
test eax, eax
je 0x10001056
lea esi, [eax + 1]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push 0
push 0x3e8
push ecx
push esi
push edx
push eax
call sub.PBVM60.dll_Ordinal_137
pop edi
pop esi
ret 0x10

Function at 0x10001160
Capabilities:
Accept command line arguments

Disassembly:
call fcn.10002ff9
push section..rdata
push 0x10002178
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x100064bc], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x100064b8], ecx
shl ecx, 8
add ecx, edx
mov dword [0x100064b4], ecx
shr eax, 0x10
mov dword [0x100064b0], eax
call fcn.10002040
test eax, eax
jne 0x100011ca
push 0x1c
call fcn.10001300
add esp, 4
mov dword [ebp - 4], 0
call fcn.10001e40
call fcn.10001e30
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x10006890], eax
call fcn.10001a00
mov dword [0x10006498], eax
test eax, eax
je 0x100011fd
mov eax, dword [0x10006890]
test eax, eax
jne 0x10001207
push 0xffffffffffffffff
call fcn.10001360
add esp, 4
call fcn.10001750
call fcn.10001660
call fcn.10001330
mov esi, dword [0x10006890]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x100012e6
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x1000124e
test al, al
je 0x1000124e
and eax, 0xff
push eax
call fcn.10001600
add esp, 4
test eax, eax
je 0x10001228
inc esi
mov dword [ebp - 0x64], esi
jmp 0x10001228
cmp byte [esi], 0x22
jne 0x10001257
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x10001267
cmp al, 0x20
ja 0x10001267
inc esi
mov dword [ebp - 0x64], esi
jmp 0x10001257
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x10001288
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x1000128d
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.10001360
jmp 0x100012cb
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x10001257
inc esi
mov dword [ebp - 0x64], esi
jmp 0x100012e6
Function at 0x100013a0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x100064ec]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x100013bf
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x100064e8], 1
mov byte [0x100064e4], bl
jne 0x10001419
mov ecx, dword [0x10006888]
test ecx, ecx
je 0x10001407
mov esi, dword [0x10006884]
sub esi, 4
cmp esi, ecx
jb 0x10001407
mov eax, dword [esi]
test eax, eax
je 0x10001400
call eax
mov ecx, dword [0x10006888]
sub esi, 4
cmp esi, ecx
jae 0x100013f2
push 0x10004014
push 0x10004010
call fcn.10001450
add esp, 8
push 0x1000401c
push 0x10004018
call fcn.10001450
add esp, 8
test ebx, ebx
jne 0x10001440
push ebp
mov dword [0x100064ec], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x10001a00
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x10006600]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x10001a42
call edi
mov esi, eax
test esi, esi
je 0x10001a2c
mov eax, 1
jmp 0x10001a3d
call ebp
mov ebx, eax
test ebx, ebx
je 0x10001b4f
mov eax, 2
mov dword [0x10006600], eax
cmp eax, 1
jne 0x10001ae2
test esi, esi
jne 0x10001a5b
call edi
mov esi, eax
test esi, esi
je 0x10001b4f
cmp word [esi], 0
mov eax, esi
je 0x10001a75
add eax, 2
cmp word [eax], 0
jne 0x10001a63
add eax, 2
cmp word [eax], 0
jne 0x10001a63
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x10001ad4
push edi
call fcn.100024c0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10001ad4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x10001ac6
push ebx
call fcn.10002470
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x10001b4f
test ebx, ebx
jne 0x10001af3
call ebp
mov ebx, eax
test ebx, ebx
je 0x10001b4f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x10001b0b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10001afb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10001afb
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.100024c0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x10001b2d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x10002290
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x100041c8
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x100022b4
add eax, 8
inc ebp
cmp eax, 0x10004258
jb 0x100022a5
cmp ecx, dword [ebp*8 + 0x100041c8]
jne 0x1000245b
mov eax, dword [0x100064a0]
cmp eax, 1
je 0x1000241d
test eax, eax
jne 0x100022e0
cmp dword [0x10004024], 1
je 0x1000241d
cmp ecx, 0xfc
je 0x1000245b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1000231b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x10002364
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x100032e0
add ebx, ecx
push ebx
call fcn.10002d20
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x100032c0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x100041cc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.10002c90
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x10006780]
test eax, eax
je 0x1000242e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x10002438
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x100041cc]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x1000452e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
pushal
mov edx, dword [ebp + 8]
add edx, dword [edx + 0x3c]
mov edx, dword [edx + 0x78]
add edx, dword [ebp + 8]
mov ecx, dword [edx + 0x18]
mov esi, dword [edx + 0x20]
add esi, dword [ebp + 8]
push ecx
lodsd eax, dword [esi]
add eax, dword [ebp + 8]
xor edi, edi
mov ecx, dword [eax]
inc eax
adc edi, ecx
rol ecx, 8
or cl, cl
jne 0x1000454e
cmp edi, dword [ebp + 0xc]
pop ecx
loopne 0x10004547
jne 0x1000458b
sub esi, 4
sub esi, dword [ebp + 8]
sub esi, dword [edx + 0x20]
shr esi, 1
add esi, dword [edx + 0x24]
add esi, dword [ebp + 8]
lodsd eax, dword [esi]
movzx eax, ax
shl eax, 2
add eax, dword [edx + 0x1c]
add eax, dword [ebp + 8]
mov edx, dword [eax]
add edx, dword [ebp + 8]
mov dword [esp + 0x1c], edx
jmp 0x10004593
mov dword [esp + 0x1c], 0
popal
leave
ret 8

Function at 0x10004598
Capabilities:
Parse pe header

Disassembly:
and dx, 0xf000
sub edx, 0x1000
cmp word [edx], 0x5a4d
jne fcn.10004598
mov eax, edx
add edx, dword [edx + 0x3c]
cmp byte [edx], 0x50
jne fcn.10004598
cmp byte [edx + 1], 0x45
jne fcn.10004598
ret
Function at 0x10005540
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
pushfd
push esi
push edi
cld
mov eax, dword [ebp + 8]
cmp word [eax], 0x5a4d
jne 0x1000556e
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
jne 0x1000556e
movzx edx, word [eax + 0x14]
add edx, 0x18
add edx, eax
sub edx, dword [ebp + 8]
sub dword [ebp + 0xc], edx
add dword [ebp + 8], edx
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
shr ecx, 2
xor eax, eax
repne scasd eax, dword es:[edi]
lea esi, [edi - 4]
mov edx, esi
repe scasd eax, dword es:[edi]
sub edx, edi
neg edx
sub edx, 4
jecxz 0x10005590
cmp edx, dword [ebp + 0x10]
jb 0x10005579
cmp edx, dword [ebp + 0x10]
jb 0x1000559e
lea eax, [esi + 4]
sub edx, 4
sub edx, 8
pop edi
pop esi
popfd
leave
ret 0xc

Function at 0x100055a5
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
xor eax, eax
pushal
mov eax, dword [ebp + 0x10]
shr eax, 1
mov dword [ebp - 4], eax
and byte [ebp + 0x10], 1
mov eax, dword [ebp + 8]
add eax, dword [eax + 0x3c]
movzx edx, word [eax + 0x14]
add edx, 0x18
add edx, eax
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
jne 0x100055dc
cmp ecx, dword [ebp + 8]
jbe 0x100055dc
sub ecx, dword [ebp + 8]
jmp 0x100055ea
cmp dword [ebp + 0x10], 1
jne 0x100055ea
cmp ecx, dword [eax + 0x34]
jbe 0x100055ea
sub ecx, dword [eax + 0x34]
mov dword [ebp + 0xc], ecx
cmp ecx, dword [eax + 0x54]
jae 0x10005606
cmp dword [ebp + 0x10], 0
jne 0x100055fd
add ecx, dword [eax + 0x34]
jmp 0x10005600
add ecx, dword [ebp + 8]
mov dword [esp + 0x1c], ecx
jmp 0x1000566a
movzx ecx, word [eax + 6]
cmp dword [ebp + 0x10], 0
jne 0x1000561a
mov esi, dword [edx + 0x14]
mov edi, dword [edx + 0x10]
add edi, esi
jmp 0x10005622
mov esi, dword [edx + 0xc]
mov edi, dword [edx + 8]
add edi, esi
cmp dword [ebp + 0xc], esi
jb 0x10005661
cmp dword [ebp + 0xc], edi
jae 0x10005661
cmp dword [ebp - 4], 0
jne 0x10005642
test byte [edx + 0x24], 0x80
je 0x10005642
mov dword [esp + 0x1c], 0xffffffff
jmp 0x1000566a
sub esi, dword [ebp + 0xc]
neg esi
cmp dword [ebp + 0x10], 0
jne 0x10005655
add esi, dword [edx + 0xc]
add esi, dword [eax + 0x34]
jmp 0x1000565b
add esi, dword [edx + 0x14]
add esi, dword [ebp + 8]
mov dword [esp + 0x1c], esi
jmp 0x1000566a
add edx, 0x28
or ecx, ecx
je 0x1000566a
loop 0x1000560a
popal
leave
ret 0xc
Function at 0x407180
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4071be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4071b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4071c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4071a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4072a0
Capabilities:
Parse pe header

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

Function at 0x4032a0
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x405076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x405258], eax
mov dword [0x4051e0], 0x402b80
mov dword [0x4051dc], 2
jmp 0x4032d0
mov dword [0x4051e4], 0
mov dword [0x4051e8], 0
mov dword [0x4051d8], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4051ec], eax
mov dword [0x405200], 0x404080
mov dword [0x4051f8], 0xf
mov dword [0x40506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4051f0], eax
mov dword [0x405204], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4051f4], eax
push 0x4051d8
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x40506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x405250], eax
push 5
push dword [0x405250]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x405250]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x4033a3
push 0
push 0
push 0
push 0x405208
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x4033d0
push 0x405208
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x405208
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x4033a3
mov eax, dword [0x405210]
jmp 0x4033dd
call 0x402474
ret