joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219

Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x433030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x10004cb2
Capabilities:
Create thread

Disassembly:
push 0x34
mov eax, 0x1001e015
call fcn.1001bb08
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0xd0], 1
jne 0x10004d76
mov eax, dword [ebp + 8]
cmp dword [eax], 7
jne 0x10004d76
cmp dword [esi + 0x248], ebx
sete al
cmp al, bl
sete al
cmp al, bl
je 0x10004d76
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
xor eax, eax
push 0x10020b70
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], ebx
mov word [ebp - 0x40], ax
call fcn.100074a3
xor eax, eax
push str._self
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
mov word [ebp - 0x30], ax
call fcn.100074a3
mov eax, dword [esi + 0x248]
mov byte [ebp - 4], 2
cmp eax, ebx
jne 0x10004d40
push 0x80004003
call fcn.100068c2
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push edx
lea edx, [ebp - 0x30]
push edx
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x40]
push edx
push eax
call dword [ecx + 0xd0]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x30]
push eax
call edi
lea eax, [ebp - 0x40]
push eax
call edi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x20]
push eax
call edi
mov eax, dword [esi + 0xd0]
cmp eax, 2
je 0x10004e53
cmp eax, 1
je 0x10004e53
mov eax, dword [esi + 0x244]
or dword [ebp - 0x14], 0xffffffff
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ebx
call fcn.100063a6
push dword [ebp + 8]
lea ecx, [esi + 0xe4]
mov eax, dword [ecx]
push eax
mov dword [ebp - 4], 3
call fcn.100084b0
push dword [esi + 0xc0]
lea edi, [esi + 0x240]
cmp dword [edi], ebx
setne byte [ebp - 0xd]
call dword [sym.imp.kernel32.dll_SetEvent]
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], ebx
je 0x10004de8
push dword [ebp - 0x1c]
call dword [sym.imp.kernel32.dll_ReleaseMutex]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, 1
jne 0x10004e15
cmp dword [esi + 0x23c], ebx
jne 0x10004e15
push edi
push ebx
push esi
push 0x10004c38
push ebx
push ebx
call dword [sym.imp.msvcr100.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x23c], eax
jmp 0x10004e53
cmp eax, 0xa
jne 0x10004e47
lea edi, [esi + 0x23c]
cmp dword [edi], ebx
je 0x10004e47
lea eax, [ebp + 8]
push eax
push edi
push 1
push 0xffffffffffffffff
push ebx
mov dword [ebp + 8], ebx
call dword [sym.imp.ole32.dll_CoWaitForMultipleHandles]
test eax, eax
jne 0x10004e53
push dword [edi]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [edi], ebx
jmp 0x10004e53
cmp byte [ebp - 0xd], bl
jne 0x10004e53
mov ecx, esi
call fcn.100068c2
call fcn.1001bbe0
ret 4
Function at 0x10006690
Capabilities:
Hash data using fnv

Disassembly:
mov ecx, dword [esp + 4]
mov eax, 0x811c9dc5
jmp 0x100066a9
movzx edx, word [ecx]
imul eax, eax, 0x1000193
xor eax, edx
add ecx, 2
cmp ecx, dword [esp + 8]
jne 0x1000669b
ret

Function at 0x1000b06c
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x1000b0ba
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x1000b0cb
push 0xd
pop eax
jmp 0x1000b0f5
push edi
xor edi, edi
push esi
call dword [sym.imp.kernel32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x1000b0ce
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x1000b5af
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x100307e8]
xor eax, ebp
mov dword [ebp + 0x9c], eax
mov eax, dword [ebp + 0xa8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.100068c2
mov ebx, eax
cmp ebx, esi
je 0x1000b622
lea ecx, [ebp - 0x74]
call fcn.10009ecc
mov eax, ebx
mov ecx, dword [ebp + 0x9c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001ba56
add ebp, 0xa0
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x1000b63a
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x74]
call fcn.1000b5af
cmp eax, esi
jne 0x1000b66c
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x68], 0x100
call ebx
test eax, eax
je 0x1000b62a
lea ecx, [ebp - 0x74]
call fcn.10009ecc
push dword [ebp - 0x78]
mov ecx, edi
call fcn.1000af95
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.10009ecc
mov eax, esi
jmp 0x1000b608
Function at 0x100138c4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78c]
sub esp, 0x80c
mov eax, dword [0x100307e8]
xor eax, ebp
mov dword [ebp + 0x788], eax
push ebx
mov ebx, dword [ebp + 0x798]
push esi
mov esi, dword [ebp + 0x79c]
push edi
mov edi, dword [ebp + 0x794]
push 0x3ff
lea eax, [ebp + 0x389]
push 0
push eax
mov byte [ebp + 0x388], 0
call sub.msvcr100.dll_memset
push edi
push str.SOFTWAREClassesCLSID_sInprocServer32
mov edi, 0x400
lea eax, [ebp + 0x388]
push edi
push eax
call dword [sym.imp.msvcr100.dll_sprintf_s]
add esp, 0x1c
lea eax, [ebp - 0x7c]
push eax
push 0x20019
neg esi
push 0
lea eax, [ebp + 0x388]
sbb esi, esi
push eax
add esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1001395d
xor ecx, ecx
cmp eax, 2
sete cl
mov eax, ecx
jmp 0x100139a0
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x10023c4a
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push dword [ebp - 0x7c]
test eax, eax
je 0x10013987
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x100139a0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x78]
push eax
push ebx
call dword [sym.imp.msvcr100.dll__mbscmp]
neg eax
pop ecx
sbb eax, eax
pop ecx
neg eax
mov ecx, dword [ebp + 0x788]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001ba56
add ebp, 0x78c
leave
ret

