joyce8/EMBER2024-capa huggingface dataset:
Function at 0xe72510
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0xe72523
xor eax, eax
jmp 0xe725e1
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0xe7253e
xor eax, eax
jmp 0xe725e1
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0x4550
je 0xe7255c
xor eax, eax
jmp 0xe725e1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x78]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x1c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], 0
jmp 0xe7259e
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x18]
jae 0xe725df
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
push edx
call fcn.00e71850
add esp, 8
test eax, eax
jne 0xe725dd
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0xe725e1
jmp 0xe72595
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4061bb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x4061bb
lcall 0x5de5, 0x8b10c483
jmp loc.00789ea8
Function at 0x4282a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
push edi
jmp 0x4282ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4282c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4282b0
mov eax, 1
add ebx, ebx
jne 0x4282d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4282c8
jne 0x4282e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4282c8
xor ecx, ecx
sub eax, 3
jb 0x4282f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42836a
mov ebp, eax
add ebx, ebx
jne 0x428303
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x428310
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x428334
inc ecx
add ebx, ebx
jne 0x428320
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x428315
jne 0x428331
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x428315
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x428354
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x428345
jmp 0x4282b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x428354
add edi, ecx
jmp 0x4282b6
pop esi
mov edi, esi
mov ecx, 0x115
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x428372
cmp byte [edi], 3
jne 0x428372
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 0x428377
lea edi, [esi + 0x26000]
mov eax, dword [edi]
or eax, eax
je 0x4283e6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x28000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x280c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4283a4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x280cc]
or eax, eax
je 0x4283e0
mov dword [ebx], eax
add ebx, 4
jmp 0x4283c1
call dword [esi + 0x280c8]
mov ebp, dword [esi + 0x280d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
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 0x42841a
sub esp, 0xffffff80
jmp 0x409ac0

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x409093
Capabilities:
Encode data using xor

Disassembly:
invalid
pop esp
inc ecx
jp 0x409016
imul edi, ebx, 0xa1cfb689
push eax
mov ebp, esi
cmc
sar edi, 0xf4
or dword [ebx], ebp
and dword [0x34287404], 0x11688e11
rcr byte [edi + 0x485b394f], 1
push ss
pop esp
lodsb al, byte [esi]
in eax, 0x70
fadd qword [esi]
popal
in eax, dx
int3
push ds
add byte [edi + 0x1240b915], ch
jae 0x40903b

Function at 0x4730d7
Capabilities:
Encode data using xor

Disassembly:
sub al, 0xeb
test eax, 0x92fb4e33
mov ebx, 0x790e9461
popal
xchg esp, eax
push cs
jns 0x4730e5
je 0x4730f6
cmpsb byte [esi], byte es:[edi]

Function at 0x473167
Capabilities:
Encode data using xor

Disassembly:
and esp, dword [edx - 0x7746ad2f]
push ebp
ja 0x4731de
mov edx, 0x192ec266
xlatb
sal byte [ebx + 0x65], 0x4d
dec ebp

Function at 0x4731b7
Capabilities:
Encode data using xor

Disassembly:
fstp qword [edx]
sub edx, dword [edi - 0x2b7090eb]
aam 0x4a
add bh, byte [esi + 0x50c99228]
sub byte [edx + 0xf], al
xor eax, 0xdd64400e
inc eax
fnstsw word fs:[eax - 0x73ef9668]
ja 0x473189
shr dword [ecx + 0x60], 0xfe
jle 0x4731d3
sub dword [edx + 0xba3faa8], esp
cmp dword [esi + 0x7068888a], esp
mov cl, 0x47
inc eax
and byte [eax - 0x6fd93ae9], ch
nop
clc
pop es

Function at 0x473227
Capabilities:
Encode data using xor

Disassembly:
add dword [ebx], eax
cmpsb byte [esi], byte es:[edi]
and ebx, dword [ebp - 0x67761e5e]
salc
sbb bh, ch
mov dh, 0xa9
jnp 0x4731eb
sal ah, 1
shr byte [ecx + 0x29b6f167], 0xd7
int1
mov dh, 0x29
xlatb

Function at 0x4bb9d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c5498
cmp edx, dword [eax]
je 0x4bb9f2
add eax, 8
inc ecx
cmp eax, 0x4c5528
jl 0x4bb9e3
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c5498]
jne 0x4bbb20
mov eax, dword [0x4c7d3c]
cmp eax, 1
je 0x4bbafa
test eax, eax
jne 0x4bba23
cmp dword [0x4c32dc], 1
je 0x4bbafa
cmp edx, 0xfc
je 0x4bbb20
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bba5a
lea eax, [ebp - 0x1a4]
push 0x4bfaf8
push eax
call fcn.004bcb30
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bcc20
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bba9d
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bcc20
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4bfaf4
push edi
call fcn.004bd5e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4bfad8
push eax
call fcn.004bcb30
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bcb40
lea eax, [ebp - 0xa0]
push 0x4bfad4
push eax
call fcn.004bcb40
push dword [esi + 0x4c549c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bcb40
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4bfaac
push eax
call fcn.004bd552
add esp, 0x2c
pop edi
jmp 0x4bbb20
lea eax, [ebp + 8]
lea esi, [esi + 0x4c549c]
push 0
push eax
push dword [esi]
call fcn.004bcc20
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]
pop esi
leave
ret
Function at 0x100177f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
push 6
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov dword [ebp - 0x1c], edi
mov esi, 0x1001200
movsd dword es:[edi], dword [esi]
push 0x1001270
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x20], eax
je 0x100193a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001260
push eax
call esi
mov ebx, dword [ebp - 0x20]
push 0x100124c
push ebx
mov dword [ebp - 0x24], eax
call esi
push 0x1001238
push ebx
mov dword [ebp - 0x28], eax
call esi
push 0x100121c
push ebx
mov dword [ebp - 0x10], eax
call esi
push 0x1001214
push ebx
mov dword [ebp - 0x14], eax
call esi
push 0x1001208
push ebx
mov dword [ebp - 4], eax
call esi
cmp dword [ebp - 0x24], edi
mov dword [ebp - 0x2c], eax
je 0x100193a
cmp dword [ebp - 0x28], edi
je 0x100193a
cmp dword [ebp - 0x10], edi
je 0x100193a
cmp dword [ebp - 0x14], edi
je 0x100193a
cmp dword [ebp - 4], edi
je 0x100193a
cmp eax, edi
je 0x100193a
lea eax, [ebp - 0xc]
push eax
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [ebp - 0x24]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x1001878
call esi
cmp eax, 0x3f0
jne 0x1001871
lea eax, [ebp - 0xc]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x28]
test eax, eax
jne 0x1001878
xor ebx, ebx
jmp 0x100193d
lea eax, [ebp - 8]
push eax
push edi
push edi
push 2
pop ebx
push ebx
push dword [ebp - 0xc]
call dword [ebp - 0x10]
test eax, eax
jne 0x1001871
call esi
cmp eax, 0x7a
jne 0x1001871
push dword [ebp - 8]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, edi
mov dword [ebp - 0x28], esi
je 0x1001871
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push esi
push ebx
push dword [ebp - 0xc]
call dword [ebp - 0x10]
test eax, eax
je 0x1001871
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push 0x220
push 0x20
push ebx
push dword [ebp - 0x1c]
call dword [ebp - 0x14]
test eax, eax
je 0x1001871
lea eax, [ebp - 0x30]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push 0x223
push 0x20
push ebx
push dword [ebp - 0x1c]
call dword [ebp - 0x14]
test eax, eax
jne 0x10018fd
push dword [ebp - 0x18]
call dword [ebp - 4]
jmp 0x1001871
xor ebx, ebx
mov dword [ebp - 0x14], edi
add esi, 4
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax]
jae 0x1001923
push dword [ebp - 0x18]
push dword [esi]
call dword [ebp - 0x2c]
inc dword [ebp - 0x14]
mov ebx, eax
add esi, 8
cmp ebx, edi
je 0x1001905
push dword [ebp - 0x18]
call dword [ebp - 4]
push dword [ebp - 0x30]
call dword [ebp - 4]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x100193d
xor ebx, ebx
inc ebx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x20], edi
je 0x1001954
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x10019c7
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, 0x94
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
xor edi, edi
cmp ebx, edi
je 0x1001a5b
cmp dword [0x100c29c], edi
jne 0x1001a10
mov dword [0x100c29c], 1
push ebx
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebx + 0x10], 2
jne 0x1001a10
call fcn.0100177f
mov dword [0x100c294], eax
cmp dword [0x100c294], 0
jne 0x1001a29
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, eax
jmp 0x1001a54
mov esi, dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, eax
test edi, edi
je 0x1001a54
push 0x1001280
push dword [ebp + 8]
call main
sub esi, eax
push esi
push dword [ebp + 8]
call fcn.01001696
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x1001ca5
Capabilities:
Copy file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, 0x104
push esi
push 0x40
call edi
push esi
push 0x40
mov ebx, eax
call edi
push 0x140
push 0x40
mov dword [ebp - 4], eax
call edi
test ebx, ebx
mov dword [ebp - 8], eax
je 0x1001d62
cmp dword [ebp - 4], 0
je 0x1001d5b
test eax, eax
je 0x1001d5b
push esi
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push ebx
call fcn.01001714
test eax, eax
jne 0x1001d05
push 0x3a
push ebx
call fcn.01001714
mov edi, dword [ebp + 8]
lea edi, [edi*4 + section..data]
push dword [edi]
inc eax
push esi
push eax
call fcn.0100165d
push esi
push dword [ebp - 4]
call fcn.010019c7
push dword [edi]
push dword [ebp - 4]
call main
sub esi, eax
push esi
push dword [ebp - 4]
call fcn.01001696
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001d5b
push 0
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 4], 0
pop edi
pop esi
pop ebx
je 0x1001d74
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 8], 0
je 0x1001d83
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
leave
ret 4
Function at 0x1001d8c
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push edi
push 0x140
push 0x40
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x1001de3
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x1001ddb
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop edi
mov eax, ebx
pop ebx
pop ebp
ret 4

Function at 0x1001f75
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push dword [ebp + 8]
call main
and dword [ebp - 4], 0
mov esi, eax
lea eax, [esi + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push dword [ebp + 8]
mov ebx, eax
mov byte [ebx + esi + 1], 0
inc esi
push esi
push ebx
call fcn.0100165d
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
mov eax, dword [ebp + 0x10]
push ebx
mov byte [eax], 0
call fcn.01001e82
mov esi, eax
test esi, esi
je 0x1002018
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpNIA]
push 2
push esi
push 0x10012dc
call edi
test eax, eax
jne 0x1002028
mov dword [ebp - 4], 1
push esi
mov esi, dword [ebp + 0xc]
push esi
call main
mov ecx, dword [ebp + 0x18]
sub ecx, eax
push ecx
push esi
call fcn.01001696
push 0x10012d8
push esi
call main
mov ecx, dword [ebp + 0x18]
sub ecx, eax
push ecx
push esi
call fcn.01001696
push 0
call fcn.01001e82
mov esi, eax
test esi, esi
jne 0x1001fc8
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0x14
push 3
push esi
push 0x10012d4
call edi
test eax, eax
je 0x10020ae
push 3
push esi
push 0x10012d0
call edi
test eax, eax
je 0x10020ae
push 4
push esi
push 0x10012c8
call edi
test eax, eax
jne 0x100205d
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
jmp 0x100200a
push esi
call main
cmp eax, 2
jne 0x100208d
push esi
push 0x10012c4
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x100208d
push 0x10012bc
push 0x10012a8
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0x1001fdd
push 7
push esi
push 0x100129c
call edi
test eax, eax
jne 0x1001fdd
mov dword [0x100c2a4], 1
jmp 0x100200a
push esi
mov esi, dword [ebp + 0x10]
jmp 0x1001fe1
Function at 0x100241a
Capabilities:
Get common file path
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, 0x104
push esi
push 0x40
call edi
push esi
push 0x40
mov dword [ebp - 8], eax
call edi
push esi
push 0x40
mov dword [ebp - 4], eax
call edi
cmp dword [ebp - 4], 0
mov ebx, eax
je 0x1002530
test ebx, ebx
je 0x1002530
cmp dword [ebp - 8], 0
je 0x1002530
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, 0x1001374
push edi
push dword [ebp - 4]
call main
mov ecx, esi
sub ecx, eax
push ecx
push dword [ebp - 4]
call fcn.01001696
push dword [ebp - 4]
call fcn.01001a90
push esi
push ebx
push 0
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push ebx
call fcn.01001714
test eax, eax
je 0x10024c0
inc eax
mov ecx, eax
push edi
sub ecx, ebx
push ecx
push eax
call fcn.0100165d
push ebx
call fcn.01001a90
test eax, eax
jne 0x10024d0
cmp dword [ebp - 0xc], 0
je 0x100251d
push dword [ebp - 4]
push esi
push ebx
call fcn.0100165d
push 0x1001370
push ebx
call fcn.01001988
mov edi, eax
test edi, edi
je 0x100251d
push ebx
push esi
push dword [ebp - 8]
push 0x1001368
push 0x100135c
push 0x1001354
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x100134c
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1002517
mov dword [0x100c2a4], 1
push edi
call fcn.010019b6
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
call esi
push dword [ebp - 4]
call esi
push ebx
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1002620
Capabilities:
Accept command line arguments
Get common file path
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0xc], eax
push 0x2f
push dword [ebp - 0xc]
call dword [sym.imp.SHLWAPI.dll_StrChrIA]
test eax, eax
je 0x10027a2
push eax
call dword [sym.imp.USER32.dll_CharNextA]
push eax
mov dword [ebp - 0xc], eax
call fcn.0100253a
mov edi, eax
test edi, edi
mov dword [ebp - 4], edi
je 0x100263e
mov al, byte [edi]
cmp al, 0x6c
je 0x1002674
cmp al, 0x4c
jne 0x10026de
push edi
call dword [sym.imp.USER32.dll_CharNextA]
cmp byte [eax], 0x22
jne 0x1002734
push edi
call fcn.010025c8
mov esi, eax
test esi, esi
je 0x1002734
push esi
call main
cmp eax, 4
jne 0x10026d9
xor edi, edi
movsx eax, byte [edi + esi]
push eax
call dword [sym.imp.msvcrt.dll_isxdigit]
test eax, eax
pop ecx
je 0x10026d6
inc edi
cmp edi, 4
jl 0x10026a1
push 0x10
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.msvcrt.dll_strtoul]
movzx eax, ax
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x10026d6
and dword [ebp - 8], 0
mov edi, dword [ebp - 4]
push esi
call ebx
jmp 0x1002734
cmp al, 0x66
je 0x10026e6
cmp al, 0x46
jne 0x100273c
push edi
call dword [sym.imp.USER32.dll_CharNextA]
cmp byte [eax], 0x22
jne 0x1002734
push edi
call fcn.010025c8
mov edi, eax
test edi, edi
je 0x1002731
push 0x104
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push edi
push esi
push 0x1001384
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01001730
add esp, 0x14
push edi
call ebx
mov edi, dword [ebp - 4]
push edi
call ebx
jmp 0x100263e
cmp al, 0x6b
je 0x1002744
cmp al, 0x4b
jne 0x1002734
push 3
push 0x1001380
push edi
call dword [sym.imp.SHLWAPI.dll_StrCmpNIA]
test eax, eax
jne 0x100276d
mov al, byte [edi + 3]
cmp al, 0x20
je 0x1002761
test al, al
jne 0x1002734
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x1002734
or dword [eax], 2
jmp 0x1002734
push edi
call dword [sym.imp.USER32.dll_CharNextA]
cmp byte [eax], 0x22
jne 0x1002734
push edi
call fcn.010025c8
mov esi, eax
test esi, esi
je 0x1002734
push dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
call fcn.01001677
push esi
call ebx
cmp dword [ebp + 0x18], 0
je 0x1002734
mov eax, dword [ebp + 0x18]
or dword [eax], 1
jmp 0x1002734
mov eax, dword [ebp - 8]
test eax, eax
pop edi
pop esi
pop ebx
jne 0x10027b2
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
leave
ret 0x14
Function at 0x1002a74
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 0x20], 0
push ebx
push esi
push edi
push 2
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
pop ecx
mov esi, 0x104
push esi
push 0x40
mov dword [ebp - 8], eax
call edi
push esi
mov ebx, eax
push 0x40
mov dword [ebp - 0x14], ebx
call edi
push 0x140
push 0x40
mov dword [ebp - 4], eax
call edi
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x1002c39
test ebx, ebx
je 0x1002c39
cmp dword [ebp - 4], 0
je 0x1002c39
test eax, eax
je 0x1002c39
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x10013c0
push ebx
mov ebx, 0x1001384
push ebx
push esi
push dword [ebp - 4]
call fcn.01001730
mov edi, dword [sym.imp.KERNEL32.dll_AddAtomA]
add esp, 0x14
push dword [ebp - 4]
call edi
push dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
push 0x10013b4
push esi
push dword [ebp - 4]
mov word [ecx], ax
mov dword [ebp - 0x10], 1
call fcn.01001730
add esp, 0x10
push dword [ebp - 0xc]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
je 0x1002c43
mov eax, dword [ebp - 0xc]
add eax, 0x2c
push eax
push 0x10013c0
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1002c10
push 4
push dword [ebp - 8]
mov dword [ebp - 0x10], 2
call dword [sym.imp.msvcrt.dll_realloc]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
je 0x1002b9d
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
add eax, 0x2c
push eax
push dword [ebp - 0x14]
push ebx
push esi
push dword [ebp - 4]
call fcn.01001730
add esp, 0x14
push dword [ebp - 4]
call edi
mov ecx, dword [ebp - 0x18]
mov word [ecx + 2], ax
jmp 0x1002c10
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov dword [0x100c290], 0x228
jmp 0x1002c2e
mov eax, dword [ebp - 0xc]
add eax, 0x2c
push eax
push 0x10013c0
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1002c10
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
add eax, eax
push eax
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll_realloc]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
je 0x1002b9d
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
add eax, 0x2c
push eax
push dword [ebp - 0x14]
push ebx
push esi
push dword [ebp - 4]
call fcn.01001730
add esp, 0x14
push dword [ebp - 4]
call edi
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
add ecx, ecx
mov word [ecx + edx - 2], ax
push dword [ebp - 0xc]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1002bb3
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1002c43
mov dword [0x100c290], 0x228
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push dword [ebp - 4]
call esi
push dword [ebp - 0xc]
call esi
mov eax, dword [ebp - 0x20]
pop edi
pop esi
pop ebx
leave
ret 4