joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41fe06
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041fc77

Function at 0x420200
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004138c0
mov eax, dword [0x435078]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041ecda
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x420242
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x42039e
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042a7b0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x436a78]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004211dd
mov ecx, dword [esi*4 + 0x436a78]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x420397
cmp eax, dword [edi + ecx + 0x24]
jne 0x420397
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x420397
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004211dd
add esp, 0x14
test edx, edx
jl 0x420397
jg 0x42030d
test eax, eax
jb 0x420397
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x420397
jl 0x420327
cmp dword [ebp - 0x1008], eax
ja 0x420397
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x420345
test ebx, ebx
je 0x42037e
cmp ecx, edi
jae 0x42037e
mov al, byte [ecx]
cmp al, 0xd
jne 0x42035f
lea eax, [edi - 1]
cmp ecx, eax
jae 0x42036b
cmp byte [ecx + 1], 0xa
jne 0x42036b
inc ecx
jmp 0x42036b
movzx eax, al
movsx eax, byte [eax + 0x4352f8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x420345
cmp edx, ebx
jne 0x420345
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x42039c
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00413daa
leave
ret
Function at 0x420695
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x436a78]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4206d5
cmp byte [ebx], 0xa
jne 0x4206d5
or byte [eax + edi + 0x28], 4
jmp 0x4206da
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4207d8
mov al, byte [edx]
cmp al, 0x1a
je 0x4207ba
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x420709
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x42072e
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x420738
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4206eb
jmp 0x4207d8
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4207b5
cmp dword [ebp - 0xc], 0
je 0x4207b5
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x436a78]
test byte [eax + edi + 0x28], 0x48
je 0x42078f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42077a
mov byte [esi], dl
jmp 0x42078b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x436a78]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4207d8
cmp byte [ebp - 1], 0xa
jne 0x42079e
cmp esi, ebx
jne 0x42079e
mov byte [esi], 0xa
jmp 0x4207d7
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004211fb
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4207d8
mov byte [esi], 0xd
jmp 0x4207d7
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x436a78]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4207d4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4207d8
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4207e1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x436a78]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x420824
cmp word [esi], dx
jne 0x420824
or byte [edi + eax + 0x28], 4
jmp 0x420829
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x420962
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x420942
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x42086b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4208a1
cmp eax, edx
jae 0x4208ad
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x420843
jmp 0x420962
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42093e
cmp dword [ebp - 0x14], 0
je 0x42093e
mov eax, dword [ebx*4 + 0x436a78]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x420916
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x42095c
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x436a78]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x436a78]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x436a78]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x42095f
pop ebx
cmp word [ebp - 4], bx
jne 0x420927
cmp esi, dword [ebp + 0xc]
jne 0x420927
mov word [esi], bx
jmp 0x42095f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004211fb
add esp, 0x10
cmp word [ebp - 4], bx
je 0x420962
push 0xd
jmp 0x42095b
mov ecx, dword [ebx*4 + 0x436a78]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x420959
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x420962
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x423c13
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x435078]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x423c5e
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00423db2
test al, al
jne 0x423c58
sub edx, 2
cmp edx, edi
jne 0x423c3e
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x423c80
lea eax, [edi + 2]
cmp edx, eax
je 0x423c80
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00423b5f
add esp, 0x10
jmp 0x423d7a
push esi
lea ecx, [ebp - 0x255]
call fcn.00423db2
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x423cc3
push dword [ebp - 0x25c]
jmp 0x423c70
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x423d00
cmp word [ebp - 0x226], 0
je 0x423d21
cmp word [ebp - 0x226], ax
jne 0x423d00
cmp word [ebp - 0x224], 0
je 0x423d21
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00423b5f
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x423d6d
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x423cda
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x423d55
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x423d7a
push 0x42398f
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00428840
add esp, 0x10
jmp 0x423d4a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413daa
leave
ret
Function at 0x429305
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]
push dword [ebp + 0xc]
push ebx
call fcn.00429281
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x42947d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x42947d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x42942c
jg 0x42935e
test eax, eax
je 0x429422
push 1
push 0x1000
call fcn.0041e273
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x429384
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x429419
push 0x8000
push ebx
call fcn.0041b724
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4293b0
jg 0x4293ab
cmp ecx, 0x1000
jb 0x4293b0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041fa77
add esp, 0x10
cmp eax, 0xffffffff
je 0x4293f5
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 0x4293ab
jl 0x4293dc
test ecx, ecx
jne 0x42939d
push dword [ebp - 0xc]
push ebx
call fcn.0041b724
push esi
call fcn.0041e1eb
add esp, 0xc
xor edi, edi
jmp 0x42948e
cmp byte [edi + 0x24], 0
je 0x42940c
cmp dword [edi + 0x20], 5
jne 0x42940c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x429417
mov edi, dword [edi + 0x18]
jmp 0x429419
xor edi, edi
push esi
call fcn.0041e1eb
pop ecx
jmp 0x42948e
test ecx, ecx
jg 0x4293ee
jl 0x42942c
test eax, eax
jae 0x4293ee
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004211fb
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x42944f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4293ee
jmp 0x429486
push ebx
call fcn.00424ae7
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4293ee
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x42948e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42948b
mov edi, dword [edi + 0x18]
jmp 0x42948e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004211fb
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42a770
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42a79d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42a79d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0xebf000
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section._13697024
lea edi, [esi - 0x90f000]
push edi
or ebp, 0xffffffff
jmp 0xebf022
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xebf029
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xebf018
mov eax, 1
add ebx, ebx
jne 0xebf03b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xebf04c
jne 0xebf06b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xebf06b
dec eax
add ebx, ebx
jne 0xebf058
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xebf030
add ebx, ebx
jne 0xebf067
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xebf0bd
xor ecx, ecx
sub eax, 3
jb 0xebf083
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xebf0f2
sar eax, 1
mov ebp, eax
jmp 0xebf08e
add ebx, ebx
jne 0xebf08e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xebf05c
inc ecx
add ebx, ebx
jne 0xebf09c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xebf05c
add ebx, ebx
jne 0xebf0a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xebf09e
jne 0xebf0ba
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xebf09e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xebf0dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xebf0ce
jmp 0xebf01e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xebf0dc
add edi, ecx
jmp 0xebf01e
pop esi
mov edi, esi
mov ecx, 0x27ce0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xebf0fa
cmp byte [edi], 0x90
jne 0xebf0fa
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 0xebf0ff
lea edi, [esi + 0xa9d000]
mov eax, dword [edi]
or eax, eax
je 0xebf177
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xac0104]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xac0298]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xebf12c
mov ecx, edi
jns 0xebf15b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xac02a0]
or eax, eax
je 0xebf171
mov dword [ebx], eax
add ebx, 4
jmp 0xebf149
call dword [esi + 0xac029c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0xebf1a8
cmp al, 0xef
ja 0xebf19b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0xebf17d
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0xebf18a
mov ebp, dword [esi + 0xac02a4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0xebf1dc
sub esp, 0xffffff80
jmp 0x51ba03
Function at 0x5d8e2b
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x5d8b64
or edx, ecx
call fcn.005d8e64
inc edx
xor dword [eax], esi
mov ecx, edx
add edx, ecx
add eax, 2
dec ecx
add edx, ecx
mov ecx, 0xa97d51e4
cmp eax, ebx
jl fcn.005d8e2b
add edx, 0x6b177ed1
ret

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

Disassembly:
push ebp
mov ebp, esp
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x404474], eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4041cf], ebp
mov dword [0x404404], eax
mov dword [0x4041c7], eax
mov dword [0x4043f0], 0x30
mov dword [0x4043f4], 2
jmp 0x4016c6
mov dword [0x4043f8], 0x403051
mov dword [0x4043fc], 0
mov dword [0x404400], 0
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x40440c], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x404408], eax
mov dword [0x40441c], eax
mov dword [0x404418], 0x40439a
mov dword [0x404410], 0xf
push 0x4043f0
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x4041c7]
push 0
push 0
push 0x1e0
push 0x1fe
push 0xfffff862
push 0xfffff8f8
push 0xcf0000
push 0x4043e7
push str.lunt
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x404468], eax
push 5
push dword [0x404468]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x404468]
call dword [sym.imp.user32.dll_UpdateWindow]
xor edi, edi
lea ebx, [0x404420]
jmp 0x40179a
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x40178c
mov eax, dword [0x404428]
jmp 0x4017b5
call 0x402a06
ret
Function at 0x4048e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43ade8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call fcn.00403b60
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x30], 0
mov ecx, edi
call fcn.00402980
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0xc]
push eax
push ecx
lea ecx, [esi + 0x14c]
call fcn.004169f0
mov bl, al
test bl, bl
je 0x404945
lea ecx, [esp + 0xc]
call fcn.004070f0
push eax
mov ecx, edi
call fcn.00402a40
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.00403bd0
mov ecx, dword [esp + 0x28]
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 8
Function at 0x405670
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
mov esi, ecx
je 0x405683
mov dword [edi], 0
mov edx, dword [esp + 0x14]
test edx, edx
jne 0x405693
pop edi
pop esi
xor al, al
pop ebx
ret 0x10
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x4056a3
pop edi
pop esi
xor al, al
pop ebx
ret 0x10
mov eax, dword [esi + 0x10]
cmp eax, 0xffffffff
jne 0x4056b3
pop edi
pop esi
mov al, 1
pop ebx
ret 0x10
lea ebx, [esp + 0x14]
push 0
push ebx
push edx
push ecx
push eax
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4056f3
mov al, byte [esi + 0xc]
test al, al
je 0x4056e4
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10], 0xffffffff
pop edi
pop esi
mov al, 1
pop ebx
ret 0x10
mov ecx, dword [esi + 8]
mov bl, 1
test ecx, ecx
je 0x40572c
lea edx, [esp + 0x18]
mov byte [esp + 0x18], 0
push edx
push eax
call fcn.00417500
mov al, byte [esp + 0x18]
test al, al
je 0x405728
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x405726
mov eax, dword [ecx]
push str.Aborted_by_application
call dword [eax + 0x14]
xor bl, bl
mov eax, dword [esp + 0x14]
test edi, edi
je 0x405732
mov dword [edi], eax
mov ecx, dword [esi + 4]
pop edi
add ecx, eax
mov al, bl
mov dword [esi + 4], ecx
pop esi
pop ebx
ret 0x10

Function at 0x4058f0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43af5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3ac
lea ecx, [esp]
call fcn.00417d20
lea ecx, [esp]
mov dword [esp + 0x3b4], 0
call fcn.00417d70
test al, al
je 0x405955
lea eax, [esp + 0x98]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x98]
push ecx
mov ecx, dword [esp + 0x3c0]
call fcn.004029e0
jmp 0x4059a9
lea edx, [esp + 0x1a0]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x405995
lea eax, [esp + 0x98]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x98]
push ecx
mov ecx, dword [esp + 0x3c0]
call fcn.004029e0
jmp 0x4059a9
mov ecx, dword [esp + 0x3bc]
lea edx, [esp + 0x1a0]
push edx
call fcn.00402aa0
lea ecx, [esp]
mov dword [esp + 0x3b4], 0xffffffff
call fcn.00417d60
mov ecx, dword [esp + 0x3ac]
mov dword fs:[0], ecx
add esp, 0x3b8
ret
Function at 0x4059e0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43af7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3ac
lea ecx, [esp + 0x108]
call fcn.00417d20
lea ecx, [esp + 0x108]
mov dword [esp + 0x3b4], 0
call fcn.00417d70
test al, al
je 0x405a45
lea eax, [esp]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0x3c0]
call fcn.004029e0
jmp 0x405a9b
lea edx, [esp + 0x1a0]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x405a87
lea eax, [esp]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x405a74
mov byte [esp], al
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0x3c0]
call fcn.004029e0
jmp 0x405a9b
mov ecx, dword [esp + 0x3bc]
lea edx, [esp + 0x1a0]
push edx
call fcn.00402aa0
lea ecx, [esp + 0x108]
mov dword [esp + 0x3b4], 0xffffffff
call fcn.00417d60
mov ecx, dword [esp + 0x3ac]
mov dword fs:[0], ecx
add esp, 0x3b8
ret

Function at 0x406290
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x43b066
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf4
lea ecx, [esp]
call fcn.00402800
mov eax, dword [esp + 0x104]
lea ecx, [esp]
push eax
mov dword [esp + 0x100], 0
call fcn.00403370
push 0x5c
push 0x2f
lea ecx, [esp + 8]
call fcn.004034a0
lea ecx, [esp + 0x5c]
call fcn.00417d20
lea ecx, [esp + 0x5c]
mov byte [esp + 0xfc], 1
call fcn.00417d70
test al, al
je 0x406315
mov ecx, dword [esp + 0x108]
push ecx
lea ecx, [esp + 4]
call fcn.00402e90
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x40632d
mov edx, dword [esp + 0x108]
lea ecx, [esp]
push edx
call fcn.00402b10
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
push ebx
lea ecx, [esp + 0x60]
setne bl
mov byte [esp + 0x100], 0
call fcn.00417d60
lea ecx, [esp + 4]
mov dword [esp + 0x100], 0xffffffff
call fcn.004028c0
mov ecx, dword [esp + 0xf8]
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x100
ret

Function at 0x406370
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x43b086
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf4
lea ecx, [esp]
call fcn.00402800
mov eax, dword [esp + 0x104]
lea ecx, [esp]
push eax
mov dword [esp + 0x100], 0
call fcn.00403370
push 0x5c
push 0x2f
lea ecx, [esp + 8]
call fcn.004034a0
lea ecx, [esp + 0x5c]
call fcn.00417d20
lea ecx, [esp + 0x5c]
mov byte [esp + 0xfc], 1
call fcn.00417d70
test al, al
lea ecx, [esp]
je 0x4063ed
call fcn.00402e90
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
jmp 0x4063f9
call fcn.00402b10
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
push ebx
lea ecx, [esp + 0x60]
setne bl
mov byte [esp + 0x100], 0
call fcn.00417d60
lea ecx, [esp + 4]
mov dword [esp + 0x100], 0xffffffff
call fcn.004028c0
mov ecx, dword [esp + 0xf8]
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x100
ret