Function at 0x10013b9c
Capabilities:
Query environment variable

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
je 0x10013bbd
push dword [esp + 0xc]
push dword [esp + 0xc]
push str.USER_JPI_PROFILE
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x10013bbd
inc esi
mov eax, esi
pop esi
ret

Function at 0x1001460e
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x100307e8]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0xc
mov eax, 0x1001eac9
call fcn.1001bb3b
mov esi, dword [ebp + 0x214]
xor ebx, ebx
lea eax, [ebp]
push eax
push ebx
push ebx
push 0x1a
push ebx
mov byte [esi], bl
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
cmp edi, ebx
jge 0x10014668
push edi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__szPath_
call fcn.100178de
pop ecx
pop ecx
push ebx
push edi
call fcn.100068c2
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.10006d43
mov ecx, dword [eax]
mov byte [ebp - 4], 1
cmp ecx, ebx
je 0x10014685
call fcn.100060e0
jmp 0x10014687
xor eax, eax
push 0x104
push eax
push dword [ebp + 0x218]
push esi
call dword [sym.imp.msvcr100.dll__mbsnbcpy_s]
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp ecx, ebx
je 0x100146d3
call fcn.10007f79
jmp 0x100146d3
xor eax, eax
cmp edi, ebx
setge al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.1001ba56
add ebp, 0x20c
leave
ret
Function at 0x100146fd
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x100307e8]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0xc
mov eax, 0x1001eaf9
call fcn.1001bb3b
mov esi, dword [ebp + 0x214]
xor ebx, ebx
lea eax, [ebp]
push eax
push ebx
push ebx
push 0x23
push ebx
mov byte [esi], bl
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
cmp edi, ebx
jge 0x10014757
push edi
push str.Error:_08x_in_::SHGetFolderPathW_0__CSIDL_COMMON_APPDATA__NULL__SHGFP_TYPE_CURRENT__szPath_
call fcn.100178de
pop ecx
pop ecx
push ebx
push edi
call fcn.100068c2
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.10006d43
mov ecx, dword [eax]
mov byte [ebp - 4], 1
cmp ecx, ebx
je 0x10014774
call fcn.100060e0
jmp 0x10014776
xor eax, eax
push 0x104
push eax
push dword [ebp + 0x218]
push esi
call dword [sym.imp.msvcr100.dll__mbsnbcpy_s]
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp ecx, ebx
je 0x100147c2
call fcn.10007f79
jmp 0x100147c2
xor eax, eax
cmp edi, ebx
setge al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.1001ba56
add ebp, 0x20c
leave
ret

Function at 0x10014eb7
Capabilities:
Get common file path

Disassembly:
push 0x14
mov eax, 0x1001eb59
call fcn.1001bb3b
mov esi, dword [ebp + 8]
xor eax, eax
xor edi, edi
xor ebx, ebx
mov word [esi], ax
mov dword [ebp - 4], edi
call fcn.100068c2
test eax, eax
je 0x10014ee2
call fcn.10014ea8
mov ebx, eax
push 0x104
push esi
push ebx
push edi
push 0x1002051c
call dword [sym.imp.SHELL32.dll_SHGetFolderPathEx]
mov esi, eax
cmp esi, edi
jge 0x10014f3d
push esi
push str.Error:_08x_in_SHGetFolderPathEx_FOLDERID_LocalAppDataLow__0__hToken__pPath__MAX_PATH_
call fcn.100178de
pop ecx
pop ecx
push edi
push esi
call fcn.100068c2
mov ecx, dword [ebp - 0x18]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x14], esi
call fcn.10006f58
push eax
push esi
push 0x10023e3c
call fcn.100178de
or dword [ebp - 4], 0xffffffff
add esp, 0xc
mov eax, 0x10014f36
ret
cmp ebx, edi
je 0x10014f48
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
cmp esi, edi
jge 0x10014ff9
push dword [ebp + 8]
mov dword [ebp - 4], 2
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
cmp esi, edi
jge 0x10014fa5
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__pPath_
jmp 0x10014f01
or dword [ebp - 4], 0xffffffff
cmp esi, edi
jge 0x10014ff9
push 1
push 0x1a
push dword [ebp + 8]
mov dword [ebp - 4], 4
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, eax
cmp esi, edi
jge 0x10014ff9
push esi
push str.Error:_08x_in_SHGetSpecialFolderPathW_NULL__pPath__CSIDL_APPDATA__TRUE_
jmp 0x10014f01
mov eax, esi
call fcn.1001bbe0
ret
Function at 0x1001628d
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x138]
sub esp, 0x1b8
mov eax, dword [0x100307e8]
xor eax, ebp
mov dword [ebp + 0x134], eax
push ebx
push 0x104
xor ebx, ebx
lea eax, [ebp + 0x30]
push ebx
push eax
call sub.msvcr100.dll_memset
add esp, 0xc
lea eax, [ebp + 0x30]
push eax
push ebx
push ebx
push 0x2c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
je 0x100162e8
xor eax, eax
mov ecx, dword [ebp + 0x134]
xor ecx, ebp
pop ebx
call fcn.1001ba56
add ebp, 0x138
leave
ret
push esi
lea eax, [ebp + 0x30]
push edi
mov dword [ebp + 0x28], 0xf
mov dword [ebp + 0x24], ebx
mov byte [ebp + 0x14], bl
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100162fd
sub eax, esi
push eax
lea eax, [ebp + 0x30]
push eax
lea ecx, [ebp + 0x14]
call fcn.10016afd
push str.JavaJava_Updatejucheck.exe
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.100068c2
add esp, 0xc
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp + 0x14]
call fcn.10007ace
push 0x22
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x14]
push 0x22
push eax
call fcn.10016def
add esp, 0xc
push eax
lea eax, [ebp - 8]
push eax
call fcn.100068c2
add esp, 0xc
push ebx
push esi
lea ecx, [ebp + 0x14]
call fcn.10007ace
push 0x40
lea eax, [ebp - 0x7c]
push ebx
push eax
call sub.msvcr100.dll_memset
mov ecx, dword [ebp - 8]
xor eax, eax
mov dword [ebp - 0x3c], ebx
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
cmp dword [ebp + 0xc], 0x10
stosd dword es:[edi], eax
mov dword [ebp - 0x80], 0x44
mov eax, ecx
jae 0x1001638f
lea eax, [ebp - 8]
add eax, dword [ebp + 8]
cmp dword [ebp + 0xc], 0x10
jae 0x1001639b
lea ecx, [ebp - 8]
push dword [ebp - 0x29]
mov dword [ebp + 0x20], ebx
push eax
push ecx
lea ecx, [ebp + 0x20]
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x28], ebx
call fcn.10016e6a
lea eax, [ebp - 0x25]
push eax
lea ecx, [ebp + 0x20]
mov byte [ebp - 0x25], bl
call fcn.10016b94
cmp dword [ebp - 0x10], 0x10
mov eax, dword [ebp - 0x24]
jae 0x100163cc
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x80]
push ecx
push ebx
push ebx
push 0x8000000
push esi
push ebx
push ebx
push dword [ebp + 0x20]
push eax
call fcn.100068c2
add esp, 0x28
test eax, eax
jne 0x10016415
xor edi, edi
lea ecx, [ebp + 0x20]
call fcn.1001685d
push ebx
push esi
lea ecx, [ebp - 8]
call fcn.10007ace
push ebx
push esi
lea ecx, [ebp - 0x24]
call fcn.10007ace
mov eax, edi
pop edi
pop esi
jmp 0x100162d2
mov edi, esi
jmp 0x100163f0
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0xfa078a4
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x49735513
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x40146a
Capabilities:
Encode data using xor

