joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x424418
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x42f32c]
push esi
mov dword [esp + 4], eax
push str.Check.dll
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x43326c], eax
jne 0x401046
push 0x42f24c
jmp 0x40111a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ca_GetMachineID
push eax
call esi
test eax, eax
mov dword [0x433268], eax
jne 0x401067
push 0x42f210
jmp 0x40111a
mov ecx, dword [0x43326c]
push str.ca_lhlEncode
push ecx
call esi
test eax, eax
mov dword [0x433264], eax
jne 0x401088
push 0x42f1d8
jmp 0x40111a
mov edx, dword [0x43326c]
push str.ca_lhlEncodeEx
push edx
call esi
test eax, eax
mov dword [0x433260], eax
jne 0x4010a6
push 0x42f1a0
jmp 0x40111a
mov eax, dword [0x43326c]
push str.ca_MD5Encode32
push eax
call esi
test eax, eax
mov dword [0x43325c], eax
jne 0x4010c3
push 0x42f168
jmp 0x40111a
mov ecx, dword [0x43326c]
push str.ca_MD5Encode16
push ecx
call esi
test eax, eax
mov dword [0x433258], eax
jne 0x4010e1
push 0x42f130
jmp 0x40111a
mov edx, dword [0x43326c]
push str.ca_AESEncode
push edx
call esi
test eax, eax
mov dword [0x433254], eax
jne 0x4010ff
push 0x42f0f8
jmp 0x40111a
mov eax, dword [0x43326c]
push str.ca_AESDecode
push eax
call esi
test eax, eax
mov dword [0x433250], eax
jne 0x401154
push 0x42f0c0
lea ecx, [esp + 8]
call fcn.00419526
mov ecx, dword [esp + 4]
push 0
push 0x40
push ecx
call fcn.0041ffc0
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.0041939d
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.0041939d
mov ecx, dword [esp + 8]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4015d0
Capabilities:
Copy file
Create process on windows
Create process suspended

Disassembly:
mov eax, dword [0x435390]
sub esp, 0x25c
cmp eax, 1
push esi
jne 0x4016c0
mov esi, dword [esp + 0x264]
push ebx
push ebp
add ecx, 0xc0
push edi
push ecx
mov ecx, esi
call fcn.004194d6
lea eax, [esp + 0x64]
push str.C:Windows_system32SNGenEx.exe
push eax
call fcn.0040a67b
mov edx, dword [esi]
add esp, 8
lea ecx, [esp + 0x64]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push 0x4000000
push 3
push 0
push 1
lea eax, [esp + 0x78]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 1
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [esi]
mov ebx, eax
push ecx
lea edx, [esp + 0x68]
push ebx
push edx
lea eax, [esp + 0x174]
push str._s__d___s_
push eax
call fcn.0040a67b
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x34]
add esp, 0x14
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
push edx
push eax
push eax
push eax
push 1
push eax
push eax
lea eax, [esp + 0x188]
mov dword [esp + 0x40], 0x44
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push ebp
call esi
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x25c
ret 4
mov ecx, dword [0x435394]
mov edx, dword [ecx + 4]
push edx
call fcn.0040a550
add esp, 4
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x435394]
mov ecx, dword [eax + 8]
push ecx
mov ecx, dword [esp + 0x268]
call fcn.00419526
mov eax, 1
pop esi
add esp, 0x25c
ret 4
Function at 0x401710
Capabilities:
Extract resource via kernel32 functions
Timestomp file

Disassembly:
sub esp, 0x24
mov eax, dword [esp + 0x28]
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
push eax
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
jne 0x40173a
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x24
ret 4
push ebp
push 0xa
push 0x82
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x4017f8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x4017f8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
je 0x4017f8
mov ecx, dword [eax]
mov dword [0x433338], ecx
mov edx, dword [eax + 4]
lea eax, [esp + 0x24]
mov dword [0x433334], edx
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x2a]
xor ecx, ecx
and edx, 0xffff
mov ch, byte [esp + 0x26]
and eax, 0xff
and ecx, 0xffff
shl edx, 0x10
or ecx, edx
or ecx, eax
mov eax, dword [0x433334]
mov ebp, ecx
cmp ebp, eax
jae 0x4017c8
mov ecx, edi
call fcn.004018f0
test eax, eax
je 0x4017d0
mov dword [esp + 0x10], 1
mov eax, dword [0x433338]
test eax, eax
je 0x4017eb
cmp dword [0x433334], ebp
jne 0x4017eb
xor ebx, ebx
mov dword [0x433334], ebp
jmp 0x4017fc
mov ebx, 1
mov dword [0x433334], ebp
jmp 0x4017fc
mov ebp, dword [esp + 0x38]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4018d3
mov ecx, dword [esp + 0x38]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0
push 3
push 0
push 1
push 0
push ecx
call edi
mov esi, eax
test esi, esi
je 0x4018d3
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x4018d3
mov ebx, dword [esp + 0x38]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov esi, eax
test esi, esi
je 0x4018a4
mov eax, dword [0x433338]
test eax, eax
jne 0x401874
mov eax, ebp
mov dword [0x433338], eax
lea ecx, [esp + 0x14]
push 8
push ecx
push 0x804
mov dword [esp + 0x20], eax
mov eax, dword [0x433334]
push 0x82
push 0xa
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_UpdateResourceA]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
push 0
push 0
push 3
push 0
push 1
push 0x40000000
push ebx
call edi
mov esi, eax
test esi, esi
je 0x4018d3
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x24
ret 4
Function at 0x4178b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040b0f0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41797b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41797b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41792e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x417939
or bh, 8
and edi, 0x8000000
je 0x417954
mov eax, dword [0x436b1c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41797b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417d50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x417d7b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x417d9f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x417dba
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x41bb39
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x41bb71
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004196b7
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0041968f
jmp 0x41bb7d
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x41d0bf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x41d101
call fcn.00421409
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41d101
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41d0f8
xor eax, eax
jmp 0x41d109
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041d10f
pop edi
pop esi
pop ebx
ret 4

Function at 0x421bce
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x421bfc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x421c1a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00421b34
jmp 0x421c1a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x421c1a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00421b34
test edi, edi
mov eax, edi
jne 0x421c04
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x42e006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..reloc
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x12282b85
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42cd70
nop
mov ecx, 0xbcb09eb
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401690
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x10
push ebx
push esi
push edi
push edx
pop edi
push edi
push 0
push dword [section..data]
mov dword [ebp - 8], edi
push ecx
pop esi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, edi
shr ebx, 2
mov dword [ebp - 4], eax
or ebx, ebx
je 0x4016d4
push esi
pop edi
mov ecx, eax
sub edi, eax
mov edx, ebx
mov eax, dword [edi + ecx]
mov dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x4016c3
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
shl ebx, 2
cmp ebx, edi
jae 0x4016ef
push edi
pop edx
sub esi, eax
lea ecx, [ebx + eax]
sub edx, ebx
mov al, byte [ecx + esi]
mov byte [ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x4016e4
mov eax, dword [ebp - 4]
lea esi, [edi - 8]
lea ecx, [eax - 8]
add ecx, edi
push esi
pop ebx
mov edx, dword [ecx + 4]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
shr ebx, 2
and esi, 3
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
or ebx, ebx
je 0x401731
lea ecx, [ebx + edx]
mov edx, dword [eax]
movzx ecx, cl
ror edx, cl
mov ecx, dword [ebp - 8]
add eax, 4
xor edx, ecx
sub edx, ebx
mov dword [eax - 4], edx
mov edx, dword [ebp - 0xc]
dec ebx
jne 0x401714
test esi, esi
je 0x40173d
xor byte [eax], cl
lea eax, [eax + 1]
dec esi
jne 0x401735
mov edi, dword [ebp - 0x10]
mov edi, dword [edi - 4]
push edi
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, dword [ebp - 4]
push eax
pop esi
mov edx, esi
push ebx
pop ecx
call section..text
push ebx
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x4035c1
Capabilities:
Terminate process

Disassembly:
jmp 0x45dea4
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45deb5
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.0040587b
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 0x4036e8
Capabilities:
Query environment variable

Disassembly:
jmp 0x4a6931
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4a6942
pop esi
ret
push ebx
push edi
push esi
call fcn.004a6818
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403f8a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a696a
push ebx
push esi
push edi
call fcn.00405669
add esp, 0xc
push 0
call fcn.004061a4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x40572c
Capabilities:
Parse pe header

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

Function at 0x44ad83
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.0040374c
mov eax, dword [eax + 0x14]
test eax, eax
je 0x44adc6
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push 2
push ecx
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x44adc6
sub eax, 1
je 0x44adc1
sub eax, 1
je 0x44adbd
xor eax, eax
leave
ret
push 3
jmp 0x44adc8
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x49170a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x491749
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x491749
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x491749
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x491749
cmp dword [ecx + 0x74], 0xe
jbe 0x491749
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4a07c3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401d75
mov eax, dword [0x4d7040]
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.00405dd0
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4a0805
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4a0961
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405f1a
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 + 0x4da978]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0040325b
mov ecx, dword [esi*4 + 0x4da978]
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 0x4a095a
cmp eax, dword [ecx + edi + 0x24]
jne 0x4a095a
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 0x4a095a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040325b
add esp, 0x14
test edx, edx
jl 0x4a095a
jg 0x4a08d0
test eax, eax
jb 0x4a095a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4a095a
jl 0x4a08ea
cmp dword [ebp - 0x1008], eax
ja 0x4a095a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4a0908
test ebx, ebx
je 0x4a0941
cmp ecx, edi
jae 0x4a0941
mov al, byte [ecx]
cmp al, 0xd
jne 0x4a0922
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4a092e
cmp byte [ecx + 1], 0xa
jne 0x4a092e
inc ecx
jmp 0x4a092e
movzx eax, al
movsx eax, byte [eax + 0x4d7398]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4a0908
cmp edx, ebx
jne 0x4a0908
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4a095f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040303f
leave
ret
Function at 0x4a10a0
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 + 0x4da978]
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 0x4a10e0
cmp byte [ebx], 0xa
jne 0x4a10e0
or byte [edi + eax + 0x28], 4
jmp 0x4a10e5
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 0x4a11e4
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4a11c7
inc eax
cmp dl, 0xd
je 0x4a1111
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4a1137
cmp eax, ecx
jae 0x4a1145
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 0x4a10f9
jmp 0x4a11e4
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 0x4a11c2
cmp dword [ebp - 0x10], 0
je 0x4a11c2
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4da978]
test byte [eax + edi + 0x28], 0x48
je 0x4a119c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a1187
mov byte [esi], dl
jmp 0x4a1198
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4da978]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a11e4
cmp byte [ebp - 1], 0xa
jne 0x4a11ab
cmp esi, ebx
jne 0x4a11ab
mov byte [esi], 0xa
jmp 0x4a11e3
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401910
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a11e4
mov byte [esi], 0xd
jmp 0x4a11e3
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4da978]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a11e1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a11e4
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret