joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10014a95
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x100215e0]
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 + 0x10021e90]
je 0x10014aca
inc eax
cmp eax, 0x13
jb 0x10014abb
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x10021e90]
jne 0x10014bf0
mov eax, dword [0x10034248]
cmp eax, 1
je 0x10014bc8
cmp eax, edx
jne 0x10014afa
cmp dword [0x1003424c], 1
je 0x10014bc8
cmp ecx, 0xfc
je 0x10014bf0
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 0x10014b30
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.10015b70
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.10010f50
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10014b64
mov eax, edi
push eax
call fcn.10010f50
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x1001dd7c
push edi
call fcn.100180a0
add esp, 0x10
push edi
call fcn.10010f50
push dword [esi + 0x10021e94]
mov ebx, eax
call fcn.10010f50
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.1000e1e0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.10015b70
push edi
push ebx
call fcn.10015b80
push 0x1001dd78
push ebx
call fcn.10015b80
push dword [esi + 0x10021e94]
push ebx
call fcn.10015b80
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.10017f9c
add esp, 0x2c
jmp 0x10014bf0
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x10021e94]
push dword [esi]
call fcn.10010f50
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.1000e24e
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x100178bb
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x100215e0]
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 0x100178ec
xor eax, eax
jmp 0x10017a75
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 + 0x100349c0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x10017928
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.100198f0
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x10017a03
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x10017a41
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 0x1001798c
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x1001797d
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 0x1001795d
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 0x100179cc
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x100179d5
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x1001794e
jmp 0x100179d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x10017a70
cmp dword [ebp - 0x6c], edi
je 0x10017a41
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x10017a36
call 0x100131e7
mov dword [eax], 9
call fcn.100131f0
mov dword [eax], esi
jmp 0x10017a6b
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 0x10017a2b
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x100179d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x100179d7
push dword [ebp - 0x6c]
call fcn.100131f9
pop ecx
jmp 0x10017a6b
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x10017a59
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x10017a59
xor eax, eax
jmp 0x10017a73
call 0x100131e7
mov dword [eax], 0x1c
call fcn.100131f0
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x10017a73
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.1000e24e
add ebp, 0x3a0
leave
ret
Function at 0x10017f9c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x100346a0], ebx
push esi
push edi
jne 0x1001801c
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10018057
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x100346a0], eax
je 0x10018057
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x100346a4], eax
call esi
cmp dword [0x100343cc], 2
mov dword [0x100346a8], eax
jne 0x1001801c
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x100346b0], eax
je 0x1001801c
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x100346ac], eax
mov eax, dword [0x100346ac]
test eax, eax
je 0x10018061
call eax
test eax, eax
je 0x10018048
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x100346b0]
test eax, eax
je 0x10018048
test byte [ebp - 8], 1
jne 0x10018061
cmp dword [0x100343d8], 4
jb 0x1001805b
or byte [ebp + 0x12], 0x20
jmp 0x10018080
xor eax, eax
jmp 0x10018090
or byte [ebp + 0x12], 4
jmp 0x10018080
mov eax, dword [0x100346a4]
test eax, eax
je 0x10018080
call eax
mov ebx, eax
test ebx, ebx
je 0x10018080
mov eax, dword [0x100346a8]
test eax, eax
je 0x10018080
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x100346a0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001a478
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x1001a64c
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x100349c0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x1001a64c
test cl, 0x48
je 0x1001a4e3
cmp byte [eax + 5], 0xa
je 0x1001a4e3
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1001a535
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x1001a51d
call 0x100131e7
mov dword [eax], 9
call fcn.100131f0
mov dword [eax], esi
jmp 0x1001a52d
cmp eax, 0x6d
je 0x1001a64c
push eax
call fcn.100131f9
pop ecx
or eax, 0xffffffff
jmp 0x1001a64e
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x1001a647
test eax, eax
je 0x1001a55c
cmp byte [ebx], 0xa
jne 0x1001a55c
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x1001a565
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x1001a641
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x1001a631
cmp al, 0xd
je 0x1001a597
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x1001a623
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x1001a5b1
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x1001a5ac
add dword [ebp + 0x10], 2
jmp 0x1001a605
mov dword [ebp + 0x10], eax
jmp 0x1001a61f
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1001a5d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1001a61f
cmp dword [ebp - 0xc], 0
je 0x1001a61f
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x1001a5fa
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x1001a605
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x1001a622
cmp ebx, dword [ebp + 0xc]
jne 0x1001a60a
cmp byte [ebp - 1], 0xa
jne 0x1001a60a
mov byte [ebx], 0xa
jmp 0x1001a622
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10018214
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x1001a623
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x1001a57b
jmp 0x1001a641
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x1001a641
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x1001a64e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001ab4c
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x1001ab65
or eax, 0xffffffff
jmp 0x1001abc6
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x1001abc2
push 0x3d
push esi
call fcn.1000f988
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x1001abc2
cmp esi, eax
je 0x1001abc2
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x100343ec]
sete cl
cmp eax, dword [0x100343f0]
mov dword [ebp - 8], ecx
jne 0x1001aba8
mov edi, eax
call fcn.1001aaeb
mov dword [0x100343ec], eax
cmp eax, ebx
jne 0x1001ac01
cmp dword [ebp + 0xc], ebx
je 0x1001abca
cmp dword [0x100343f4], ebx
je 0x1001abca
call fcn.1001a3e8
test eax, eax
je 0x1001ac01
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x1001abd3
xor eax, eax
jmp 0x1001abc5
push 4
call fcn.1000df20
cmp eax, ebx
pop ecx
mov dword [0x100343ec], eax
je 0x1001abc2
mov dword [eax], ebx
cmp dword [0x100343f4], ebx
jne 0x1001ac01
push 4
call fcn.1000df20
cmp eax, ebx
pop ecx
mov dword [0x100343f4], eax
je 0x1001abc2
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x100343ec]
call fcn.1001aa9e
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x1001ac62
cmp dword [esi], ebx
je 0x1001ac62
lea esi, [esi + edi*4]
push dword [esi]
call fcn.1000df32
cmp dword [ebp - 8], ebx
pop ecx
jne 0x1001ac45
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x1001aca3
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x1001ac3c
mov eax, edi
shl eax, 2
push eax
push dword [0x100343ec]
call fcn.10011273
cmp eax, ebx
pop ecx
pop ecx
je 0x1001aca3
jmp 0x1001ac9e
cmp dword [ebp - 8], ebx
jne 0x1001ad0e
cmp edi, ebx
jge 0x1001ac71
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x100343ec]
call fcn.10011273
cmp eax, ebx
pop ecx
pop ecx
je 0x1001abc2
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x100343ec], eax
cmp dword [ebp + 0xc], ebx
je 0x1001acf8
push dword [ebp - 4]
call fcn.10010f50
inc eax
inc eax
push eax
call fcn.1000df20
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x1001acf8
push dword [ebp - 4]
push esi
call fcn.10015b70
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x1001acf1
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.1000df32
pop ecx
cmp dword [ebp - 8], ebx
je 0x1001ad06
push dword [ebp - 4]
call fcn.1000df32
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x1001abc5
push dword [ebp - 4]
call fcn.1000df32
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x1001abcf
Function at 0x401024
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
inc edi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov edx, 0xc1aa7aa3
mov ecx, esi
call fcn.004013e2
mov edx, 0xf0e90fb7
mov dword [ebx], eax
mov ecx, esi
call fcn.004013e2
mov edx, 0x914c55bc
mov dword [ebx + 0x14], eax
mov ecx, esi
call fcn.004013e2
mov edx, 0xfb514bd2
mov dword [ebx + 0x10], eax
mov ecx, esi
call fcn.004013e2
mov edx, 0x9262bab
mov dword [ebx + 8], eax
mov ecx, esi
call fcn.004013e2
mov edx, 0x170a5788
mov dword [ebx + 0xc], eax
mov ecx, esi
call fcn.004013e2
mov dword [ebx + 4], eax
xor ecx, ecx
xor eax, eax
cmp dword [ebx + ecx*4], eax
cmovne eax, edi
inc ecx
mov edi, eax
cmp ecx, 6
jb 0x4010a9
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4013e2
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + esi + 0x78]
add eax, esi
mov edx, dword [eax + 0x20]
mov ecx, dword [eax + 0x1c]
add edx, esi
mov dword [ebp - 4], edx
add ecx, esi
mov edx, dword [eax + 0x24]
add edx, esi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
test ebx, 0xffff0000
je 0x40146c
mov eax, dword [eax + 0x18]
xor edx, edx
mov dword [ebp - 0x14], eax
mov edi, edx
test eax, eax
je 0x401474
mov eax, dword [ebp - 4]
mov ebx, dword [eax + edi*4]
add ebx, esi
mov esi, edx
mov cl, byte [ebx]
imul esi, esi, 0x7f
movsx eax, cl
add esi, eax
inc ebx
test cl, cl
jne 0x401436
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 8]
cmp ebx, dword [ebp - 0x10]
je 0x40145b
inc edi
cmp edi, dword [ebp - 0x14]
jb 0x40142c
jmp 0x401474
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
movzx eax, word [eax + edi*2]
mov eax, dword [ecx + eax*4]
add eax, esi
jmp 0x401476
sub ebx, dword [eax + 0x10]
mov edx, dword [ecx + ebx*4]
add edx, esi
mov eax, edx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401260
Capabilities:
Get file size
Write file on windows

Disassembly:
push ecx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 4
push edi
push 2
push 0x40000000
push eax
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4012d0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x100000
jbe 0x4012a9
push edi
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x4012b4
push 2
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edi
lea ecx, [esp + 0xc]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x401680
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x48
mov eax, dword [0x43c070]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push esi
xor ebx, ebx
push 0x3f
lea eax, [esp + 0x11]
push ebx
push eax
mov esi, ecx
mov byte [esp + 0x18], bl
call fcn.0040ed60
add esp, 0xc
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push esi
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401748
push ebx
lea ecx, [esp + 0xc]
push ecx
push 0x40
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0xc], 0x4d
jne 0x401748
cmp byte [esp + 0xd], 0x5a
jne 0x401748
mov eax, dword [esp + 0x48]
push ebx
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea ecx, [esp + 0xc]
push ecx
push 0x18
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401748
cmp dword [esp + 8], 0x18
jne 0x401748
cmp byte [esp + 0xc], 0x50
jne 0x401748
cmp byte [esp + 0xd], 0x45
jne 0x401748
test dword [esp + 0x22], 0x2000
je 0x40173d
cmp edi, ebx
je 0x401743
mov dword [edi], 1
jmp 0x401743
cmp edi, ebx
je 0x401743
mov dword [edi], ebx
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x4c]
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0040da0d
add esp, 0x48
ret

