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

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xfffffffffffffffe
push 0x100cebe0
push 0x10061df2
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x100d7008]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov dword [ebp - 0x20], esi
mov ecx, 0x100df1ae
call fcn.10063385
mov dword [ebp - 4], 0
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x1004917b
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov edx, esi
call fcn.10049250
mov bl, al
mov byte [ebp - 0x19], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x100491ad
test bl, bl
jne 0x1004921d
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x100491c2
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
push 0x410
push ecx
lea eax, [ebp]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x207
lea eax, [ebp]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100491f3
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.1000ee50
movzx ebx, bl
mov eax, 1
cmp dword [esi + 0x10], 0
cmovne ebx, eax
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.1006130e
lea esp, [ebp + 0x414]
pop ebp
ret
Function at 0x10056110
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, 0x100df1ae
push edi
call fcn.10063385
mov ecx, dword [esi]
test ecx, ecx
je 0x10056156
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10056156
mov ecx, dword [ecx]
cmp ecx, 0xffffffff
je 0x10056156
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push 0
push esi
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10056156
cmp edi, dword [esi]
jne 0x10056156
pop edi
mov al, 1
pop esi
ret 0xc
pop edi
xor al, al
pop esi
ret 0xc

Function at 0x100561d0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x100d7008]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, ecx
mov ecx, 0x100df1ae
push edi
mov edi, dword [esp + 0x14]
call fcn.10063385
mov eax, dword [esi]
test eax, eax
je 0x1005623f
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x1005623f
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1005621a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1005623f
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.1006130e
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.1006130e
add esp, 8
ret 4

Function at 0x10056330
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, ecx
mov ecx, 0x100df1ae
push edi
call fcn.10063385
cmp dword [esi], 0
je 0x100563ea
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push 1
push 0
push 0
mov ecx, esi
movlpd qword [esp + 0x28], xmm0
call fcn.10056260
test al, al
je 0x100563ea
mov edi, dword [ebp + 0xc]
lea eax, [esp + 0x10]
push eax
push 0
push edi
push dword [ebp + 8]
xorps xmm0, xmm0
mov ecx, esi
movlpd qword [esp + 0x20], xmm0
call fcn.10056260
test al, al
je 0x100563ea
mov eax, dword [ebp + 8]
xor bl, bl
cmp dword [esp + 0x10], eax
jne 0x100563c0
cmp dword [esp + 0x14], edi
jne 0x100563c0
mov eax, dword [esi]
test eax, eax
jne 0x100563ad
xor bl, bl
jmp 0x100563c0
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x100563a9
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne bl
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
push 0
push dword [esp + 0x24]
mov ecx, esi
movlpd qword [esp + 0x1c], xmm0
push dword [esp + 0x24]
call fcn.10056260
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10056430
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10082a7f
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x100d7008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov ecx, 0x100df1ae
call fcn.10063385
cmp esi, 0xffffffff
jne 0x10056472
xor al, al
jmp 0x100564e9
and esi, 0xffffb1af
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x10056482
mov eax, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
push eax
call ebx
test eax, eax
je 0x10056494
mov al, 1
jmp 0x100564e9
lea ecx, [ebp - 0x28]
call fcn.10016510
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.10056ab0
test al, al
je 0x100564c8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push esi
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
test eax, eax
je 0x100564c8
mov bl, 1
jmp 0x100564ca
xor bl, bl
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.1000ed80
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006130e
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10082ae6
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100d7008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, 0x100df1ae
call fcn.10063385
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x10056550
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100565d4
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 3
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 4
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.10056ab0
test al, al
je 0x100565b7
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.1000ed80
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006130e
mov esp, ebp
pop ebp
ret
Function at 0x10056720
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10082bec
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x100d7008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, 0x100df1ae
call fcn.10063385
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10056761
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x10056775
mov al, 1
jmp 0x100568af
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1005677f
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x28]
call fcn.1000eb00
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10056510
mov ebx, eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.1000ed80
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
cmp ebx, 0xffffffff
jne 0x100567c8
xor al, al
jmp 0x100568af
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x100567d2
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x28]
call fcn.1000eb00
mov dword [ebp - 4], 5
xor edx, edx
lea ecx, [ebp - 0x28]
call fcn.10056430
mov bl, al
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x28]
call fcn.1000ed80
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
test bl, bl
je 0x100567c1
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1005681c
mov eax, dword [esi]
push eax
call edi
test eax, eax
jne 0x1005676e
lea ecx, [ebp - 0x28]
call fcn.10016510
mov dword [ebp - 4], 0xa
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.10056ab0
test al, al
je 0x1005685a
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call edi
test eax, eax
je 0x1005685a
mov bl, 1
jmp 0x10056890
cmp dword [esi + 0x14], 8
jb 0x10056862
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x48]
call fcn.1000eb00
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x48]
mov edx, dword [ebp - 0x30]
call fcn.10056430
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x48]
call fcn.1000ed80
mov byte [ebp - 4], 0xa
mov byte [ebp - 4], 0xa
xor bl, bl
mov dword [ebp - 4], 0x14
lea ecx, [ebp - 0x28]
call fcn.1000ed80
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006130e
mov esp, ebp
pop ebp
ret
Function at 0x1005b480
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x100d7008]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
mov ebp, ecx
mov dword [esp + 0xc], eax
push edi
mov edi, dword [esp + 0x20]
mov ecx, 0x100df1ae
call fcn.10063385
mov esi, dword [esp + 0x24]
xor ebx, ebx
cmp dword [ebp + 0x10], 0xffffffff
je 0x1005b502
mov ecx, 0x100000
nop dword [eax + eax]
cmp esi, 0x100000
mov dword [esp + 0x14], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
add ebx, ecx
test eax, eax
je 0x1005b502
test ecx, ecx
je 0x1005b4fe
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x1005b4c0
xor eax, eax
jmp 0x1005b507
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x1005b511
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1006130e
add esp, 0xc
ret 0xc

