joyce8/EMBER2024-capa huggingface dataset:
Function at 0x446166
Capabilities:
Get common file path

Disassembly:
push 0x21c
mov eax, 0x476a1b
call fcn.0045bedd
push str.CleanupUpgradeCache...
lea ecx, [ebp - 0x220]
call fcn.004020a6
xor esi, esi
push esi
lea eax, [ebp - 0x220]
push eax
push 2
mov dword [ebp - 4], esi
call fcn.004152d1
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x220]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
lea eax, [ebp - 0x21c]
push eax
push esi
push esi
push 0x8023
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
cmp edi, esi
jge 0x446207
push str.SHGetFolderPath_failed
lea ecx, [ebp - 0x220]
call fcn.004020a6
push edi
lea eax, [ebp - 0x220]
push eax
push 2
mov dword [ebp - 4], 1
call fcn.004152d1
mov ecx, dword [ebp - 0x220]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
mov eax, edi
jmp 0x44629e
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x224]
call fcn.004020a6
push 0x4c485c
lea eax, [ebp - 0x228]
push str.AdobeARMUpgradeCache_
push eax
mov dword [ebp - 4], 2
call fcn.00401e40
add esp, 0xc
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 3
call fcn.00401ec7
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x228]
add ecx, 0xfffffff0
call fcn.004025d2
push esi
push ecx
lea eax, [ebp - 0x224]
mov dword [ebp - 0x228], esp
mov ecx, esp
push eax
call fcn.004020ea
call fcn.004423ba
push dword [0x4c46d4]
push str.SOFTWAREAdobeAdobe_ARM1.0ARM
push SysReAllocString
call main
mov ecx, dword [ebp - 0x224]
add esp, 0x14
add ecx, 0xfffffff0
call fcn.004025d2
xor eax, eax
call fcn.0045bf60
ret

Function at 0x454498
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x4544bc
cmp dword [edi + 0x54], 0
jne 0x4544bc
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0045398f
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.kernel32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call main
push ebx
mov esi, eax
call dword [sym.imp.kernel32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x458e0e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4bfd60]
jne 0x458e18
repz ret
jmp fcn.00460cdf
Function at 0x4694a1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x4694b0
pop dword [ebp - 0x50]
mov eax, 0x71dda220
sub eax, 0x71970d70
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x4918a
push 0
mov eax, 0x762008f3
sub eax, 0x75d85557
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0xf0ec8de5
add ecx, 0xf13c015
mov edi, eax
mov edx, 0xb62438d1
add edx, 0x4a2f2b2f
add edx, dword [ebp - 0x50]
mov esi, 0x639aa42
mov ebx, dword [edx]
xor dword [ebp - 0x2c], 0xa02fae0
sub ebx, esi
sub dword [ebp - 0x18], 0x49309d6f
mov dword [edi], ebx
mov dword [ebp - 0x34], 0x1864c1ab
add edi, 0x98cf7531
sub edi, 0x98cf752d
add edx, 4
loop 0x469509
add eax, 0x12abb
mov ebx, eax
add eax, 0xbd5537ed
sub eax, 0xbd5537e8
mov ecx, 0x400000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x402ce4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x413020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402d7c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402d5c
xor eax, eax
push ebp
push 0x402d55
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402d98
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402d5c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x413020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x413020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403804
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x414044], 0
je 0x403865
cmp word [0x414218], 0xd7b2
jne 0x40382d
cmp dword [0x414220], 0
jbe 0x40382d
mov eax, 0x414214
call dword [0x414230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x413068
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40388c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41302c], 0
jne 0x403881
push 0
push 0x413060
push 0x413068
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4052f0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405356
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403bf0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004028d8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405340
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40535d
lea eax, [ebp - 0x10]
call fcn.00403980
ret

Function at 0x409518
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x409551
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403a70
jmp 0x40955a
mov eax, ebx
mov edx, esi
call fcn.004039d4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409564
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x409585
mov al, byte [esp]
jmp 0x409587
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x409c0c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x409a84
mov eax, dword [0x413508]
cmp byte [eax], 0
je 0x409c88
mov eax, dword [0x41342c]
call fcn.00402854
call fcn.0040271c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00406ecc
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x409cd0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x409cbe
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x413408]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x414660]
call fcn.00404840
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40a96c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40a9d0
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00403bf0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00406a8c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a9d7
lea eax, [ebp - 0xc]
call fcn.00403980
ret

Function at 0x4122d4
Capabilities:
Log keystrokes via application hook
Read file via mapping

Disassembly:
cmp dword [0x41488c], 0
jne 0x412347
push 0x412378
push 0
push 2
call sub.kernel32.dll_OpenFileMappingA
mov dword [0x414888], eax
cmp dword [0x414888], 0
jne 0x41230a
mov ecx, 0x412394
mov dl, 1
mov eax, dword [0x405b40]
call fcn.00409cd4
push 0
push 0
push 0
push 6
mov eax, dword [0x414888]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [0x41488c], eax
cmp dword [0x41488c], 0
jne 0x412347
mov eax, dword [0x414888]
push eax
call sub.kernel32.dll_CloseHandle
mov ecx, 0x4123b0
mov dl, 1
mov eax, dword [0x405b40]
call fcn.00409cd4
cmp dword [0x41488c], 0
je 0x412376
mov eax, dword [0x41488c]
mov eax, dword [eax + 0xc]
mov dword [0x4148e0], eax
push 0
mov eax, dword [0x414660]
push eax
push 0x411ff4
push 2
call sub.user32.dll_SetWindowsHookExA
mov dword [0x414884], eax
ret
Function at 0x446130
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0xc], eax
mov eax, dword [0x4810a4]
mov dword [ebp - 0x20], eax
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push str.c:windows_system32_ntdll.dll
call dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov ecx, dword [0x4810a8]
mov dword [ebp - 0x24], ecx
push 0
push 0
push 0
push 0x1000002
push 0
mov edx, dword [ebp - 0x18]
push edx
call dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x4810ac]
mov dword [ebp - 0x28], eax
push 0
push 0
push 0
push 4
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], ecx
xor edx, edx
mov word [ebp - 4], dx
jmp 0x4461c6
mov ax, word [ebp - 4]
add ax, 1
mov word [ebp - 4], ax
movzx ecx, word [ebp - 4]
mov edx, dword [ebp - 0x10]
movzx eax, word [edx + 6]
cmp ecx, eax
jge 0x44627f
mov ecx, dword [ebp - 0x10]
movzx edx, word [ecx + 0x14]
mov eax, dword [ebp - 0x10]
lea ecx, [eax + edx + 0x18]
movzx edx, word [ebp - 4]
imul eax, edx, 0x28
add ecx, eax
mov dword [ebp - 8], ecx
push str..text
mov ecx, dword [ebp - 8]
push ecx
call fcn.004524c0
add esp, 8
test eax, eax
jne 0x44627a
mov dword [ebp - 0x14], 0
mov edx, dword [0x4810a0]
mov dword [ebp - 0x30], edx
lea eax, [ebp - 0x14]
push eax
push 0x40
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0xc]
push ecx
call dword [ebp - 0x30]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x34]
add edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0xc]
push ecx
call fcn.0044e800
add esp, 0xc
mov edx, dword [0x4810a0]
mov dword [ebp - 0x38], edx
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
add edx, dword [ecx + 0xc]
push edx
call dword [ebp - 0x38]
jmp 0x4461ba
mov eax, dword [0x4810b0]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [ebp - 0x3c]
mov edx, dword [0x4810b0]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [ebp - 0x40]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x44d0f6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x44d117
jl 0x44d10e
test edi, edi
jne 0x44d117
xor eax, eax
xor edx, edx
jmp 0x44d1d8
cmp dword [ebx + 0x38], 0
je 0x44d12c
push eax
push edi
push dword [ebp + 8]
call fcn.0044d1de
jmp 0x44d1d8
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x44d173
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x44d173
cmp eax, edi
jb 0x44d14d
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0044e800
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x44d179
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x44d1cd
mov ecx, ebx
call fcn.0044c94f
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x44d1b8
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00457fec
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x44d1cd
jmp 0x44d18b
test edx, edx
je 0x44d1cd
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00457fec
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x44e416
Capabilities:
Parse pe header

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

Function at 0x45e315
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x476068
push 0x476060
push str.FlsAlloc
push 0x1e
call fcn.0045e182
mov esi, eax
add esp, 0x10
test esi, esi
je 0x45e349
push dword [ebp + 8]
mov ecx, esi
call dword [0x471198]
call esi
jmp 0x45e34f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x45e393
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x476078
push 0x476070
push str.FlsGetValue
push 0x20
call fcn.0045e182
mov esi, eax
add esp, 0x10
test esi, esi
je 0x45e3ca
push dword [ebp + 8]
mov ecx, esi
call dword [0x471198]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x462c12
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00462a83

Function at 0x46300c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0044e7b0
mov eax, dword [0x480208]
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.0045f887
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x46304e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4631aa
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0046fc00
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 + 0x481b68]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004641dc
mov ecx, dword [esi*4 + 0x481b68]
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 0x4631a3
cmp eax, dword [edi + ecx + 0x24]
jne 0x4631a3
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 0x4631a3
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004641dc
add esp, 0x14
test edx, edx
jl 0x4631a3
jg 0x463119
test eax, eax
jb 0x4631a3
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4631a3
jl 0x463133
cmp dword [ebp - 0x1008], eax
ja 0x4631a3
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x463151
test ebx, ebx
je 0x46318a
cmp ecx, edi
jae 0x46318a
mov al, byte [ecx]
cmp al, 0xd
jne 0x46316b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x463177
cmp byte [ecx + 1], 0xa
jne 0x463177
inc ecx
jmp 0x463177
movzx eax, al
movsx eax, byte [eax + 0x480638]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x463151
cmp edx, ebx
jne 0x463151
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4631a8
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0044deb0
leave
ret
Function at 0x46367a
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 + 0x481b68]
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 0x4636ba
cmp byte [ebx], 0xa
jne 0x4636ba
or byte [eax + edi + 0x28], 4
jmp 0x4636bf
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4637bd
mov al, byte [edx]
cmp al, 0x1a
je 0x46379f
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4636ee
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x463713
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x46371d
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 0x4636d0
jmp 0x4637bd
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 0x46379a
cmp dword [ebp - 0xc], 0
je 0x46379a
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x481b68]
test byte [eax + edi + 0x28], 0x48
je 0x463774
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x46375f
mov byte [esi], dl
jmp 0x463770
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x481b68]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4637bd
cmp byte [ebp - 1], 0xa
jne 0x463783
cmp esi, ebx
jne 0x463783
mov byte [esi], 0xa
jmp 0x4637bc
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004641fa
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4637bd
mov byte [esi], 0xd
jmp 0x4637bc
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x481b68]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4637b9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4637bd
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4637c6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x481b68]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x463809
cmp word [esi], dx
jne 0x463809
or byte [edi + eax + 0x28], 4
jmp 0x46380e
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x463961
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x463941
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x463850
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x463886
cmp eax, edx
jae 0x463892
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x463828
jmp 0x463961
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46393d
cmp dword [ebp - 0x14], 0
je 0x46393d
mov eax, dword [ebx*4 + 0x481b68]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x463915
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4638de
mov word [esi], cx
jmp 0x463911
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x481b68]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x481b68]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x481b68]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x463961
pop ebx
cmp word [ebp - 4], bx
jne 0x463926
cmp esi, dword [ebp + 0xc]
jne 0x463926
mov word [esi], bx
jmp 0x46395e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004641fa
add esp, 0x10
cmp word [ebp - 4], bx
je 0x463961
push 0xd
jmp 0x46395a
mov ecx, dword [ebx*4 + 0x481b68]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x463958
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x463961
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4676cf
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x46776c
push ebx
push esi
call fcn.00467698
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00460e0b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x467719
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x46776b
push edi
push eax
call fcn.0045de05
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x467739
call fcn.0045ddcb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x46776a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00460e0b
add esp, 0x20
test eax, eax
jne 0x467758
push edi
call fcn.0045ddcb
jmp 0x467760
push ebx
call fcn.0045ddcb
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x46776f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x467780
pop esi
ret
push ebx
push edi
push esi
call fcn.00467698
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0045de05
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4677a8
push ebx
push esi
push edi
call fcn.0044e800
add esp, 0xc
push 0
call fcn.0045ddcb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x467ef4
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00467a1b