joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x3b5131f9
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0x35b312dc
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x404a94
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
cmp eax, 1
jne 0x404ad0
add esp, 0xfffffff4
push dword [edx + 0x4c]
call sym._getc
cmp eax, 0xffffffff
jne 0x404ac0
xor eax, eax
jmp 0x404adc
mov byte [ebx], al
mov eax, 1
jmp 0x404adc
push dword [edx + 0x4c]
push eax
push 1
push ebx
call sym._fread
mov ebx, dword [ebp - 0x18]
leave
ret

Function at 0x404ae4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push ebx
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
push dword [ebx + 0x4c]
push esi
push 1
push dword [ebp + 0xc]
call sym._fwrite
mov edx, dword [ebx + 0x40]
test edx, edx
jl 0x404b0c
add edx, esi
mov dword [ebx + 0x40], edx
lea esp, [ebp - 0x18]
pop ebx
pop esi
leave
ret

Function at 0x404bdc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx]
shr eax, 1
xor al, 1
test al, 1
jne 0x404c05
push dword [edx + 0x4c]
push ecx
push 1
push ebx
call sym._fwrite
jmp 0x404c10
add esp, 0xfffffffc
push ecx
push ebx
push edx
call sym._xsputn__9streambufPCci
mov ebx, dword [ebp - 0x18]
leave
ret

Function at 0x407a70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
add esp, 0xfffffffc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax + 0x38]
call sym._read
leave
ret

Function at 0x40b144
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x40b169
mov dword [0x414164], eax
add esp, 0xfffffff8
push sym._eh_context_free
push eax
call sym.___mingwthr_key_dtor
jmp 0x40b16e
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x40b184
mov dword [sym._eh_context_initialize], 0x40b268
jmp 0x40b18e
mov dword [sym._eh_context_initialize], 0x40b21c
leave
ret

Function at 0x40b268
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
add esp, 0xfffffff4
push dword [0x414164]
call sub.KERNEL32.dll_TlsGetValue
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x40b2b5
call sym._new_eh_context
mov ebx, eax
add esp, 0xfffffff8
push ebx
push dword [0x414164]
call sub.KERNEL32.dll_TlsSetValue
add esp, 8
test eax, eax
jne 0x40b2aa
call sub.KERNEL32.dll_GetLastError
jmp 0x40b2ac
xor eax, eax
test eax, eax
je 0x40b2b5
call sym.___terminate
mov eax, ebx
mov ebx, dword [ebp - 0x18]
leave
ret
Function at 0x40b3e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x65c
push edi
push esi
push ebx
mov eax, dword [sym._eh_context_initialize]
call eax
mov edx, eax
lea eax, [edx + 4]
mov dword [ebp - 0x644], eax
mov eax, dword [edx + 4]
lea ecx, [eax + 4]
mov dword [ebp - 0x648], ecx
cmp dword [eax + 4], 0
je 0x40b49d
lea ebx, [ebp - 0x640]
mov dword [ebp - 0x64c], ebx
mov dword [ebx + 4], 0
mov eax, dword [edx + 4]
mov dword [ebp - 0x640], eax
lea eax, [ebp - 0x638]
mov dword [ebp - 0x638], ebp
mov dword [eax + 4], 0x40b448
mov dword [eax + 8], esp
jmp 0x40b44a
mov edx, dword [ebp - 0x64c]
mov eax, dword [ebp - 0x644]
mov dword [eax], edx
mov ecx, dword [ebp - 0x648]
cmp dword [ecx], 0
je 0x40b486
nop
mov ebx, dword [ebp - 0x648]
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov eax, dword [eax]
mov dword [ebx], eax
add esp, 0xfffffff8
push 2
push edx
call ecx
add esp, 0x10
cmp dword [ebx], 0
jne 0x40b464
mov edx, dword [ebp - 0x64c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x644]
mov dword [ecx], eax
jmp 0x40b49d
mov ebx, dword [ebp - 0x644]
mov eax, dword [ebx]
mov eax, dword [eax]
mov dword [ebx], eax
call sym.___sjthrow
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
dec ecx
outsb dx, byte [esi]
je 0x40b52d
jb 0x40b538
popal
insb byte es:[edi], dx
and byte [ebx + 0x6f], al
insd dword es:[edi], dx
jo 0x40b53b
insb byte es:[edi], dx
jb 0x40b4f6
inc edx
jne sym.___get_eh_table_version
cmp ah, byte [eax]
dec esi
outsd dx, dword [esi]
and byte [edx + 0x75], dh
outsb dx, byte [esi]
je sym.___get_eh_table_language
insd dword es:[edi], dx
and byte gs:[ecx + edi*2 + 0x70], dh
and byte gs:[ebp + 0x61], ch
je 0x40b552
push 0x2e7265
in eax, 0x83
in al, dx
or al, ch
xor esp, edi
invalid
mov al, 0x51
inc ecx
add byte [ebx - 0x17afbf40], al
mov byte [0x31000043], al
add byte [eax], al
xor eax, eax
ror cl, 0xc3
mov esi, esi
leave
ret
movsx eax, word [eax + 4]
leave
ret
Function at 0x4034e5
Capabilities:
Terminate process

Disassembly:
jmp 0x4523b9
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x4523ca
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405722
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x403616
Capabilities:
Query environment variable

Disassembly:
jmp 0x49ad21
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49ad32
pop esi
ret
push ebx
push edi
push esi
call fcn.0049ac08
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403e9a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49ad5a
push ebx
push esi
push edi
call fcn.0040551a
add esp, 0xc
push 0
call fcn.00406028
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4055dd
Capabilities:
Parse pe header

Disassembly:
jmp 0x44168d
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4416cc
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4416cc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4416cc
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4416cc
cmp dword [ecx + 0x74], 0xe
jbe 0x4416cc
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x43f520
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.00403675
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x43f55f
sub eax, 1
je 0x43f55a
sub eax, 1
je 0x43f556
xor eax, eax
leave
ret
push 3
jmp 0x43f561
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret
Function at 0x490730
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401d52
mov eax, dword [0x4cf01c]
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.00405c59
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x490772
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4908ce
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405da3
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 + 0x4d28d8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403184
mov ecx, dword [esi*4 + 0x4d28d8]
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 0x4908c7
cmp eax, dword [edi + ecx + 0x24]
jne 0x4908c7
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 0x4908c7
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403184
add esp, 0x14
test edx, edx
jl 0x4908c7
jg 0x49083d
test eax, eax
jb 0x4908c7
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4908c7
jl 0x490857
cmp dword [ebp - 0x1008], eax
ja 0x4908c7
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x490875
test ebx, ebx
je 0x4908ae
cmp ecx, edi
jae 0x4908ae
mov al, byte [ecx]
cmp al, 0xd
jne 0x49088f
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49089b
cmp byte [ecx + 1], 0xa
jne 0x49089b
inc ecx
jmp 0x49089b
movzx eax, al
movsx eax, byte [eax + 0x4cf338]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x490875
cmp edx, ebx
jne 0x490875
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4908cc
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00402f7c
leave
ret
Function at 0x49100d
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 + 0x4d28d8]
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 0x49104d
cmp byte [ebx], 0xa
jne 0x49104d
or byte [eax + edi + 0x28], 4
jmp 0x491052
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x491150
mov al, byte [edx]
cmp al, 0x1a
je 0x491132
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x491081
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4910a6
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4910b0
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 0x491063
jmp 0x491150
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 0x49112d
cmp dword [ebp - 0xc], 0
je 0x49112d
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4d28d8]
test byte [eax + edi + 0x28], 0x48
je 0x491107
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4910f2
mov byte [esi], dl
jmp 0x491103
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4d28d8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x491150
cmp byte [ebp - 1], 0xa
jne 0x491116
cmp esi, ebx
jne 0x491116
mov byte [esi], 0xa
jmp 0x49114f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401906
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x491150
mov byte [esi], 0xd
jmp 0x49114f
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4d28d8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49114c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x491150
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4911ac
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 + 0x4d28d8]
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 0x4911ef
cmp word [esi], dx
jne 0x4911ef
or byte [edi + eax + 0x28], 4
jmp 0x4911f4
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 0x491347
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 0x491327
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x491236
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x49126c
cmp eax, edx
jae 0x491278
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 0x49120e
jmp 0x491347
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 0x491323
cmp dword [ebp - 0x14], 0
je 0x491323
mov eax, dword [ebx*4 + 0x4d28d8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4912fb
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4912c4
mov word [esi], cx
jmp 0x4912f7
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4d28d8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4d28d8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4d28d8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x491347
pop ebx
cmp word [ebp - 4], bx
jne 0x49130c
cmp esi, dword [ebp + 0xc]
jne 0x49130c
mov word [esi], bx
jmp 0x491344
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401906
add esp, 0x10
cmp word [ebp - 4], bx
je 0x491347
push 0xd
jmp 0x491340
mov ecx, dword [ebx*4 + 0x4d28d8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49133e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x491347
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 0x4992c0
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4cf01c]
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 0x49930b
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00499782
test al, al
jne 0x499305
sub edx, 2
cmp edx, edi
jne 0x4992eb
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49932d
lea eax, [edi + 2]
cmp edx, eax
je 0x49932d
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00498eb9
add esp, 0x10
jmp 0x499427
push esi
lea ecx, [ebp - 0x255]
call fcn.00499782
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 0x499370
push dword [ebp - 0x25c]
jmp 0x49931d
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 0x4993ad
cmp word [ebp - 0x226], 0
je 0x4993ce
cmp word [ebp - 0x226], ax
jne 0x4993ad
cmp word [ebp - 0x224], 0
je 0x4993ce
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00498eb9
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49941a
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x499387
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x499402
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x499427
push 0x4988a1
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040537b
add esp, 0x10
jmp 0x4993f7
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.00402f7c
leave
ret
Function at 0x4022b0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x38
push ebx
push ebp
push esi
push edi
push 0x448
mov edi, ecx
call sub.MFC71.DLL_CWnd::GetDlgItem
test eax, eax
je 0x4022f5
push 0x448
mov ecx, edi
call sub.MFC71.DLL_CWnd::GetDlgItem
mov edx, dword [eax + 0x20]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
push 0x448
mov ecx, edi
call sub.MFC71.DLL_CWnd::GetDlgItem
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x68]
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call sub.MFC71.DLL_CWnd::ScreenToClient
mov ebx, dword [edi + 0x10bc]
push 0x448
sub esp, 0x10
mov ebp, esp
xor eax, eax
mov dword [ebp], eax
xor ecx, ecx
mov dword [ebp + 4], ecx
push 0x5402204c
xor edx, edx
lea esi, [edi + 0x10bc]
push 0x8900
mov dword [ebp + 8], edx
push edi
mov ecx, esi
mov dword [ebp + 0xc], eax
call dword [ebx + 0x170]
mov ecx, dword [edi + 0x10dc]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 1
push 0
push 0x454
push ecx
call ebx
call sub.MFC71.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
push 0xdb
push 0xdc
push 0xdc
push 0xdb
push 0xdc
push 0xdc
push 0
push 0
push 0
push 0
push eax
mov ecx, esi
call fcn.004e4471
push 0
mov ecx, esi
call fcn.004e4417
push 3
push 0x596828
mov ecx, esi
call sub.MFC71.DLL_CToolBar::SetButtons
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
sub ecx, eax
sub ecx, 0xd
mov eax, 0x55555556
imul ecx
mov ecx, dword [esp + 0x24]
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x1c]
mov ebp, 0x10
sub ecx, edx
mov edx, ebp
push edx
push ebp
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x24], ebp
call sub.MFC71.DLL_CToolBar::SetSizes
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x2c], 8
mov dword [esp + 0x28], 0x20
mov edx, dword [edi + 0x10dc]
lea ecx, [esp + 0x28]
push ecx
push 0x8024
push 0x441
push edx
call ebx
mov al, byte [esp + 0x39]
mov ecx, dword [edi + 0x10dc]
or al, 8
mov byte [esp + 0x39], al
lea eax, [esp + 0x28]
push eax
push 0x8024
push 0x442
push ecx
call ebx
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
push 1
sub edx, eax
push edx
mov edx, dword [esp + 0x28]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, esi
call sub.MFC71.DLL_CWnd::MoveWindow
push esi
mov ecx, edi
call fcn.004e3130
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
Function at 0x407e20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x57e0d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
mov eax, dword [0x5f3edc]
push esi
mov esi, ecx
push edi
lea ecx, [esp + 8]
mov dword [esp + 0x134], eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_7]
xor edi, edi
push 0x170
lea ecx, [esp + 0xc]
mov dword [esp + 0x144], edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::LoadStringA]
mov ecx, dword [esi + 0x20]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x30]
lea ecx, [esp + 8]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edx
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x28], 0x407d30
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], 0x40
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderA]
lea ecx, [esp + 0x30]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
lea ecx, [esi + 0x1060]
je 0x407f36
lea edx, [esp + 0x30]
push edx
call dword [0x5942f8]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_6]
lea ecx, [esp + 0xc]
mov byte [esp + 0x140], 1
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push str.ExportFolder
push str.Preferences
mov ecx, 0x5fda18
call sub.MFC71.DLL_CWinApp::WriteProfileStringA
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
jmp 0x407f41
push 0x596834
call dword [0x5942f8]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov ecx, dword [esp + 0x138]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x130]
pop esi
call fcn.00558076
add esp, 0x13c
ret
Function at 0x407fa0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, ecx
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::IsEmpty]
test al, al
jne 0x408014
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40803f
mov al, byte [edi + 0x1088]
test al, al
je 0x408014
push 0x5c
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::ReverseFind]
cmp eax, 0xffffffff
je 0x408014
push eax
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Left]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
mov edi, dword [sym.imp.MSVCR71.dll__mkdir]
push eax
call edi
add esp, 4
cmp eax, 0xffffffff
jne 0x40801b
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
pop edi
xor al, al
pop esi
ret 4
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call edi
add esp, 4
cmp eax, 0xffffffff
lea ecx, [esp + 0xc]
je 0x40800e
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
pop edi
mov al, 1
pop esi
ret 4
shr al, 4
pop edi
and al, 1
pop esi
ret 4

Function at 0x408250
Capabilities:
Check if file exists
Create directory

Disassembly:
push ecx
push esi
mov esi, ecx
mov ecx, 0x5fda18
call fcn.004bec20
mov ecx, eax
call fcn.004d73d0
test al, al
jne 0x40826e
xor al, al
pop esi
pop ecx
ret
mov ecx, 0x5fd9ec
call fcn.004ba3f0
test eax, eax
je 0x408269
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0xffffffff
mov ecx, dword [eax]
push eax
call dword [ecx + 0x64]
cmp dword [esp + 4], 0xd
jne 0x408269
mov al, byte [esi + 0x1088]
test al, al
je 0x408269
add esi, 0x1060
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x408269
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.MSVCR71.dll__mkdir]
add esp, 4
neg eax
sbb al, al
inc al
pop esi
pop ecx
ret