Function at 0x1005ebd0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x100d7008]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, ecx
mov ecx, 0x100df1ae
push edi
mov edi, dword [esp + 0x14]
call fcn.10063385
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x1005ec41
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1005ec1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1005ec41
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.1006130e
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.1006130e
add esp, 8
ret 4
Function at 0x10060bf0
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10084f98
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100d7008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x24], ecx
mov ecx, 0x100df1ae
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x2c], ebx
call fcn.10063385
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10060c46
mov dword [eax], 0
mov dword [ebx], 0
cmp dword [edi], 0xffffffff
je 0x10060d9b
mov eax, dword [ebp + 0xc]
mov ecx, 0x100000
nop dword [eax]
push 0
mov ebx, eax
mov dword [ebp - 0x1c], 0
cmp eax, 0x100000
lea eax, [ebp - 0x1c]
push eax
cmova ebx, ecx
push ebx
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
cmp dword [edi + 0x1c], 0
je 0x10060d66
test eax, eax
je 0x10060d66
mov edx, dword [ebp - 0x1c]
cmp edx, ebx
jae 0x10060d69
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov dword [ebp - 0x28], eax
cmp ecx, 0xffffffff
je 0x10060ceb
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10060cdf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10060ceb
mov eax, dword [ebp - 0x14]
xor ecx, ecx
add ecx, esi
adc eax, 0
jmp 0x10060cf9
xorps xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
push 0
push dword [ebp - 0x28]
push eax
push ecx
sub esp, 0x18
lea eax, [edi + 4]
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
call fcn.10010bf0
mov dword [ebp - 4], 0
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x18]
mov esi, dword [ebp - 0x20]
test eax, eax
jne 0x10060d66
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push ebx
add eax, esi
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, eax
xor edx, edx
test ecx, ecx
mov eax, 0x80004005
cmovne eax, edx
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
test ecx, ecx
je 0x10060ca4
jmp 0x10060d69
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x2c]
add dword [ecx], edx
test eax, eax
jne 0x10060d92
test edx, edx
je 0x10060d8e
mov eax, dword [ebp + 0xc]
add esi, edx
sub eax, edx
mov dword [ebp - 0x20], esi
mov dword [ebp + 0xc], eax
mov ecx, 0x100000
jne 0x10060c60
mov al, 1
jmp 0x10060d9d
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x10060d9b
mov dword [ecx], eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006130e
mov esp, ebp
pop ebp
ret 0x10
Function at 0x416a96
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x42d0b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, 0x104
mov byte [ebp - 0x1c], 1
xor esi, esi
mov dword [ebp - 0x18], ebx
push ebx
lea eax, [ebp - 0x228]
mov dword [ebp - 0x20], esi
push esi
push eax
mov di, cx
call sub.msvcrt.dll_memset
xor eax, eax
lea ecx, [ebp - 0x228]
add esp, 0xc
cmp byte [ebp - 0x1c], al
sete al
dec eax
and eax, 0x7ee3
add eax, ebx
push eax
call fcn.00410c70
test eax, eax
js 0x416b4c
push 0x3a
pop eax
mov word [ebp - 0xe], ax
push 0x5c
pop eax
mov word [ebp - 0xc], ax
xor eax, eax
mov word [ebp - 0xa], ax
lea eax, [ebp - 0x10]
push eax
mov word [ebp - 0x10], di
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x416b71
cmp eax, 2
je 0x416b4c
cmp eax, 5
je 0x416b4c
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x416b69
push esi
push esi
push esi
push esi
lea ecx, [ebp - 0x230]
push ecx
push dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetVolumeInformationW]
test eax, eax
je 0x421564
push dword [ebp - 0x20]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416fd0
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x228]
jmp 0x416b2b
xor esi, esi
inc esi
jmp 0x416b4c
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 5
jne 0x416b4c
jmp 0x416b71

Function at 0x416fc0
Capabilities:
Access peb ldr_data

Disassembly:
push esi
push ebx
push edx
sub esi, esi
add esi, 0x30
mov ebx, dword fs:[esi]
push ecx
mov ecx, dword [ebx + 8]
dec ebx

Function at 0x417324
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x42beb8
call fcn.00417678
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x417384
cmp eax, 0xffffffff
je 0x417384
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x41737d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x41737d
cmp edx, 0x10000000
jae 0x41737d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x41737a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.004176bd
ret 4

Function at 0x4173d0
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 0x41740e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x417406
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x417410
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4173f6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4174e0
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 0x4174f6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x417511
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x401270
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x8902e8]
shr eax, 3
push esi
mov esi, dword [0x88f238]
test eax, eax
jbe 0x4012e1
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov dword [ebp - 4], eax
jmp 0x4012a0
cmp dword [0x8902e8], 0x959
jne 0x4012d0
push 0
push 0
call edi
push 0
push 0
push 0
push 0
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call fcn.00401070
add esi, 8
sub dword [ebp - 4], 1
jne 0x4012a0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401670
Capabilities:
Get system information on windows
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
cmp dword [0x8902e8], 0x400
push esi
push edi
jne 0x4016cb
xor ecx, ecx
xor eax, eax
lea edx, [ebp - 4]
push edx
mov word [ebp - 4], ax
mov word [ebp - 2], cx
mov eax, dword [ebp - 4]
push eax
push ecx
push str.voyapamujopemopubefetexo
push ecx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterW]
push 0
push 0
lea ecx, [ebp - 0x82c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
lea eax, [ebp - 0x24]
call fcn.00401790
lea esi, [ebp - 0x24]
call fcn.004017b0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov ebx, dword [ebp - 4]
xor esi, esi
call edi
cmp esi, 0x2af2a3
jle 0x4016e9
cmp ebx, 0x78abdb45
jne 0x4016f2
inc esi
cmp esi, 0x1c5d
jl 0x4016d7
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
push 0
call edi
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, 0x206d47
jg 0x40171d
inc esi
cmp esi, 0x4f6a4
jl 0x401700
mov ebx, dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
xor esi, esi
push 0
call edi
cmp esi, 0x2b259d
jle 0x40173c
cmp ebx, 0x785074d5
jne 0x401745
inc esi
cmp esi, 0x11915
jl 0x401728
mov edx, dword [0x4712ac]
mov dword [0x8902e8], edx
call fcn.004013e0
mov esi, dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov edi, 0x3078f
pop ebx
cmp dword [0x8902e8], 0x51f
jne 0x401774
lea eax, [ebp - 0x2c]
push eax
call esi
sub edi, 1
jne 0x401762
mov eax, dword [0x88f238]
mov dword [0x88f87c], eax
call eax
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x403370
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4701f8]
jne 0x40337a
repz ret
jmp fcn.004076ae
Function at 0x4072db
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004040da
and dword [ebp - 4], 0
cmp dword [0x471cac], 0
mov ebx, eax
jne 0x40738c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40743d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40743d
push eax
call fcn.00404068
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x471cac], eax
call esi
push eax
call fcn.00404068
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x471cb0], eax
call esi
push eax
call fcn.00404068
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x471cb4], eax
call esi
push eax
call fcn.00404068
pop ecx
mov dword [0x471cbc], eax
test eax, eax
je 0x40738c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404068
pop ecx
mov dword [0x471cb8], eax
mov eax, dword [0x471cb8]
cmp eax, ebx
je 0x4073e4
cmp dword [0x471cbc], ebx
je 0x4073e4
push eax
call fcn.004040e3
push dword [0x471cbc]
mov esi, eax
call fcn.004040e3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4073e4
test edi, edi
je 0x4073e4
call esi
test eax, eax
je 0x4073db
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4073db
test byte [ebp - 0xc], 1
jne 0x4073e4
or dword [ebp + 0x10], 0x200000
jmp 0x40741d
mov eax, dword [0x471cb0]
cmp eax, ebx
je 0x40741d
push eax
call fcn.004040e3
pop ecx
test eax, eax
je 0x40741d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40741d
mov eax, dword [0x471cb4]
cmp eax, ebx
je 0x40741d
push eax
call fcn.004040e3
pop ecx
test eax, eax
je 0x40741d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x471cac]
call fcn.004040e3
pop ecx
test eax, eax
je 0x40743d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40743f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x59a370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x59a38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x5c3074
push ecx
mov edi, eax
call fcn.005ae198
mov esi, eax
add esp, 8
test esi, esi
jne 0x59a3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.005ae02e
push esi
call fcn.005adfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret