joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430510
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1d000]
push edi
or ebp, 0xffffffff
jmp 0x430532
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x430539
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x430528
mov eax, 1
add ebx, ebx
jne 0x43054b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x430540
jne 0x43055c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x430540
xor ecx, ecx
sub eax, 3
jb 0x430570
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4305e2
mov ebp, eax
add ebx, ebx
jne 0x43057b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x430588
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4305ac
inc ecx
add ebx, ebx
jne 0x430598
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43058d
jne 0x4305a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43058d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4305cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4305bd
jmp 0x43052e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4305cc
add edi, ecx
jmp 0x43052e
pop esi
mov edi, esi
mov ecx, 0x87f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4305ea
cmp byte [edi], 5
jne 0x4305ea
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4305ef
lea edi, [esi + 0x2e000]
mov eax, dword [edi]
or eax, eax
je 0x43065e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3006c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x300a8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43061c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x300ac]
or eax, eax
je 0x430658
mov dword [ebx], eax
add ebx, 4
jmp 0x430639
call dword [esi + 0x300b4]
mov ebp, dword [esi + 0x300b0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x430692
sub esp, 0xffffff80
jmp 0x408ab3

Function at 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0xf18a30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb0f000]
push edi
jmp 0xf18a4a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xf18a51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xf18a40
mov eax, 1
add ebx, ebx
jne 0xf18a63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xf18a58
jne 0xf18a74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xf18a58
xor ecx, ecx
sub eax, 3
jb 0xf18a88
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xf18afa
mov ebp, eax
add ebx, ebx
jne 0xf18a93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0xf18aa0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0xf18ac4
inc ecx
add ebx, ebx
jne 0xf18ab0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xf18aa5
jne 0xf18ac1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xf18aa5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xf18ae4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xf18ad5
jmp 0xf18a46
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xf18ae4
add edi, ecx
jmp 0xf18a46
pop esi
mov edi, esi
mov ecx, 0x77b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xf18b02
cmp byte [edi], 7
jne 0xf18b02
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xf18b07
lea edi, [esi + 0xb16000]
mov eax, dword [edi]
or eax, eax
je 0xf18b76
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb1c5c4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb1c600]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xf18b34
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb1c608]
or eax, eax
je 0xf18b70
mov dword [ebx], eax
add ebx, 4
jmp 0xf18b51
call dword [esi + 0xb1c604]
mov ebp, dword [esi + 0xb1c60c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xf18baa
sub esp, 0xffffff80
jmp 0x408b56
Function at 0x4017b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4017c9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4017dd
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4017fe
cmp esi, eax
jae 0x4017d7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4017f0
cmp esi, eax
jae 0x4017d7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402ae0
Capabilities:
Check mutex on windows

Disassembly:
push esi
push edi
mov edi, eax
mov eax, dword [edi + 0x15c]
mov ecx, dword [eax - 0xc]
test ecx, ecx
lea esi, [edi + 0x108]
je 0x402b29
mov ecx, dword [esi + 0x5c]
test ecx, ecx
jne 0x402b1d
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
mov dword [esi + 0x5c], eax
je 0x402b29
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402b29
mov eax, esi
call fcn.00402070
pop edi
xor al, al
pop esi
ret
call fcn.004020d0
test al, al
jne 0x402b46
mov ecx, 0x8b
mov edi, 0x8c
call fcn.00407720
pop edi
xor al, al
pop esi
ret
mov eax, dword [edi + 0xa8]
lea ecx, [edi + 0xa8]
mov dword [edi + 0x1c], esi
call dword [eax + 0x60]
mov ecx, dword [edi + 0x1c]
push 0x40010
push str.Subscription_Center___Help
push 0x4228d8
call fcn.00415d53
pop edi
mov al, 1
pop esi
ret

Function at 0x402b80
Capabilities:
Check mutex on windows

Disassembly:
test al, al
push edi
je 0x402bb4
lea edi, [ebx + 0x168]
mov ecx, edi
call fcn.004041b0
test al, al
jne 0x402ba9
mov ecx, 0x8b
mov edi, 0x8c
call fcn.00407720
xor al, al
pop edi
ret
lea ecx, [ebx + 0x108]
call fcn.00401d20
mov eax, dword [ebx + 0x15c]
mov ecx, dword [eax - 0xc]
test ecx, ecx
push esi
lea esi, [ebx + 0x108]
je 0x402bfa
mov ecx, dword [esi + 0x5c]
test ecx, ecx
jne 0x402bee
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
mov dword [esi + 0x5c], eax
je 0x402bfa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402bfa
mov eax, esi
call fcn.00402070
pop esi
xor al, al
pop edi
ret
call fcn.004020d0
test al, al
jne 0x402c17
mov ecx, 0x8b
mov edi, 0x8c
call fcn.00407720
pop esi
xor al, al
pop edi
ret
mov eax, dword [ebx + 0xa8]
lea ecx, [ebx + 0xa8]
mov dword [ebx + 0x1c], esi
call dword [eax + 0x60]
pop esi
mov al, 1
pop edi
ret
Function at 0x4078f0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x41e268
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebp
push esi
push edi
xor esi, esi
mov edi, ecx
mov dword [esp + 0x14], esi
call fcn.00418935
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [edi]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x10]
push ecx
push esi
lea edx, [esp + 0x14]
push edx
push esi
push eax
push ebx
mov dword [esp + 0x38], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call ebp
cmp eax, esi
mov ecx, dword [esp + 0x2c]
mov dword [ecx], eax
jne 0x4079db
cmp dword [esp + 0xc], 1
jne 0x4079b7
mov eax, dword [esp + 0x10]
cmp eax, esi
jbe 0x4079b7
push eax
call fcn.0041468f
mov esi, eax
add esp, 4
test esi, esi
je 0x4079b5
mov eax, dword [edi]
lea edx, [esp + 0x10]
push edx
push esi
lea ecx, [esp + 0x14]
push ecx
push 0
push eax
push ebx
call ebp
test eax, eax
mov edx, dword [esp + 0x2c]
mov dword [edx], eax
jne 0x4079ac
cmp dword [esp + 0xc], 1
jne 0x4079ac
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x4079ac
push esi
lea ecx, [esp + 0x18]
call fcn.00401990
push esi
call fcn.0041468a
add esp, 4
xor esi, esi
mov eax, dword [esp + 0x2c]
cmp dword [eax], esi
jne 0x4079db
cmp dword [esp + 0xc], 1
jne 0x4079cc
cmp dword [esp + 0x10], esi
ja 0x4079db
lea ecx, [esp + 0x14]
mov dword [eax], 0xd
call fcn.00401ab0
mov esi, dword [esp + 0x14]
add esi, 0xfffffff0
push esi
call fcn.00402260
mov edi, dword [esp + 0x2c]
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov dword [esp + 0x20], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x407a13
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret

Function at 0x409801
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.0040ca6a
xor esi, esi
inc esi
cmp dword [0x42a898], esi
pop ecx
jne 0x409829
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 [0x42a894], esi
mov byte [0x42a890], al
jne 0x40988f
mov ecx, dword [0x42c3a8]
test ecx, ecx
je 0x409870
mov eax, dword [0x42c3a4]
sub eax, 4
cmp eax, ecx
jmp 0x409869
mov eax, dword [eax]
test eax, eax
je 0x40985b
call eax
mov eax, dword [0x42c3a4]
sub eax, 4
cmp eax, dword [0x42c3a8]
mov dword [0x42c3a4], eax
jae 0x409853
mov eax, 0x427070
mov esi, 0x427078
cmp eax, esi
mov edi, eax
jae 0x40988f
mov eax, dword [edi]
test eax, eax
je 0x409888
call eax
add edi, 4
cmp edi, esi
jb 0x409880
mov eax, 0x42707c
mov esi, 0x427084
cmp eax, esi
mov edi, eax
jae 0x4098ae
mov eax, dword [edi]
test eax, eax
je 0x4098a7
call eax
add edi, 4
cmp edi, esi
jb 0x40989f
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x4098bf
push 8
call fcn.0040c9d6
jmp 0x4098d1
push dword [ebp + 8]
mov dword [0x42a898], 1
call fcn.0040975a
pop ecx
pop ebp
ret
Function at 0x40ab50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x40ab6d
call fcn.0040ae6a
mov dword [eax], 0x16
xor eax, eax
jmp 0x40abd7
push esi
push 0x88
push 1
call fcn.0040aeef
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40abc2
push esi
call fcn.0040ba8a
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x40aba0
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x40aaac
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x40abd6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00409ab5
test ebx, ebx
pop ecx
je 0x40abd4
push ebx
call fcn.0040ae7c
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x40afaa
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4278b8]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x427a68]
je 0x40afd7
inc eax
cmp eax, 0x12
jb 0x40afc8
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x427a68]
jne 0x40b10b
mov eax, dword [0x42a850]
cmp eax, 1
je 0x40b0e6
cmp eax, edx
jne 0x40b007
cmp dword [0x42789c], 1
je 0x40b0e6
cmp ecx, 0xfc
je 0x40b10b
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40b040
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.0040ff30
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.0040a9f0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40b082
lea eax, [ebp - 0x10c]
push eax
call fcn.0040a9f0
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x4212a8
push edi
call fcn.00410030
add esp, 0x10
push edi
call fcn.0040a9f0
push dword [esi + 0x427a6c]
mov ebx, eax
call fcn.0040a9f0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040a8a0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040ff30
push edi
push ebx
call fcn.0040ff40
push 0x421288
push ebx
call fcn.0040ff40
push dword [esi + 0x427a6c]
push ebx
call fcn.0040ff40
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040fe32
add esp, 0x2c
jmp 0x40b10b
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x427a6c]
push dword [esi]
call fcn.0040a9f0
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 - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.00409ff1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d876
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040a8a0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40d90b
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x42a858]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x40d90b
cmp eax, 1
je 0x40d923
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40d90b
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x40d8e0
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x40d907
xor eax, eax
inc eax
jmp 0x40d93f
cmp esi, ebx
jae 0x40d90f
xor eax, eax
jmp 0x40d93f
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x42a858]
jmp 0x40d925
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40fe32
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x42ad10], ebx
push esi
push edi
jne 0x40feb2
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40feed
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x42ad10], eax
je 0x40feed
push 0x421be0
push edi
call esi
push 0x421bcc
push edi
mov dword [0x42ad14], eax
call esi
cmp dword [0x42a858], 2
mov dword [0x42ad18], eax
jne 0x40feb2
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x42ad20], eax
je 0x40feb2
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x42ad1c], eax
mov eax, dword [0x42ad1c]
test eax, eax
je 0x40fef7
call eax
test eax, eax
je 0x40fede
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x42ad20]
test eax, eax
je 0x40fede
test byte [ebp - 8], 1
jne 0x40fef7
cmp dword [0x42a864], 4
jb 0x40fef1
or byte [ebp + 0x12], 0x20
jmp 0x40ff16
xor eax, eax
jmp 0x40ff26
or byte [ebp + 0x12], 4
jmp 0x40ff16
mov eax, dword [0x42ad14]
test eax, eax
je 0x40ff16
call eax
mov ebx, eax
test ebx, ebx
je 0x40ff16
mov eax, dword [0x42ad18]
test eax, eax
je 0x40ff16
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x42ad10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4103ef
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4278b8]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x410418
xor eax, eax
jmp 0x410586
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x42c2a0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x41044b
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.004126ce
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41051d
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x410558
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x4104a6
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x410497
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x41047a
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4104e6
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x4104ef
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x41046b
jmp 0x4104f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x410581
cmp dword [ebp - 8], edi
je 0x410558
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x41054a
call fcn.0040ae6a
mov dword [eax], 9
call fcn.0040ae73
mov dword [eax], esi
jmp 0x410553
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41053f
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x4104f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x4104f1
push dword [ebp - 8]
call fcn.0040ae7c
pop ecx
or eax, 0xffffffff
jmp 0x410584
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x41056d
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x41056d
xor eax, eax
jmp 0x410584
call fcn.0040ae6a
mov dword [eax], 0x1c
call fcn.0040ae73
mov dword [eax], edi
jmp 0x410553
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.00409ff1
leave
ret
Function at 0x4139b1
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 0x413b77
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x42c2a0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x413b77
test cl, 0x48
je 0x413a17
mov al, byte [eax + 5]
cmp al, 0xa
je 0x413a17
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 0x413a69
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x413a51
call fcn.0040ae6a
mov dword [eax], 9
call fcn.0040ae73
mov dword [eax], esi
jmp 0x413a61
cmp eax, 0x6d
je 0x413b77
push eax
call fcn.0040ae7c
pop ecx
or eax, 0xffffffff
jmp 0x413b79
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x413b72
test edx, edx
je 0x413a8c
cmp byte [ebx], 0xa
jne 0x413a8c
or al, 4
jmp 0x413a8e
and al, 0xfb
mov byte [ecx], al
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 0x413b6c
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x413b5c
cmp al, 0xd
je 0x413ac2
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x413b4e
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x413adc
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x413ad7
add dword [ebp + 0x10], 2
jmp 0x413b30
mov dword [ebp + 0x10], eax
jmp 0x413b4a
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 0x413b04
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x413b4a
cmp dword [ebp - 0xc], 0
je 0x413b4a
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x413b25
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x413b30
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x413b4d
cmp ebx, dword [ebp + 0xc]
jne 0x413b35
cmp byte [ebp - 1], 0xa
jne 0x413b35
mov byte [ebx], 0xa
jmp 0x413b4d
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004102d0
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x413b4e
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x413aa6
jmp 0x413b6c
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x413b6c
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x413b79
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414b26
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x54], 0
mov eax, dword [edi + 0x58]
mov esi, dword [edi + 0x5c]
mov dword [ebp - 4], eax
je 0x414b5d
call fcn.0041c48f
mov ebx, dword [eax + 0xc]
push 5
push dword [edi + 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x414b6e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x414ba7
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x414b8c
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x414b94
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x414ba5
test ax, ax
jne 0x414ba5
test si, si
je 0x414ba7
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x414bb6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret