joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a1f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
push eax
call fcn.0045e670
mov esi, dword [esp + 0x38]
mov ebx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], ebp
test ebx, ebx
je 0x45a340
test ecx, ecx
je 0x45a340
inc ecx
push ecx
call fcn.0046bf39
mov ebp, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov edx, ecx
mov esi, edi
mov edi, ebp
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004609d0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x45a269
mov byte [edi], 0
inc edi
lea eax, [esp + 0x1c]
push eax
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x45a32d
push 0x400
mov dword [esp + 0x18], 0x400
mov dword [esp + 0x1c], 1
call fcn.0046bf39
add esp, 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push esi
push edx
push 0
push edi
push eax
call ebx
test eax, eax
je 0x45a2f1
cmp eax, 0xea
jne 0x45a319
push esi
call fcn.0046bf62
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0046bf39
mov ecx, dword [esp + 0x24]
add esp, 8
lea edx, [esp + 0x14]
mov esi, eax
push edx
lea eax, [esp + 0x1c]
push esi
push eax
push 0
push edi
push ecx
call ebx
test eax, eax
jne 0x45a2bc
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x45a2ff
cmp eax, 2
jne 0x45a319
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
call fcn.0045e5e0
add esp, 8
mov dword [esp + 0x10], eax
push esi
call fcn.0046bf62
mov edx, dword [esp + 0x20]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.0046bf62
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
jne 0x45a36e
mov ebp, eax
mov eax, dword [esp + 0x48]
test eax, eax
je 0x45a37a
mov edx, dword [esp + 0x40]
test edx, edx
je 0x45a37a
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call fcn.0045e5e0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x45a440
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x28]
sub esp, 0x18
push ebx
push ebp
xor ebx, ebx
xor ebp, ebp
cmp eax, 0x80000301
push edi
ja 0x45a4c0
je 0x45a4b1
cmp eax, 0x80000101
ja 0x45a4aa
je 0x45a4b1
cmp eax, reloc.WS2_32.dll_connect
je 0x45a48d
cmp eax, 0x80000005
jne 0x45a4d5
mov eax, dword [esp + 0x44]
mov dword [esp + 0xc], 3
test eax, eax
je 0x45a51b
mov ebx, dword [eax + 4]
lea ebp, [eax + 8]
jmp 0x45a51b
mov ebp, dword [esp + 0x44]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0xc], 1
mov ebx, ecx
inc ebx
jmp 0x45a51b
cmp eax, 0x80000201
jne 0x45a4d5
mov ebx, 4
lea ebp, [esp + 0x44]
mov dword [esp + 0xc], ebx
jmp 0x45a51b
cmp eax, 0x80000401
je 0x45a506
cmp eax, 0x80000501
je 0x45a4f2
cmp eax, 0x80000601
je 0x45a4de
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
fld qword [esp + 0x44]
mov ebx, 4
mov dword [esp + 0xc], ebx
call fcn.004608d0
jmp 0x45a513
fld dword [esp + 0x44]
mov ebx, 4
mov dword [esp + 0xc], ebx
call fcn.004608d0
jmp 0x45a513
mov eax, dword [esp + 0x44]
mov ebx, 4
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
lea ebp, [esp + 0x10]
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0045e670
mov edi, dword [esp + 0x3c]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [esp + 0x20], edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], 0
test edx, edx
je 0x45a5f6
test ecx, ecx
je 0x45a5f6
inc ecx
push esi
push ecx
call fcn.0046bf39
mov edi, dword [esp + 0x40]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x2c], edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004609d0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x45a598
mov byte [esi], 0
inc esi
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x18]
push 0
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x45a5ec
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push ebx
push ebp
push eax
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x45a5e1
mov dword [esp + 0x1c], 1
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.0046bf62
add esp, 4
pop esi
mov eax, dword [esp + 0x18]
pop edi
pop ebp
pop ebx
add esp, 0x18
ret

Function at 0x45a610
Capabilities:
Get file attributes

Disassembly:
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
ret
Function at 0x45acf0
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 8]
push esi
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x45ad18
pop edi
or eax, eax
pop esi
ret
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], 0xffffffff
jne 0x45ad3a
pop edi
or eax, 0xffffffff
pop esi
ret
mov eax, edi
pop edi
pop esi
ret

Function at 0x45ad40
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x144
push ebx
mov ebx, dword [esp + 0x14c]
push ebp
mov ebp, dword [esp + 0x15c]
push esi
push edi
mov esi, dword [ebp]
mov dword [esp + 0x10], 0
test ebx, ebx
je 0x45adcb
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x45adcb
test esi, esi
je 0x45ad85
cmp esi, 0xffffffff
je 0x45ad85
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp], esi
je 0x45ae11
mov eax, dword [esp + 0x160]
test eax, eax
je 0x45adb4
mov ecx, dword [esp + 0x14]
and ecx, 0x10
cmp cl, 0x10
je 0x45adcb
jmp 0x45adc3
mov edx, dword [esp + 0x15c]
mov eax, dword [esp + 0x14]
test edx, eax
je 0x45adcb
mov dword [esp + 0x10], 1
test esi, esi
je 0x45ae11
cmp esi, 0xffffffff
je 0x45ae11
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x45ae48
mov eax, dword [esp + 0x160]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
lea eax, [esp + 0x14]
push eax
push esi
je 0x45ae1e
call edi
test eax, eax
je 0x45ae11
mov ecx, dword [esp + 0x14]
and ecx, 0x10
cmp cl, 0x10
jne 0x45ae48
lea edx, [esp + 0x14]
push edx
push esi
call edi
test eax, eax
jne 0x45adf9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x144
ret
call edi
test eax, eax
je 0x45ae11
mov ebx, dword [esp + 0x15c]
test dword [esp + 0x14], ebx
jne 0x45ae48
lea ecx, [esp + 0x14]
push ecx
push esi
call edi
test eax, eax
jne 0x45ae2b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00459b80
mov edx, eax
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret

Function at 0x45aeb0
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret
Function at 0x45b170
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x45b1d9
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.00459b80
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x45b1e0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
test ebx, ebx
push edi
jne 0x45b1f3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push ebx
call fcn.0045ee70
add esp, 4
test eax, eax
jne 0x45b205
pop edi
pop esi
pop ebp
pop ebx
ret
mov edi, dword [esp + 0x24]
test edi, edi
jg 0x45b214
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [ebx]
xor esi, esi
cmp eax, 1
jne 0x45b26b
mov ebx, dword [ebx + 4]
push edi
call fcn.0046bf39
add esp, 4
mov ebp, eax
lea eax, [esp + 0x18]
push esi
push eax
push edi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45b24e
push ebp
call fcn.0046bf62
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x18]
push ecx
push ebp
call fcn.0045e7e0
push ebp
mov esi, eax
call fcn.0046bf62
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x45b2ad
mov ebx, dword [ebx + 4]
lea edx, [edi + 8]
push edx
call fcn.00459b80
mov esi, eax
add esp, 4
lea ecx, [esi + 8]
mov dword [esi], 1
mov dword [esi + 4], edi
mov eax, dword [ebx]
push edi
push ecx
mov ecx, ebx
call dword [eax + 0x20]
test eax, eax
jne 0x45b2aa
push esi
call fcn.00459c10
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov dword [esi + 4], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x45b320
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x45b333
xor eax, eax
pop esi
add esp, 8
ret
push esi
call fcn.0045ee70
add esp, 4
test eax, eax
jne 0x45b345
pop esi
add esp, 8
ret
mov eax, dword [esi]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push edi
mov dword [esp + 0x10], 0
jne 0x45b3bc
mov eax, dword [esp + 0x1c]
mov edi, dword [esi + 4]
cmp eax, ebx
mov dword [esp + 0x10], ebx
jle 0x45b3ee
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x45b3a8
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x45b378
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
pop edi
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
pop ebp
pop ebx
pop esi
add esp, 8
ret
cmp eax, 2
jne 0x45b3ee
mov eax, dword [esp + 0x1c]
mov esi, dword [esi + 4]
cmp eax, ebx
mov dword [esp + 0x10], ebx
jle 0x45b3ee
lea edi, [esp + 0x2c]
lea ebx, [eax - 1]
mov eax, dword [edi]
mov edx, dword [esi]
mov ecx, dword [eax + 4]
add eax, 8
push ecx
push eax
mov ecx, esi
call dword [edx + 0x24]
add edi, 0xc
dec ebx
jne 0x45b3d7
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret

Function at 0x45b400
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x1c]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x45b42a
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x45b42a
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
ret

Function at 0x45c7d0
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.0046bf39
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x45c83a
push esi
lea edi, [eax + 0x400]
call fcn.0046bf62
push edi
call fcn.0046bf39
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x45c80a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x45c856
push ecx
push esi
call fcn.0045e5e0
add esp, 8
mov ebx, eax
push esi
call fcn.0046bf62
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x45e1b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x45e242
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x45e234
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x45e22c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x45e1f5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x46e906
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 0x46e948
call fcn.00471c60
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46e948
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46e93f
xor eax, eax
jmp 0x46e950
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046e956
pop edi
pop esi
pop ebx
ret 4
Function at 0x46f8e6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x473508
call fcn.00461880
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.00471c60
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x46f925
call fcn.00471c60
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x46f933
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x46f941
or eax, 0xffffffff
jmp 0x46fa29
mov ecx, esi
call fcn.0046f85c
mov dword [ebp - 0x14], eax
call fcn.0046cf4e
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x46f978
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x46f978
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0046cf02
push dword [ebp - 0x14]
call fcn.0046ca34
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0046f5f4
cmp eax, edi
je 0x46f9eb
test byte [esi + 0x24], 0x10
je 0x46f9b9
push 4
mov ecx, esi
pop ebx
call fcn.0046c434
test ah, 1
je 0x46f9b1
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0046ea58
cmp dword [esi + 0x1c], edi
je 0x46f9eb
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0046c468
jmp 0x46f9eb
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x46f9ff
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x46fa18
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x46fa18
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0046f896
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x4717d2
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 0x471800
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47181e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00471738
jmp 0x47181e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47181e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00471738
test edi, edi
mov eax, edi
jne 0x471808
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10001057
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov al, byte [ecx]
and dword [esp + 0x14], 0
push ebx
push ebp
mov byte [edx], al
lea eax, [edx + 1]
push esi
mov dword [esp + 0x18], eax
push edi
mov dword [esp + 0x14], edx
mov esi, dword [esp + 0x14]
lea eax, [ecx + 1]
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
call entry0
test eax, eax
je 0x100011b0
lea ecx, [esp + 0x18]
call entry0
lea ecx, [esp + 0x18]
test eax, eax
je 0x1000111f
call entry0
test eax, eax
je 0x100010e1
push 4
xor edi, edi
pop ebx
lea ecx, [esp + 0x18]
call entry0
lea edi, [eax + edi*2]
dec ebx
jne 0x100010b7
mov edx, dword [esp + 0x1c]
test edi, edi
je 0x100010d8
mov eax, edx
sub eax, edi
mov al, byte [eax]
mov byte [edx], al
jmp 0x100010db
mov byte [edx], 0
inc edx
jmp 0x100011c2
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
movzx esi, byte [eax]
mov ecx, esi
and ecx, 1
inc eax
add ecx, 2
shr esi, 1
mov dword [esp + 0x18], eax
je 0x10001117
test ecx, ecx
je 0x100011ab
mov edi, edx
sub edi, esi
mov al, byte [edi]
mov byte [edx], al
inc edx
inc edi
dec ecx
jne 0x10001109
jmp 0x100011a7
xor ebp, ebp
inc ebp
jmp 0x100011ab
call fcn.10001036
test edi, edi
jne 0x10001154
cmp eax, 2
jne 0x1000114f
lea ecx, [esp + 0x18]
call fcn.10001036
mov edx, dword [esp + 0x1c]
mov edi, eax
test edi, edi
je 0x100011ab
mov ecx, edx
sub ecx, esi
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
dec edi
jne 0x10001144
jmp 0x100011a7
sub eax, 3
jmp 0x10001157
sub eax, 2
mov ecx, dword [esp + 0x18]
mov esi, eax
movzx eax, byte [ecx]
shl esi, 8
add esi, eax
inc ecx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
call fcn.10001036
mov ecx, eax
cmp esi, 0x7d00
jb 0x1000117e
inc ecx
cmp esi, 0x500
jb 0x10001187
inc ecx
cmp esi, 0x80
jae 0x10001192
add ecx, 2
mov edx, dword [esp + 0x1c]
test ecx, ecx
je 0x100011ab
mov edi, edx
sub edi, esi
mov al, byte [edi]
mov byte [edx], al
inc edx
inc edi
dec ecx
jne 0x1000119e
mov dword [esp + 0x1c], edx
xor edi, edi
inc edi
jmp 0x100011c8
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
mov dword [esp + 0x18], ecx
xor edi, edi
mov dword [esp + 0x1c], edx
test ebp, ebp
je 0x10001087
sub edx, dword [esp + 0x14]
pop edi
mov eax, edx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002962
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
push str.nspr4.dll
mov edi, ecx
call esi
mov ebx, eax
test ebx, ebx
jne 0x1000298b
push str.nss3.dll
call esi
mov ebx, eax
test ebx, ebx
je 0x10002a56
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.PR_Read
push ebx
call ebp
lea ecx, [edi + 4]
mov dword [ecx], eax
test eax, eax
je 0x100029b9
lea esi, [edi + 8]
push esi
mov edx, 0x1000291a
call fcn.10003d13
mov eax, dword [esi]
add eax, 4
mov dword [edi + 0xc], eax
push str.PR_Write
push ebx
call ebp
lea ecx, [edi + 0x10]
mov dword [ecx], eax
test eax, eax
je 0x100029e0
lea esi, [edi + 0x14]
push esi
mov edx, 0x10002922
call fcn.10003d13
mov eax, dword [esi]
add eax, 4
mov dword [edi + 0x18], eax
push str.PR_Close
push ebx
call ebp
lea ecx, [edi + 0x1c]
mov dword [ecx], eax
test eax, eax
je 0x10002a07
lea esi, [edi + 0x20]
push esi
mov edx, 0x1000292a
call fcn.10003d13
mov eax, dword [esi]
add eax, 4
mov dword [edi + 0x24], eax
push str.PR_Poll
push ebx
call ebp
lea ecx, [edi + 0x28]
mov dword [ecx], eax
test eax, eax
je 0x10002a2e
lea esi, [edi + 0x2c]
push esi
mov edx, 0x1000293a
call fcn.10003d13
mov eax, dword [esi]
add eax, 4
mov dword [edi + 0x30], eax
push str.PR_Available
push ebx
call ebp
lea ecx, [edi + 0x34]
pop ebp
mov dword [ecx], eax
test eax, eax
je 0x10002a56
lea esi, [edi + 0x38]
push esi
mov edx, 0x10002952
call fcn.10003d13
mov eax, dword [esi]
add eax, 4
mov dword [edi + 0x3c], eax
pop edi
pop esi
pop ebx
ret

Function at 0x10002c9a
Capabilities:
Check if file exists

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x800
push ebx
push ebp
mov ebx, ecx
push edi
lea ecx, [esp + 0xc]
call fcn.1000ad09
mov ecx, dword [esp + 0x810]
call fcn.1000ad26
lea edi, [esp + 0xc]
mov edx, str.Temp.exe
lea edi, [edi + eax*2]
mov ecx, edi
call fcn.1000ad09
xor ebp, ebp
push ebp
push ebp
push 3
push ebp
push 1
push 0x80000000
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x10002d42
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x10002d49
push esi
push 0x14
pop ecx
call fcn.1000ad8b
mov esi, eax
test esi, esi
je 0x10002d1d
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov dword [esi], 0x1000d67c
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], ebp
jmp 0x10002d1f
mov esi, ebp
mov ecx, dword [esp + 0x824]
push esi
call fcn.1000aed5
lea ecx, [esi + 0xc]
lea edx, [esp + 0x10]
call fcn.1000aefa
mov dword [esi + 0x10], 1
pop esi
jmp 0x10002d49
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x820]
xor eax, eax
push dword [esp + 0x820]
mov word [edi], ax
push dword [esp + 0x820]
lea eax, [esp + 0x18]
push eax
mov ecx, ebx
call fcn.10002d7b
pop edi
pop ebp
pop ebx
add esp, 0x800
ret 0x14
Function at 0x10002d7b
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], ecx
mov ecx, edi
call fcn.1000ad26
lea eax, [edi + eax*2]
mov edx, 0x1000d37c
mov ecx, eax
mov dword [esp + 0x10], eax
call fcn.1000ad09
push 0x250
lea eax, [esp + 0x1c]
push 0
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10002e5d
mov esi, dword [ebp + 0x14]
push 0x2e
pop eax
cmp word [esp + 0x44], ax
jne 0x10002dfa
cmp word [esp + 0x46], 0
je 0x10002e43
cmp word [esp + 0x46], ax
jne 0x10002dfa
cmp word [esp + 0x48], 0
je 0x10002e43
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x44]
call fcn.1000ad09
test byte [esp + 0x18], 0x10
je 0x10002e2f
mov ecx, dword [esp + 0x10]
mov edx, 0x1000d384
call fcn.1000ad37
mov ecx, dword [esp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.10002d7b
jmp 0x10002e3a
push esi
push ecx
push dword [ebp + 0xc]
push edi
call fcn.10002e66
cmp dword [esi + 8], 0x3e8
je 0x10002e56
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x10002ddc
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10