joyce8/EMBER2024-capa huggingface dataset:
Function at 0x492d20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x868
mov eax, dword [0x5010c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
jne 0x492d57
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049fb4b
mov esp, ebp
pop ebp
ret 0x14
push ecx
call fcn.0040adb0
add esp, 4
test al, al
je 0x492e3a
push str.runas
xorps xmm0, xmm0
lea eax, [ebp - 0x24]
push 0x10
push eax
movups xmmword [ebp - 0x24], xmm0
movups xmmword [ebp - 0x14], xmm0
call fcn.004b5d9b
add esp, 0xc
mov dword [ebp - 0x858], 0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x848], 0
xorps xmm0, xmm0
mov dword [ebp - 0x854], eax
lea eax, [ebp - 0x860]
movlpd qword [ebp - 0x840], xmm0
push eax
movlpd qword [ebp - 0x838], xmm0
movlpd qword [ebp - 0x830], xmm0
mov dword [ebp - 0x828], 0
mov dword [ebp - 0x860], 0x3c
mov dword [ebp - 0x850], esi
mov dword [ebp - 0x84c], edi
mov dword [ebp - 0x844], 0
mov dword [ebp - 0x85c], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x492d42
cmp dword [ebp + 0x10], 0
je 0x492e29
push dword [ebp + 0x14]
push dword [ebp - 0x828]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push dword [ebp - 0x828]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x828]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x492f3e
push 0x800
lea eax, [ebp - 0x824]
push 0
push eax
call fcn.004a15c0
add esp, 0xc
lea eax, [ebp - 0x824]
test edi, edi
je 0x492e6d
push edi
push esi
push str._s__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x492e7d
push esi
push 0x4e9080
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x868], 0x44
mov word [ebp - 0x826], ax
xorps xmm0, xmm0
mov ax, word [ebp + 0x18]
mov word [ebp - 0x838], ax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x868]
movlpd qword [ebp - 0x864], xmm0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x824]
movlpd qword [ebp - 0x85c], xmm0
push eax
push 0
movlpd qword [ebp - 0x854], xmm0
movlpd qword [ebp - 0x84c], xmm0
movlpd qword [ebp - 0x844], xmm0
movlpd qword [ebp - 0x836], xmm0
movlpd qword [ebp - 0x82e], xmm0
movups xmmword [ebp - 0x14], xmm0
mov dword [ebp - 0x83c], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x492d42
cmp dword [ebp + 0x10], 0
je 0x492f2e
push dword [ebp + 0x14]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049fb4b
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4961b0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8177
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x5010c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 0x1c], 0
mov dword [ebp - 0x10], 1
jne 0x496365
mov esi, dword [ebp + 0xc]
cmp esi, 1
jne 0x496331
push 0x6b
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov edi, eax
mov eax, dword [ebp - 0x14]
push edi
add eax, 4
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x80
push dword [eax]
mov dword [ebp + 0x1c], eax
call esi
mov eax, dword [ebp + 0x1c]
push edi
push 0
push 0x80
push dword [eax]
call esi
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x14]
add esi, 0xffffffcc
push dword [ebp + 0x10]
mov ecx, esi
push 1
call fcn.0040c880
sub esp, 0x10
xorps xmm0, xmm0
mov eax, esp
mov ecx, esi
movups xmmword [eax], xmm0
call fcn.0040dc10
push 0x168
call fcn.0049f7ce
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x496284
mov ecx, eax
call fcn.00415160
mov edi, eax
jmp 0x496286
xor edi, edi
mov dword [ebp - 4], 0xffffffff
cmp dword [esi + 0x118], edi
je 0x4962b5
test edi, edi
je 0x49629f
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov eax, dword [esi + 0x118]
mov dword [esi + 0x118], edi
test eax, eax
je 0x4962b5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esi + 0x118]
push esi
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [esi + 0x118]
push 4
call fcn.00406b70
mov ecx, dword [esi + 0x118]
push 2
call fcn.00406b90
push 0
mov ecx, esi
call fcn.00496660
mov ecx, dword [ebp + 0x1c]
push 0
call fcn.00410170
cmp dword [ebp - 0x10], 0
mov esi, dword [ebp + 0x18]
mov dword [esi], 0
jne 0x49634d
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x14]
push 0
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call fcn.0040af70
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
cmp esi, 2
jne 0x496300
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
cmp dword [ebp - 0x10], 0
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
je 0x496303
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
Function at 0x496b70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d82bb
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x5010c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x224], ecx
mov eax, dword [ecx]
mov eax, dword [eax + 0xc8]
call eax
mov dword [ebp - 0x248], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x244], 0
push eax
push 0x11
movups xmmword [ebp - 0x240], xmm0
push 0
movq qword [ebp - 0x230], xmm0
mov dword [ebp - 0x238], 0x51
mov dword [ebp - 0x23c], 0x4daf38
mov dword [ebp - 0x21c], 0
call sub.SHELL32.dll_SHGetSpecialFolderLocation
mov ecx, dword [ebp - 0x244]
test eax, eax
lea eax, [ebp - 0x248]
cmovns ecx, dword [ebp - 0x21c]
push eax
mov dword [ebp - 0x244], ecx
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov esi, eax
test esi, esi
je 0x496cde
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x496cde
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
call fcn.00404ca0
mov eax, dword [ebp - 0x220]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x24c], esp
mov esi, esp
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x228], esi
call fcn.00404680
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov byte [ebp - 4], 1
call fcn.00494f10
mov byte [ebp - 4], 0
lea ecx, [eax + 4]
call fcn.00458d50
push ecx
push esp
call fcn.00494f10
lea ecx, [eax + 4]
call fcn.00458970
mov ecx, dword [ebp - 0x224]
mov ecx, dword [ecx + 0x18c]
call fcn.00423050
mov edx, dword [ebp - 0x220]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x496cde
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x496cef
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049fb4b
mov esp, ebp
pop ebp
ret 4
Function at 0x49b020
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x5010c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, ecx
mov dword [ebp - 0x210], 0
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x218]
push edi
push edx
mov edi, dword [eax + 4]
or edi, 0x2001f
mov dword [ebp - 0x220], eax
push edi
push 0
push ecx
push dword [eax]
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x20c], 0
mov dword [ebp - 0x208], 0
mov dword [ebp - 0x218], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [ebp - 0x210]
test esi, esi
jne 0x49b181
xor esi, esi
test eax, eax
je 0x49b0ac
push eax
call ebx
mov esi, eax
mov eax, dword [ebp - 0x218]
and edi, 0x300
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x20c], edi
test esi, esi
jne 0x49b181
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [ebp - 0x228]
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x214], 0x100
push ecx
lea ecx, [ebp - 0x204]
push ecx
push esi
push eax
call edi
test eax, eax
jne 0x49b147
nop dword [eax]
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x210]
call fcn.0049b020
mov esi, eax
test esi, esi
jne 0x49b17b
lea eax, [ebp - 0x228]
mov dword [ebp - 0x214], 0x100
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x210]
call edi
test eax, eax
je 0x49b100
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x49b15e
push eax
call ebx
mov dword [ebp - 0x210], 0
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x220]
mov dword [ebp - 0x20c], 0
call fcn.0045cfd0
mov esi, eax
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x49b188
push eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049fb4b
mov esp, ebp
pop ebp
ret 4
Function at 0x49b540
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d889b
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x5010c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x49b5ec
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x49b5ec
call fcn.00487d60
mov esi, eax
jmp 0x49b6dc
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x49b60f
call fcn.00487d60
jmp 0x49b6cf
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x49b62d
call fcn.00487d60
jmp 0x49b6cf
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x49b64e
mov esi, 0x8007000e
jmp 0x49b6d1
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.004995a0
jmp 0x49b678
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x49b68f
mov esi, 0x8007000e
jmp 0x49b6d1
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x49b6af
call fcn.00487d60
jmp 0x49b6cf
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.0049b3a0
mov esi, eax
test edi, edi
je 0x49b6dc
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x49b6f5
lea ecx, [ebp - 0x418]
call fcn.00499b30
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049fb4b
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4a05b0
Capabilities:
Parse pe header

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

Function at 0x4b5424
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0049fe60
mov eax, dword [0x5010c0]
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.004b5d74
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4b5466
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4b55c2
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004ccb50
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 + 0x505700]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004bea00
mov ecx, dword [esi*4 + 0x505700]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x4b55bb
cmp eax, dword [ecx + edi + 0x24]
jne 0x4b55bb
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b55bb
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004bea00
add esp, 0x14
test edx, edx
jl 0x4b55bb
jg 0x4b5531
test eax, eax
jb 0x4b55bb
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4b55bb
jl 0x4b554b
cmp dword [ebp - 0x1008], eax
ja 0x4b55bb
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4b5569
test ebx, ebx
je 0x4b55a2
cmp ecx, edi
jae 0x4b55a2
mov al, byte [ecx]
cmp al, 0xd
jne 0x4b5583
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4b558f
cmp byte [ecx + 1], 0xa
jne 0x4b558f
inc ecx
jmp 0x4b558f
movzx eax, al
movsx eax, byte [eax + 0x501380]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4b5569
cmp edx, ebx
jne 0x4b5569
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4b55c0
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0049fb4b
leave
ret
Function at 0x4bed2c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x505700]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4bed6c
cmp byte [ebx], 0xa
jne 0x4bed6c
or byte [edi + eax + 0x28], 4
jmp 0x4bed71
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4bee70
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4bee53
inc eax
cmp dl, 0xd
je 0x4bed9d
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4bedc3
cmp eax, ecx
jae 0x4bedd1
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4bed85
jmp 0x4bee70
push 0
lea eax, [ebp - 0x10]
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 0x4bee4e
cmp dword [ebp - 0x10], 0
je 0x4bee4e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x505700]
test byte [eax + edi + 0x28], 0x48
je 0x4bee28
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4bee13
mov byte [esi], dl
jmp 0x4bee24
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x505700]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4bee70
cmp byte [ebp - 1], 0xa
jne 0x4bee37
cmp esi, ebx
jne 0x4bee37
mov byte [esi], 0xa
jmp 0x4bee6f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004bea1e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4bee70
mov byte [esi], 0xd
jmp 0x4bee6f
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x505700]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4bee6d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4bee70
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4bee79
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x505700]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4beebf
cmp word [ebx], dx
jne 0x4beebf
or byte [eax + edi + 0x28], 4
jmp 0x4beec4
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4bf027
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4bf007
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4bef05
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4bef3b
cmp eax, edx
jae 0x4bef49
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4beee0
jmp 0x4bf027
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4bf002
cmp dword [ebp - 0x18], 0
je 0x4bf002
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x505700]
test byte [eax + edi + 0x28], 0x48
je 0x4befd8
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4bef9c
mov word [esi], cx
jmp 0x4befd3
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x505700]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x505700]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x505700]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4bf027
pop eax
cmp word [ebp - 4], ax
jne 0x4befe8
cmp esi, ebx
jne 0x4befe8
mov word [esi], ax
jmp 0x4bf024
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004bea1e
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4bf027
push 0xd
pop eax
jmp 0x4befe3
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x505700]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4bf021
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4bf027
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4c1409
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4e008c
push 0x4e0084
push str.FlsAlloc
push 0x1f
call fcn.004c1234
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4c143d
push dword [ebp + 8]
mov ecx, esi
call dword [0x4da6a0]
call esi
jmp 0x4c1443
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4c1487
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4e009c
push 0x4e0094
push str.FlsGetValue
push 0x21
call fcn.004c1234
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4c14be
push dword [ebp + 8]
mov ecx, esi
call dword [0x4da6a0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4c14c6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4e00a4
push 0x4e009c
push str.FlsSetValue
push 0x22
call fcn.004c1234
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4c1500
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4da6a0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4c4390
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5010c0]
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 0x4c43db
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004c452b
test al, al
jne 0x4c43d5
sub edx, 2
cmp edx, edi
jne 0x4c43bb
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4c43fd
lea eax, [edi + 2]
cmp edx, eax
je 0x4c43fd
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004c42dc
add esp, 0x10
jmp 0x4c44f7
push esi
lea ecx, [ebp - 0x255]
call fcn.004c452b
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 0x4c4440
push dword [ebp - 0x25c]
jmp 0x4c43ed
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 0x4c447d
cmp word [ebp - 0x226], 0
je 0x4c449e
cmp word [ebp - 0x226], ax
jne 0x4c447d
cmp word [ebp - 0x224], 0
je 0x4c449e
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004c42dc
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4c44ea
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4c4457
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4c44d2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4c44f7
push 0x4c410c
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004caaf0
add esp, 0x10
jmp 0x4c44c7
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.0049fb4b
leave
ret

Function at 0x4c4e0d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4c4e1e
pop esi
ret
push ebx
push edi
push esi
call fcn.004c4dd6
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004bca63
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4c4e46
push ebx
push esi
push edi
call fcn.004a1040
add esp, 0xc
push 0
call fcn.004bc98d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4c5216
Capabilities:
Set environment variable

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