Function at 0x401770
Capabilities:
Create directory

Disassembly:
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_StrChrW]
push esi
push 0x5c
push edi
call ebx
mov esi, eax
test esi, esi
je 0x4017ae
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ebx, [ebx]
push 0
push edi
mov word [esi], 0
call ebp
mov word [esi], 0x5c
push 0x5c
add esi, 2
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x401790
pop ebp
pop esi
mov eax, 1
pop ebx
ret
Function at 0x402fd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402fe7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403018
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x403014
cmp esi, eax
jae 0x403018
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x403004
cmp esi, eax
jb 0x40301e
pop esi
pop edi
xor eax, eax
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x4033f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
push edi
mov edi, eax
jne 0x4033fb
xor eax, eax
pop edi
ret
push esi
or esi, 0xffffffff
cmp edi, 8
jb 0x4034e7
push ebp
mov ebp, edi
shr ebp, 3
mov edi, edi
movzx edx, byte [ecx]
xor edx, esi
and edx, 0xff
add ecx, 1
mov eax, esi
shr eax, 8
xor eax, dword [edx*4 + 0x436738]
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x436738]
movzx edx, byte [ecx + 1]
xor edx, eax
and edx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [edx*4 + 0x436738]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x436738]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x436738]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x436738]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x436738]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x436738]
add ecx, 1
sub edi, 8
sub ebp, 1
mov esi, eax
jne 0x403410
pop ebp
test edi, edi
je 0x40350c
jmp 0x4034f0
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x436738]
add ecx, 1
sub edi, 1
jne 0x4034f0
mov eax, esi
pop esi
not eax
pop edi
ret
Function at 0x403980
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x432c15
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x43c070]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43c070]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov dword [esp + 0x84], edi
mov eax, dword [0x43d8f4]
mov edx, dword [eax + 0xc]
mov ecx, 0x43d8f4
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [esi + 4]
lea ecx, [esp + 0x34]
lea ebx, [esi + 4]
push ecx
push eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], eax
call dword [sym.imp.USER32.dll_BeginPaint]
mov dword [esp + 0x2c], eax
lea edi, [esp + 0x18]
mov byte [esp + 0x84], 2
call fcn.0040a0a0
mov eax, dword [ebx]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x2c]
push 1
push ecx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ebx, 2
call fcn.00403710
mov edx, dword [esp + 0x2c]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push edx
call ebx
mov ebp, eax
mov eax, dword [esi + 0x28]
push eax
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.GDI32.dll_SetBkColor]
mov edi, eax
cmp edi, 0xffffffff
je 0x403a85
mov edx, dword [esp + 0x2c]
push 0
push 0
push 0
lea ecx, [esp + 0x28]
push ecx
push 2
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov eax, dword [esp + 0x2c]
push edi
push eax
call dword [sym.imp.GDI32.dll_SetBkColor]
cmp dword [esi + 0x24], 0
mov edi, dword [sym.imp.GDI32.dll_SetTextColor]
je 0x403a9d
mov ecx, dword [esp + 0x2c]
push 0xff
push ecx
jmp 0x403aa7
mov edx, dword [esp + 0x2c]
push 0xa56430
push edx
call edi
mov esi, dword [esp + 0x18]
mov eax, dword [esi - 0xc]
mov edx, dword [esp + 0x2c]
push 0x20
lea ecx, [esp + 0x20]
push ecx
push eax
push esi
push edx
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [esp + 0x2c]
push 0
push eax
call edi
mov ecx, dword [esp + 0x2c]
push ebp
push ecx
call ebx
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x34]
push edx
push eax
call dword [sym.imp.USER32.dll_EndPaint]
lea eax, [esi - 0x10]
mov dword [esp + 0x2c], 0
mov byte [esp + 0x84], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403b11
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0040da0d
add esp, 0x74
ret 4