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

Disassembly:
push ebp
lea ebp, [esp - 0x204]
sub esp, 0x204
push 0xffffffffffffffff
push 0x4dd8ed
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x515080]
xor eax, ebp
mov dword [ebp + 0x200], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0x20c]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
mov edi, dword [ebx + 4]
push ecx
or edi, 0x2001f
mov dword [ebp - 0x20], 0
push edi
push 0
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [ebp - 0x18]
test esi, esi
jne 0x47cc5f
test eax, eax
je 0x47cbc1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x20]
and edi, 0x300
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
test esi, esi
jne 0x47cc5f
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0x100
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp]
push ecx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x47cc37
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x18]
call fcn.0047cb20
mov esi, eax
test esi, esi
jne 0x47cc5f
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0x100
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp]
push eax
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x47cc01
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x47cc4c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], 0
push dword [ebp - 0x24]
mov ecx, ebx
mov dword [ebp - 0x14], 0
call fcn.0047ccb0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x47cc7b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], 0
mov eax, esi
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x200]
xor ecx, ebp
call fcn.004a1cf0
lea esp, [ebp + 0x204]
pop ebp
ret 4
Function at 0x47db90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x4dd995
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x515080]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x410]
mov ebx, dword [ebp + 0x414]
mov eax, dword [ebp + 0x418]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], 0
mov dword [ebp], 0
mov byte [ebp - 4], 1
push 0x60
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
jne 0x47dc37
push 2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x18], eax
test esi, esi
jne 0x47dc37
call fcn.0047bf30
mov edi, eax
jmp 0x47dd3d
push dword [ebp - 0x14]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x47dc52
call fcn.0047bf30
jmp 0x47dd30
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
jne 0x47dc6d
call fcn.0047bf30
jmp 0x47dd30
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x1c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x47dc8b
mov edi, 0x8007000e
jmp 0x47dd32
mov byte [ebp - 4], 2
mov ecx, 2
mul ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
test edx, edx
ja 0x47dd7f
jb 0x47dcaf
cmp eax, 0xffffffff
ja 0x47dd7f
cmp eax, 0x400
jbe 0x47dcc8
push eax
lea ecx, [ebp]
call fcn.0040bac0
mov dword [ebp - 4], 1
jmp 0x47dced
lea eax, [ebp + 4]
mov dword [ebp], eax
mov dword [ebp - 4], 1
jmp 0x47dced
mov eax, dword [ebp]
test eax, eax
jne 0x47dcfb
mov edi, 0x8007000e
jmp 0x47dd32
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x47dd16
call fcn.0047bf30
jmp 0x47dd30
xor edx, edx
mov eax, dword [ebp]
mov word [eax + ecx*2], dx
push dword [ebp + 0x41c]
push dword [ebp]
lea ecx, [ebp - 0x24]
call fcn.0047da30
mov edi, eax
test esi, esi
je 0x47dd3d
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x47dd51
lea ecx, [ebp]
call fcn.0040ba80
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.004a1cf0
lea esp, [ebp + 0x408]
pop ebp
ret 0x10
push 0x80070216
call fcn.00402720
int3
Function at 0x4815a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0xa50]
sub esp, 0xa50
push 0xffffffffffffffff
push 0x4de62a
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x515080]
xor eax, ebp
mov dword [ebp + 0xa4c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x1c], ecx
push 0
push 2
mov dword [ebp - 0x30], esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x2c], 0x4ed624
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], 0
cmp ebx, 0xffffffff
jne 0x481611
mov byte [ebp - 0xd], 0
or ebx, eax
jmp 0x48174d
push 0x228
lea eax, [ebp + 4]
push 0
push eax
call fcn.004a3cd0
add esp, 0xc
mov dword [ebp], 0x22c
lea eax, [ebp]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x481745
nop
push dword [ebp + 8]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 0x24], 0x4ed624
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], 0x410
test edi, edi
je 0x481715
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x22c]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
test eax, eax
je 0x481715
lea eax, [ebp + 0x22c]
push eax
mov eax, dword [ebp - 0x1c]
push dword [eax]
call fcn.004ab973
add esp, 8
test eax, eax
jne 0x481715
mov ebx, dword [esi + 4]
mov ecx, dword [esi + 8]
cmp ebx, ecx
jne 0x4816f0
mov edx, dword [esi]
lea eax, [ebp + 8]
cmp eax, edx
jb 0x4816c6
lea eax, [edx + ecx*4]
lea edx, [ebp + 8]
cmp edx, eax
mov edx, dword [esi]
jb 0x481793
test ecx, ecx
jne 0x4816cf
lea ebx, [ecx + 1]
jmp 0x4816db
add ebx, ebx
js 0x481712
cmp ebx, 0x1fffffff
ja 0x481712
push 4
push ebx
push edx
call fcn.004abb7c
add esp, 0xc
test eax, eax
je 0x481712
mov dword [esi + 8], ebx
mov dword [esi], eax
mov ecx, dword [esi + 4]
mov dword [ebp - 0x34], ecx
mov eax, dword [esi]
lea ecx, [eax + ecx*4]
mov dword [ebp - 0x38], ecx
mov byte [ebp - 4], 2
test ecx, ecx
je 0x48170b
mov eax, dword [ebp + 8]
mov dword [ecx], eax
mov byte [ebp - 4], 1
inc dword [esi + 4]
mov ebx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
mov dword [ebp - 0x24], 0x4ed624
test edi, edi
je 0x481732
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], 0
lea eax, [ebp]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x481640
cmp dword [esi + 4], 0
setg byte [ebp - 0xd]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x2c], 0x4ed624
test ebx, ebx
je 0x48176d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x28], 0
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa4c]
xor ecx, ebp
call fcn.004a1cf0
lea esp, [ebp + 0xa50]
pop ebp
ret
push 0x80004005
call fcn.00402720
int3
Function at 0x481d60
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 8
push esi
push edi
mov edi, ecx
xor esi, esi
nop dword [eax]
lea eax, [esp + 8]
mov dword [esp + 8], edi
push eax
push 0x483950
mov dword [esp + 0x14], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x481da8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x14
jl 0x481d70
pop edi
pop esi
add esp, 8
ret
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
pop esi
add esp, 8
ret
Function at 0x483120
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4deb25
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x515080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], edx
push 0x22
push 0
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
mov dword [ebp - 0x28], 0x4ef1f4
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x483255
push 0xa
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x483255
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
call fcn.004046f0
mov dword [ebp - 0x10], eax
test eax, eax
je 0x483287
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4e2514]
mov ecx, dword [ebp - 0x10]
call esi
lea esi, [eax + 0x10]
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x48322d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x48322d
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x48322d
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.00437d50
mov byte [ebp - 4], 3
lea eax, [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x18]
push eax
call fcn.0041fcf0
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x48322d
mov ebx, dword [ecx]
push ecx
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x4e2514]
mov ecx, ebx
call edi
mov ebx, dword [ebp - 0x1c]
mov byte [ebp - 4], 0
lea ecx, [esi - 0x10]
or esi, 0xffffffff
lock xadd dword [ecx + 0xc], esi
dec esi
test esi, esi
jg 0x483255
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x28], 0x4ef1f4
test ebx, ebx
je 0x483275
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402720
int3
Function at 0x487690
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4df254
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x515080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebx], 0x4f5f94
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov byte [ebp - 4], 1
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov byte [ebp - 4], 2
lea edi, [ebx + 0x30]
mov eax, dword [ebp + 0x10]
lea esi, [edi + 4]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], edi
mov dword [edi], 0x4f319c
mov dword [ebp - 0x18], esi
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.00402750
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 5
mov dword [ebx + 0x38], 0x4f3da8
mov dword [ebx + 0x3c], edi
mov dword [ebx + 0x40], 0
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x488890
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4df515
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x515080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], 0x4f3184
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], 0x4f319c
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.00402750
add eax, 0x10
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 2
lea eax, [ebp - 0x28]
cmp byte [ebx + 0x10], 0
mov dword [ebp - 0x34], 0x4f3da8
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0
je 0x4889c5
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push dword [ebp - 0x24]
mov dword [ebp - 0x18], 0xfeff
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x20], 0x4ed624
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 3
cmp esi, 0xffffffff
jne 0x488956
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x20], 0x4ed624
push esi
jmp 0x48898f
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 2
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4889a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 2
mov dword [ebp - 0x20], 0x4ed624
test esi, esi
je 0x48899c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0
test edi, edi
je 0x4889c5
mov ebx, dword [ebp - 0x10]
jmp 0x488a4a
mov byte [ebp - 4], 2
mov dword [ebp - 0x20], 0x4ed624
test esi, esi
je 0x4889c5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0
mov eax, dword [ebx + 4]
xor edi, edi
mov dword [ebp - 0x10], 0
test eax, eax
jle 0x488a36
xor esi, esi
test esi, esi
js 0x488a9b
cmp edi, eax
jge 0x488a9b
mov ecx, dword [ebx]
add ecx, esi
cmp byte [ecx + 0x15c], 0
je 0x488a15
cmp byte [ebp + 0xc], 0
je 0x488a03
test byte [ecx + 0x94], 1
je 0x488a15
lea eax, [ebp - 0x34]
push eax
call fcn.004685c0
mov ecx, dword [ebp - 0x10]
inc ecx
mov dword [ebp - 0x10], ecx
jmp 0x488a18
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebx + 4]
inc edi
add esi, 0x16c
cmp edi, eax
jl 0x4889d7
test ecx, ecx
jle 0x488a36
mov ecx, dword [ebx + 0xc]
lea eax, [ebp - 0x34]
push eax
call fcn.0044df10
mov ecx, dword [ebx + 0xc]
lea eax, [ebp - 0x34]
push eax
lea ecx, [ecx + 0xec]
call fcn.00444f90
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x488a85
mov edi, dword [ecx]
push ecx
mov edx, dword [edi]
mov esi, dword [edx + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x8000000b
call fcn.00402720
int3
Function at 0x4a1bfd
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.004b3bf9
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 0x4a1c3c
sub eax, 1
je 0x4a1c37
sub eax, 1
je 0x4a1c33
xor eax, eax
leave
ret
push 3
jmp 0x4a1c3e
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret
Function at 0x4ba20e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004a2de0
mov eax, dword [0x515080]
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.004b8746
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4ba250
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4ba3ac
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004c71b0
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 + 0x517808]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004b9da3
mov ecx, dword [esi*4 + 0x517808]
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 0x4ba3a5
cmp eax, dword [edi + ecx + 0x24]
jne 0x4ba3a5
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 0x4ba3a5
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004b9da3
add esp, 0x14
test edx, edx
jl 0x4ba3a5
jg 0x4ba31b
test eax, eax
jb 0x4ba3a5
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4ba3a5
jl 0x4ba335
cmp dword [ebp - 0x1008], eax
ja 0x4ba3a5
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4ba353
test ebx, ebx
je 0x4ba38c
cmp ecx, edi
jae 0x4ba38c
mov al, byte [ecx]
cmp al, 0xd
jne 0x4ba36d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4ba379
cmp byte [ecx + 1], 0xa
jne 0x4ba379
inc ecx
jmp 0x4ba379
movzx eax, al
movsx eax, byte [eax + 0x515a08]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4ba353
cmp edx, ebx
jne 0x4ba353
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4ba3aa
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004a1cf0
leave
ret

Function at 0x4ba7a9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ba44b

Function at 0x4ba7b4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ba5da

Function at 0x4bb084
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4e9510
push 0x4e9508
push str.FlsAlloc
push 0x1e
call fcn.004baef1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4bb0b8
push dword [ebp + 8]
mov ecx, esi
call dword [0x4e2514]
call esi
jmp 0x4bb0be
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x4bb102
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4e9520
push 0x4e9518
push str.FlsGetValue
push 0x20
call fcn.004baef1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4bb139
push dword [ebp + 8]
mov ecx, esi
call dword [0x4e2514]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4bdf24
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x515080]
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 0x4bdf6f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004be0c3
test al, al
jne 0x4bdf69
sub edx, 2
cmp edx, edi
jne 0x4bdf4f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4bdf91
lea eax, [edi + 2]
cmp edx, eax
je 0x4bdf91
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004bde70
add esp, 0x10
jmp 0x4be08b
push esi
lea ecx, [ebp - 0x255]
call fcn.004be0c3
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 0x4bdfd4
push dword [ebp - 0x25c]
jmp 0x4bdf81
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 0x4be011
cmp word [ebp - 0x226], 0
je 0x4be032
cmp word [ebp - 0x226], ax
jne 0x4be011
cmp word [ebp - 0x224], 0
je 0x4be032
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004bde70
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4be07e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4bdfeb
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4be066
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4be08b
push 0x4bdca0
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004c50e0
add esp, 0x10
jmp 0x4be05b
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.004a1cf0
leave
ret

Function at 0x4be9c0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4be9d1
pop esi
ret
push ebx
push edi
push esi
call fcn.004be989
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004b77e4
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4be9f9
push ebx
push esi
push edi
call fcn.004a3750
add esp, 0xc
push 0
call fcn.004b77aa
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x4bedbd
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004bea0e

Function at 0x4c3430
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 + 0x517808]
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 0x4c3470
cmp byte [ebx], 0xa
jne 0x4c3470
or byte [eax + edi + 0x28], 4
jmp 0x4c3475
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4c3573
mov al, byte [edx]
cmp al, 0x1a
je 0x4c3555
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4c34a4
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4c34c9
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4c34d3
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 0x4c3486
jmp 0x4c3573
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 0x4c3550
cmp dword [ebp - 0xc], 0
je 0x4c3550
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x517808]
test byte [eax + edi + 0x28], 0x48
je 0x4c352a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4c3515
mov byte [esi], dl
jmp 0x4c3526
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x517808]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4c3573
cmp byte [ebp - 1], 0xa
jne 0x4c3539
cmp esi, ebx
jne 0x4c3539
mov byte [esi], 0xa
jmp 0x4c3572
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004b9dc1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4c3573
mov byte [esi], 0xd
jmp 0x4c3572
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x517808]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4c356f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4c3573
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret