joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48cd85
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x48ce9d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x48ce9d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004adba9
mov esi, eax
test esi, esi
je 0x48ce9d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x48ce9d
mov ecx, esi
call fcn.0048cd10
cmp edi, eax
jge 0x48ce9d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x48ce23
mov dword [esp + 0x34], 1
jmp 0x48ce7e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x48ce9d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0048c290
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x4ae54d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4ae585
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004ac5da
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004ac5b2
jmp 0x4ae591
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4afc3b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4afc7d
call fcn.004b573f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4afc7d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4afc74
xor eax, eax
jmp 0x4afc85
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004afc8b
pop edi
pop esi
pop ebx
ret 4
Function at 0x4b5c6f
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4b5c9d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b5cbb
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b5bd5
jmp 0x4b5cbb
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b5cbb
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b5bd5
test edi, edi
mov eax, edi
jne 0x4b5ca5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x10042ad
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov eax, esi
mov ecx, 0x100175c
mov dword [ebp - 4], edi
call fcn.01003f4c
test eax, eax
jne 0x10042eb
push edi
push dword [0x1009830]
mov dword [0x100984c], 1
call dword [0x10011cc]
push 0x1001748
push dword [0x100ab80]
mov dword [0x100a6dc], eax
call dword [0x10011c8]
push 0xfd0000
push 0xfffffffffffffff0
push dword [0x1009830]
mov dword [0x100a6d8], eax
call dword [0x100126c]
add esi, 0xe
push esi
call fcn.0100417a
cmp word [eax], di
je 0x10042e6
push eax
mov esi, 0x100a900
push esi
call fcn.01003f99
push edi
mov ebx, 0x80
push ebx
push 3
push edi
mov edi, dword [0x1001104]
push 3
push 0x80000000
push esi
call edi
cmp eax, 0xffffffff
mov dword [0x100a480], eax
jne 0x10042d2
call dword [0x1001138]
dec eax
dec eax
je 0x1004291
sub eax, 3
push 0x31
push esi
je 0x1004289
sub eax, 0x76
je 0x1004281
push dword [0x1009034]
push dword [0x1009054]
push dword [0x1009830]
call fcn.01001f70
mov dword [ebp - 4], eax
jmp 0x10042c9
push dword [0x1009064]
jmp 0x100426b
push dword [0x100909c]
jmp 0x100426b
push 0x33
push esi
push dword [0x1009038]
push dword [0x1009054]
push dword [0x1009830]
call fcn.01001f70
cmp eax, 6
mov dword [ebp - 4], eax
jne 0x10042c9
push 0
push ebx
push 4
push 0
push 3
push 0xc0000000
push esi
call edi
mov dword [0x100a480], eax
cmp dword [0x100a480], 0xffffffff
je 0x10042eb
push dword [0x1009a80]
push esi
call fcn.01005179
push 2
pop eax
cmp dword [ebp - 4], eax
je 0x10042ed
push 6
pop eax
jmp 0x10042ed
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x2678340
Capabilities:
Encode data using xor

Disassembly:
push 0xa174ced7
not al
lodsb al, byte [esi]
clc
bt bp, 9
neg al
push 0x6945fb45
ror al, 7
call fcn.02911191
cmp ax, si
call fcn.015cad51
iretd
lea esp, [esp + 8]
jae 0x15c947e
dec al
not bl
jmp 0x291079c
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0x405f82
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push ebx
push esi
push edi
push 0x22
mov esi, ecx
pop ecx
lea edi, [ebp - 0x88]
mov dword [ebp - 0x90], esi
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x30], 0xffffffff
jne 0x405faf
xor eax, eax
inc eax
jmp 0x4069cf
mov ebx, dword [ebp - 0x44]
mov esi, dword [ebp - 0x54]
mov eax, dword [ebp - 0x88]
cmp eax, 0x1c
ja 0x4069cc
jmp dword [eax*4 + 0x4069d4]
outsb dx, byte [esi]
sub byte [ebp + edi - 1], bh
xlatb
ret
cmp eax, 0x5cc3d7ff
std
outsb dx, byte [esi]
Function at 0x1001777
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 0x1001932
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 0x1001932
cmp dword [ebp - 0x28], edi
je 0x1001932
cmp dword [ebp - 0x10], edi
je 0x1001932
cmp dword [ebp - 0x14], edi
je 0x1001932
cmp dword [ebp - 4], edi
je 0x1001932
cmp eax, edi
je 0x1001932
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 0x1001870
call esi
cmp eax, 0x3f0
jne 0x1001869
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 0x1001870
xor ebx, ebx
jmp 0x1001935
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 0x1001869
call esi
cmp eax, 0x7a
jne 0x1001869
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 0x1001869
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 0x1001869
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 0x1001869
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 0x10018f5
push dword [ebp - 0x18]
call dword [ebp - 4]
jmp 0x1001869
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 0x100191b
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 0x10018fd
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 0x1001935
xor ebx, ebx
inc ebx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x20], edi
je 0x100194c
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x10019bf
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 0x1001a53
cmp dword [0x100c29c], edi
jne 0x1001a08
mov dword [0x100c29c], 1
push ebx
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebx + 0x10], 2
jne 0x1001a08
call fcn.01001777
mov dword [0x100c294], eax
cmp dword [0x100c294], 0
jne 0x1001a21
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, eax
jmp 0x1001a4c
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 0x1001a4c
push 0x1001280
push dword [ebp + 8]
call main
sub esi, eax
push esi
push dword [ebp + 8]
call fcn.0100168e
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x1001c9d
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 0x1001d5a
cmp dword [ebp - 4], 0
je 0x1001d53
test eax, eax
je 0x1001d53
push esi
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push ebx
call fcn.0100170c
test eax, eax
jne 0x1001cfd
push 0x3a
push ebx
call fcn.0100170c
mov edi, dword [ebp + 8]
lea edi, [edi*4 + section..data]
push dword [edi]
inc eax
push esi
push eax
call fcn.01001655
push esi
push dword [ebp - 4]
call fcn.010019bf
push dword [edi]
push dword [ebp - 4]
call main
sub esi, eax
push esi
push dword [ebp - 4]
call fcn.0100168e
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001d53
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 0x1001d6c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 8], 0
je 0x1001d7b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
leave
ret 4
Function at 0x1001d84
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 0x1001ddb
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x1001dd3
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 0x1001f6d
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.01001655
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
mov eax, dword [ebp + 0x10]
push ebx
mov byte [eax], 0
call fcn.01001e7a
mov esi, eax
test esi, esi
je 0x1002010
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpNIA]
push 2
push esi
push 0x10012dc
call edi
test eax, eax
jne 0x1002020
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.0100168e
push 0x10012d8
push esi
call main
mov ecx, dword [ebp + 0x18]
sub ecx, eax
push ecx
push esi
call fcn.0100168e
push 0
call fcn.01001e7a
mov esi, eax
test esi, esi
jne 0x1001fc0
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 0x10020a6
push 3
push esi
push 0x10012d0
call edi
test eax, eax
je 0x10020a6
push 4
push esi
push 0x10012c8
call edi
test eax, eax
jne 0x1002055
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
jmp 0x1002002
push esi
call main
cmp eax, 2
jne 0x1002085
push esi
push 0x10012c4
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1002085
push 0x10012bc
push 0x10012a8
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0x1001fd5
push 7
push esi
push 0x100129c
call edi
test eax, eax
jne 0x1001fd5
mov dword [0x100c2a4], 1
jmp 0x1002002
push esi
mov esi, dword [ebp + 0x10]
jmp 0x1001fd9
Function at 0x1002412
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 0x1002528
test ebx, ebx
je 0x1002528
cmp dword [ebp - 8], 0
je 0x1002528
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.0100168e
push dword [ebp - 4]
call fcn.01001a88
push esi
push ebx
push 0
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push ebx
call fcn.0100170c
test eax, eax
je 0x10024b8
inc eax
mov ecx, eax
push edi
sub ecx, ebx
push ecx
push eax
call fcn.01001655
push ebx
call fcn.01001a88
test eax, eax
jne 0x10024c8
cmp dword [ebp - 0xc], 0
je 0x1002515
push dword [ebp - 4]
push esi
push ebx
call fcn.01001655
push 0x1001370
push ebx
call fcn.01001980
mov edi, eax
test edi, edi
je 0x1002515
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 0x100250f
mov dword [0x100c2a4], 1
push edi
call fcn.010019ae
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 0x1002532
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, 0x18
and dword [ebp - 0x14], 0
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 5
push 0x40
mov edi, eax
call esi
mov ebx, 0x104
push ebx
push 0x40
mov dword [ebp - 4], eax
call esi
push ebx
push 0x40
mov dword [ebp - 0xc], eax
call esi
cmp dword [ebp - 4], 0
mov dword [ebp - 0x10], eax
je 0x1002679
cmp dword [ebp - 0xc], 0
je 0x1002679
test eax, eax
je 0x1002679
mov esi, dword [sym.imp.USER32.dll_CharNextA]
push 0x2f
push edi
call dword [sym.imp.SHLWAPI.dll_StrChrIA]
test eax, eax
je 0x1002683
push eax
call esi
mov edi, eax
mov al, byte [edi]
cmp al, 0x6c
je 0x10025af
cmp al, 0x4c
jne 0x100260f
push edi
call esi
mov edi, eax
cmp byte [edi], 0x22
jne 0x100258f
push edi
call esi
push 4
mov edi, eax
push edi
push dword [ebp - 4]
call fcn.0100166f
and dword [ebp - 8], 0
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
movsx eax, byte [ecx + eax]
push eax
call dword [sym.imp.msvcrt.dll_isxdigit]
test eax, eax
pop ecx
je 0x100258f
inc dword [ebp - 8]
cmp dword [ebp - 8], 4
jl 0x10025cd
push 0x10
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_strtoul]
movzx eax, ax
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x100258f
and dword [ebp - 0x14], 0
jmp 0x100258f
cmp al, 0x66
je 0x100261b
cmp al, 0x46
jne 0x100258f
push edi
call esi
mov edi, eax
cmp byte [edi], 0x22
jne 0x100258f
push edi
call esi
mov edi, eax
push 0x22
push edi
call dword [sym.imp.SHLWAPI.dll_StrChrIA]
test eax, eax
mov dword [ebp - 0x18], eax
je 0x100258f
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [ebp - 0x18]
sub eax, edi
push eax
push edi
push dword [ebp - 0x10]
call fcn.0100166f
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push 0x1001380
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01001728
add esp, 0x14
jmp 0x100258f
mov dword [0x100c290], 0x228
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push dword [ebp - 0xc]
call esi
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp - 0x14]
test eax, eax
pop edi
pop esi
pop ebx
jne 0x10026a8
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
leave
ret 8
Function at 0x1002980
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 0x1002b45
test ebx, ebx
je 0x1002b45
cmp dword [ebp - 4], 0
je 0x1002b45
test eax, eax
je 0x1002b45
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x10013c4
push ebx
mov ebx, 0x1001380
push ebx
push esi
push dword [ebp - 4]
call fcn.01001728
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 0x10013b8
push esi
push dword [ebp - 4]
mov word [ecx], ax
mov dword [ebp - 0x10], 1
call fcn.01001728
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 0x1002b4f
mov eax, dword [ebp - 0xc]
add eax, 0x2c
push eax
push 0x10013c4
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1002b1c
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 0x1002aa9
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.01001728
add esp, 0x14
push dword [ebp - 4]
call edi
mov ecx, dword [ebp - 0x18]
mov word [ecx + 2], ax
jmp 0x1002b1c
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov dword [0x100c290], 0x228
jmp 0x1002b3a
mov eax, dword [ebp - 0xc]
add eax, 0x2c
push eax
push 0x10013c4
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1002b1c
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 0x1002aa9
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.01001728
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 0x1002abf
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 0x1002b4f
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
Function at 0x1002c55
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 8]
push eax
push 0x20019
xor esi, esi
push esi
push 0x10013d8
push 0x80000002
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1002cf5
push esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x1002cec
mov eax, dword [ebp - 4]
push edi
inc eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, esi
je 0x1002ce1
lea eax, [ebp - 4]
push eax
push edi
push esi
push esi
push 0x10013d0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1002cd8
push dword [ebp - 4]
push edi
push dword [ebp + 8]
call fcn.0100166f
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1002ceb
mov dword [0x100c290], 0x228
pop edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 8