Disassembly:
jmp 0x419254
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0x41931b
push ebx
push ebp
push edi
mov edi, dword [esp + 0x14]
mov ebx, str.1110
mov ebp, 0x58f150
push ebx
push ebp
call fcn.004032e2
push eax
call fcn.0040709f
xor byte [esi + edi], 0x3e
push ebx
push ebp
call fcn.004032e2
push eax
call fcn.0040709f
add byte [esi + edi], 0x99
push ebx
push ebp
call fcn.004032e2
push eax
call fcn.0040709f
add byte [esi + edi], 0xb8
push ebx
push ebp
call fcn.004032e2
push eax
call fcn.0040709f
xor byte [esi + edi], 0xe6
push ebx
push ebp
call fcn.004032e2
push eax
call fcn.0040709f
add byte [esi + edi], 0xb2
push ebx
push ebp
call fcn.004032e2
add esp, 0x44
push eax
call fcn.0040709f
add byte [esi + edi], 0x78
push ebx
push ebp
call fcn.004032e2
push eax
call fcn.0040709f
add byte [esi + edi], 0x5c
push ebx
push ebp
call fcn.004032e2
push eax
call fcn.0040709f
push ebx
push ebp
call fcn.004032e2
push eax
call fcn.0040709f
xor byte [esi + edi], 0xc4
add esp, 0x28
inc esi
cmp esi, dword [esp + 0x18]
jb 0x419272
pop edi
pop ebp
pop ebx
pop esi
ret

Function at 0x403cce
Capabilities:
Terminate process

Disassembly:
jmp 0x45af89
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45af9a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.004066fe
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x403e59
Capabilities:
Query environment variable

Disassembly:
jmp 0x4a4ae2
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4a4af3
pop esi
ret
push ebx
push edi
push esi
call fcn.004a49c9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004048e5
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a4b1b
push ebx
push esi
push edi
call fcn.0040649c
add esp, 0xc
push 0
call fcn.0040722f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x406573
Capabilities:
Parse pe header

Disassembly:
jmp 0x449dbf
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x449dfe
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x449dfe
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x449dfe
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x449dfe
cmp dword [ecx + 0x74], 0xe
jbe 0x449dfe
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x407644
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x419870
sub esp, 0x20
mov eax, dword [0x58b258]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x4198e8
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.004020b8
test esi, esi
je 0x4198d5
cmp dword [esp + 0x38], 3
jbe 0x4198d5
lea eax, [esp + 0x14]
push 0x14d
push eax
call fcn.0040322e
pop ecx
pop ecx
test eax, eax
je 0x4198d5
cmp eax, dword [esp + 0x38]
je 0x419900
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00402e1e
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x4198a1
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00403625
add esp, 0x20
ret
mov eax, dword [ebx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00402e1e
jmp 0x4198ea
Function at 0x49b3d5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00402036
mov eax, dword [0x58b258]
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.00406d75
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x49b417
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x49b573
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406f05
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 + 0x590790]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004038a5
mov ecx, dword [esi*4 + 0x590790]
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 0x49b56c
cmp eax, dword [edi + ecx + 0x24]
jne 0x49b56c
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 0x49b56c
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004038a5
add esp, 0x14
test edx, edx
jl 0x49b56c
jg 0x49b4e2
test eax, eax
jb 0x49b56c
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x49b56c
jl 0x49b4fc
cmp dword [ebp - 0x1008], eax
ja 0x49b56c
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x49b51a
test ebx, ebx
je 0x49b553
cmp ecx, edi
jae 0x49b553
mov al, byte [ecx]
cmp al, 0xd
jne 0x49b534
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49b540
cmp byte [ecx + 1], 0xa
jne 0x49b540
inc ecx
jmp 0x49b540
movzx eax, al
movsx eax, byte [eax + 0x58b570]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x49b51a
cmp edx, ebx
jne 0x49b51a
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x49b571
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403625
leave
ret
Function at 0x49b778
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 + 0x590790]
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 0x49b7b8
cmp byte [ebx], 0xa
jne 0x49b7b8
or byte [eax + edi + 0x28], 4
jmp 0x49b7bd
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x49b8bb
mov al, byte [edx]
cmp al, 0x1a
je 0x49b89d
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x49b7ec
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x49b811
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x49b81b
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 0x49b7ce
jmp 0x49b8bb
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 0x49b898
cmp dword [ebp - 0xc], 0
je 0x49b898
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x590790]
test byte [eax + edi + 0x28], 0x48
je 0x49b872
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x49b85d
mov byte [esi], dl
jmp 0x49b86e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x590790]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x49b8bb
cmp byte [ebp - 1], 0xa
jne 0x49b881
cmp esi, ebx
jne 0x49b881
mov byte [esi], 0xa
jmp 0x49b8ba
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401b09
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x49b8bb
mov byte [esi], 0xd
jmp 0x49b8ba
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x590790]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49b8b7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49b8bb
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret