joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a390
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x4e7fd0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax]
add eax, dword [esp + 4]
ret 4

Function at 0x42a498
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x520e4c], 0
push ebx
push esi
mov esi, 0x520e54
jne 0x42a4c4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x520e6c], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x520e4c], 1
push dword [0x520e6c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x42a561
push 0x14
push 8
push dword [0x4e8c1c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x42a58b
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x520e50]
test eax, eax
je 0x42a506
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x520e50], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x42a60e
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x520e6c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x4e8c1c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x42a58b
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x42a680
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x4e7fd0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 4]
mov dword [eax + 8], ecx
mov eax, dword [eax]
add eax, ecx
ret 4

Function at 0x42b892
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4b23e8
push 0x4b23e0
push str.FlsAlloc
push 0x1f
call fcn.0042be8a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42b8c6
push dword [ebp + 8]
mov ecx, esi
call dword [0x4cee8c]
call esi
jmp 0x42b8cc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42b910
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4b23f8
push 0x4b23f0
push str.FlsGetValue
push 0x21
call fcn.0042be8a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42b947
push dword [ebp + 8]
mov ecx, esi
call dword [0x4cee8c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x42b94f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4b2400
push 0x4b23f8
push str.FlsSetValue
push 0x22
call fcn.0042be8a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42b989
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4cee8c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x43737c
Capabilities:
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x2c]
push edi
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0xd4]
mov dword [esp + 8], eax
test esi, esi
je 0x437428
imul eax, dword [esp + 0x1c]
imul ecx, dword [esp + 0x24], 3
push ebx
mov ebx, dword [esp + 0x24]
push ebp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
imul eax, dword [esp + 0x30]
add eax, dword [esp + 0x1c]
add ecx, eax
mov eax, dword [esp + 0x24]
mov edx, dword [edi + 0xcc]
mov ebp, ecx
imul edx, ebx
add edx, dword [edi + 0xc8]
add edx, eax
cmp dword [esp + 0x34], 0
jle 0x437409
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x10]
mov al, byte [ebp + 2]
xor byte [edx + 2], al
mov al, byte [ebp + 1]
xor byte [edx + 1], al
mov al, byte [ebp]
lea ebp, [ebp + 3]
xor byte [edx], al
add edx, edi
sub esi, 1
jne 0x4373e2
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
dec esi
inc ebx
cmp dword [edi + 0xe8], 0
mov dword [esp + 0x38], esi
jne 0x43741e
sub ecx, dword [esp + 0x20]
jmp 0x437422
add ecx, dword [esp + 0x20]
test esi, esi
jne 0x4373c0
pop ebp
pop ebx
pop edi
pop esi
pop ecx
ret 0x24

Function at 0x4374a5
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ecx
imul ecx, dword [esp + 0x28], 3
push ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 4], ecx
test ebx, ebx
je 0x437577
mov eax, dword [esp + 0x18]
imul eax, dword [esp + 0x28]
imul edx, dword [esp + 0x1c], 3
push ebp
mov ebp, dword [esp + 0x24]
push esi
imul esi, dword [esp + 0x2c], 3
add eax, dword [esp + 0x1c]
push edi
mov dword [esp + 0x14], edx
add esi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], esi
mov edi, dword [eax + 0xcc]
imul edi, ebp
mov dword [esp + 0x28], esi
add edi, dword [eax + 0xc8]
add edi, edx
test ecx, ecx
jle 0x43754b
mov ebp, dword [esp + 0x28]
mov ebx, 0xff
sub ebx, dword [esp + 0x40]
mov esi, ecx
movzx eax, byte [ebp]
imul eax, dword [esp + 0x40]
movzx ecx, byte [edi]
imul ecx, ebx
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
inc ebp
mov byte [edi], al
inc edi
sub esi, 1
jne 0x437511
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
dec ebx
inc ebp
cmp dword [eax + 0xe8], 0
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], ebp
jne 0x437564
sub esi, dword [esp + 0x24]
jmp 0x437568
add esi, dword [esp + 0x24]
mov dword [esp + 0x38], esi
test ebx, ebx
jne 0x4374e9
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0x28
Function at 0x437e33
Capabilities:
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x2c]
push edi
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0xd4]
mov dword [esp + 8], eax
test esi, esi
je 0x437edf
imul eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
imul ecx, dword [esp + 0x28]
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
add ecx, dword [esp + 0x18]
push ebp
lea edx, [ecx + eax*4]
mov eax, dword [esp + 0x24]
mov ecx, dword [edi + 0xcc]
mov ebp, edx
imul ecx, ebx
add ecx, dword [edi + 0xc8]
add ecx, eax
cmp dword [esp + 0x34], 0
jle 0x437ec0
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x10]
mov al, byte [ebp + 2]
xor byte [ecx + 2], al
mov al, byte [ebp + 1]
xor byte [ecx + 1], al
mov al, byte [ebp]
lea ebp, [ebp + 4]
xor byte [ecx], al
add ecx, edi
sub esi, 1
jne 0x437e99
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
dec esi
inc ebx
cmp dword [edi + 0xe8], 0
mov dword [esp + 0x38], esi
jne 0x437ed5
sub edx, dword [esp + 0x20]
jmp 0x437ed9
add edx, dword [esp + 0x20]
test esi, esi
jne 0x437e77
pop ebp
pop ebx
pop edi
pop esi
pop ecx
ret 0x24
Function at 0x437f7f
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov edx, dword [esp + 0x28]
test edx, edx
je 0x43818f
mov ecx, dword [esp + 0x10]
imul ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
imul esi, dword [esp + 0x20], 3
add ecx, dword [esp + 0x18]
push edi
mov edi, 0xff
cmp dword [esp + 0x3c], edi
jne 0x43809d
lea ebp, [ecx + eax*4]
mov dword [esp + 0x3c], esi
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x1c], eax
mov ebx, dword [ecx + 0xcc]
imul ebx, eax
mov dword [esp + 0x2c], ebp
add ebx, dword [ecx + 0xc8]
add ebx, esi
cmp dword [esp + 0x34], 0
jle 0x43806f
mov eax, dword [esp + 0x34]
mov dword [esp + 0x30], eax
movzx edi, byte [ebp + 3]
mov esi, 0xff
movzx eax, byte [ebp + 2]
sub esi, edi
movzx ecx, byte [ebx + 2]
imul eax, edi
imul ecx, esi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
movzx ecx, byte [ebx + 1]
mov byte [ebx + 2], al
movzx eax, byte [ebp + 1]
imul eax, edi
imul ecx, esi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
mov byte [ebx + 1], al
movzx eax, byte [ebx]
movzx ecx, byte [ebp]
lea ebp, [ebp + 4]
imul eax, esi
imul ecx, edi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
sub dword [esp + 0x30], 1
mov byte [ebx], al
lea ebx, [ebx + 3]
jne 0x437ff4
mov ebp, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x3c]
dec edx
inc eax
cmp dword [ecx + 0xe8], 0
mov dword [esp + 0x38], edx
mov dword [esp + 0x1c], eax
jne 0x438088
sub ebp, dword [esp + 0x20]
jmp 0x43808c
add ebp, dword [esp + 0x20]
mov dword [esp + 0x24], ebp
test edx, edx
jne 0x437fcc
jmp 0x43818b
lea ebx, [ecx + eax*4]
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], eax
mov ebp, dword [ecx + 0xcc]
imul ebp, eax
mov dword [esp + 0x2c], ebx
add ebp, dword [ecx + 0xc8]
add ebp, esi
cmp dword [esp + 0x34], 0
jle 0x438162
mov eax, dword [esp + 0x34]
mov dword [esp + 0x30], eax
movzx eax, byte [ebx + 3]
mov esi, 0xff
imul eax, dword [esp + 0x3c]
movzx ecx, byte [ebp + 2]
cdq
idiv edi
mov edi, eax
movzx eax, byte [ebx + 2]
imul eax, edi
sub esi, edi
imul ecx, esi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
movzx ecx, byte [ebp + 1]
mov byte [ebp + 2], al
movzx eax, byte [ebx + 1]
imul eax, edi
imul ecx, esi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
mov byte [ebp + 1], al
movzx eax, byte [ebp]
movzx ecx, byte [ebx]
lea ebx, [ebx + 4]
imul eax, esi
imul ecx, edi
mov edi, 0xff
add eax, ecx
cdq
idiv edi
sub dword [esp + 0x30], 1
mov byte [ebp], al
lea ebp, [ebp + 3]
jne 0x4380dc
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
dec edx
inc eax
cmp dword [ecx + 0xe8], 0
mov dword [esp + 0x38], edx
mov dword [esp + 0x1c], eax
jne 0x43817b
sub ebx, dword [esp + 0x20]
jmp 0x43817f
add ebx, dword [esp + 0x20]
mov dword [esp + 0x24], ebx
test edx, edx
jne 0x4380b4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x28
Function at 0x439fe7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
lea eax, [esp + 0x10]
push ebx
push esi
push eax
push dword [esp + 0x78]
xor esi, esi
mov ebx, esi
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
je 0x43a17e
push dword [esp + 0x28]
call fcn.00414569
test eax, eax
je 0x43a027
push dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x43a17e
push edi
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
test edi, edi
je 0x43a16b
push ebp
mov ebp, dword [sym.imp.GDI32.dll_GetObjectW]
lea eax, [esp + 0x34]
push eax
push 0x18
push dword [esp + 0x38]
call ebp
cmp eax, 0x18
jne 0x43a163
push 0x2c
lea eax, [esp + 0x50]
push esi
push eax
call fcn.00401510
mov eax, dword [esp + 0x44]
add esp, 0xc
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x54], eax
xor eax, eax
push 0x20
inc eax
mov dword [esp + 0x50], 0x28
mov word [esp + 0x5c], ax
pop eax
push esi
push esi
mov word [esp + 0x62], ax
lea eax, [esp + 0x1c]
push eax
push esi
lea eax, [esp + 0x5c]
mov dword [esp + 0x6c], esi
push eax
push edi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ebx, eax
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x43a163
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push ebx
push edi
call esi
push 2
xor eax, eax
push eax
push eax
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x90]
push eax
push eax
push edi
call dword [sym.imp.USER32.dll_DrawIconEx]
push dword [esp + 0x2c]
push edi
call esi
lea eax, [esp + 0x34]
push eax
push 0x18
push dword [esp + 0x38]
call ebp
cmp eax, 0x18
jne 0x43a163
mov ebp, dword [esp + 0x38]
xor esi, esi
mov edx, dword [esp + 0x3c]
mov eax, ebp
shl eax, 2
mov dword [esp + 0x10], eax
test edx, edx
jle 0x43a163
mov eax, dword [sym.imp.GDI32.dll_GetPixel]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
mov ecx, edx
sub ecx, esi
add eax, 3
dec ecx
xor ebx, ebx
imul ecx, dword [esp + 0x10]
add eax, ecx
mov dword [esp + 0x7c], eax
test ebp, ebp
jle 0x43a15a
push esi
push ebx
push edi
call dword [esp + 0x24]
mov ecx, dword [esp + 0x7c]
test eax, eax
setne al
dec al
mov byte [ecx], al
add ecx, 4
mov ebp, dword [esp + 0x38]
inc ebx
mov dword [esp + 0x7c], ecx
cmp ebx, ebp
jl 0x43a132
mov edx, dword [esp + 0x3c]
inc esi
cmp esi, edx
jl 0x43a115
mov ebx, dword [esp + 0x1c]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop ebp
push dword [esp + 0x28]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push dword [esp + 0x2c]
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x68
ret 4
Function at 0x43a4b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push edi
mov edi, dword [esp + 0x10]
mov dword [esp + 0x10], 0
cmp dword [edi + 0x1c], 0
jne 0x43a5c7
cmp dword [edi + 0x14], 1
push ebx
push ebp
jne 0x43a4fd
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0x10]
push 1
neg eax
cdq
push ecx
push eax
push dword [edi]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [edi + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0xc]
push esi
mov esi, dword [esp + 0x24]
cmp eax, esi
jle 0x43a586
mov ecx, dword [edi + 4]
sub ecx, eax
mov eax, esi
add ecx, dword [edi + 8]
sub eax, 1
je 0x43a56f
sub eax, 1
je 0x43a556
sub eax, 2
je 0x43a53f
push esi
push dword [esp + 0x24]
push ecx
call fcn.00418f20
add esp, 0xc
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x20]
mov ax, word [eax]
mov word [ecx], ax
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x20]
mov al, byte [eax]
mov byte [ecx], al
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
push edi
call fcn.00412030
mov eax, dword [edi + 8]
cmp esi, eax
jl 0x43a5b5
push 0
lea eax, [esp + 0x20]
push eax
push esi
push dword [esp + 0x2c]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x1c]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov ecx, dword [edi + 4]
sub ecx, dword [edi + 0xc]
push esi
push dword [esp + 0x24]
add ecx, eax
jmp 0x43a527
xor eax, eax
pop edi
add esp, 8
ret 0xc
Function at 0x43b02f
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 + 0x5210f8]
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 0x43b06f
cmp byte [ebx], 0xa
jne 0x43b06f
or byte [edi + eax + 0x28], 4
jmp 0x43b074
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 0x43b173
mov dl, byte [eax]
cmp dl, 0x1a
je 0x43b156
inc eax
cmp dl, 0xd
je 0x43b0a0
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x43b0c6
cmp eax, ecx
jae 0x43b0d4
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 0x43b088
jmp 0x43b173
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 0x43b151
cmp dword [ebp - 0x10], 0
je 0x43b151
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x5210f8]
test byte [eax + edi + 0x28], 0x48
je 0x43b12b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x43b116
mov byte [esi], dl
jmp 0x43b127
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5210f8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x43b173
cmp byte [ebp - 1], 0xa
jne 0x43b13a
cmp esi, ebx
jne 0x43b13a
mov byte [esi], 0xa
jmp 0x43b172
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0043b510
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x43b173
mov byte [esi], 0xd
jmp 0x43b172
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x5210f8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x43b170
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x43b173
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43b17c
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 + 0x5210f8]
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 0x43b1c2
cmp word [ebx], dx
jne 0x43b1c2
or byte [eax + edi + 0x28], 4
jmp 0x43b1c7
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 0x43b32a
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 0x43b30a
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x43b208
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x43b23e
cmp eax, edx
jae 0x43b24c
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 0x43b1e3
jmp 0x43b32a
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 0x43b305
cmp dword [ebp - 0x18], 0
je 0x43b305
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x5210f8]
test byte [eax + edi + 0x28], 0x48
je 0x43b2db
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 0x43b29f
mov word [esi], cx
jmp 0x43b2d6
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x5210f8]
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 + 0x5210f8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x5210f8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x43b32a
pop eax
cmp word [ebp - 4], ax
jne 0x43b2eb
cmp esi, ebx
jne 0x43b2eb
mov word [esi], ax
jmp 0x43b327
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0043b510
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x43b32a
push 0xd
pop eax
jmp 0x43b2e6
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x5210f8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x43b324
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x43b32a
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 0x43d34e
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4e81c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0042b0f5
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0042b0f5
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x440b7f
cmp word [ecx], dx
je 0x440b7f
mov eax, dword [0x4b44dc]
push edi
dec eax
push eax
push 0x4b43c8
call fcn.00440cf8
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x440bf2
cmp word [eax], dx
je 0x440bf2
mov eax, dword [edi]
test eax, eax
je 0x440ba3
cmp word [eax], dx
je 0x440ba3
lea eax, [ebp - 0x10]
push eax
call fcn.00440d59
jmp 0x440bac
lea eax, [ebp - 0x10]
push eax
call fcn.00441047
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x440c1c
mov eax, dword [0x4b43c4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4b40b8
call fcn.00440cf8
add esp, 0xc
test al, al
je 0x440c1c
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x440be7
cmp word [eax], di
je 0x440be7
lea eax, [ebp - 0x10]
push eax
call fcn.00440d59
pop ecx
jmp 0x440c1e
lea eax, [ebp - 0x10]
push eax
call fcn.00441047
jmp 0x440be4
mov eax, dword [edi]
test eax, eax
je 0x440c09
cmp word [eax], dx
je 0x440c09
lea eax, [ebp - 0x10]
push eax
call fcn.0044117b
pop ecx
jmp 0x440c1c
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x440ce7
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0044126d
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x440ce7
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x440ce7
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x440ce7
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x440c74
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0042baec
test ebx, ebx
je 0x440ce2
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0042baec
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x440ce7
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x440ce7
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004276a5
add esp, 0x10
xor eax, eax
inc eax
jmp 0x440ce9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042fae0
leave
ret
Function at 0x441373
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042b0f5
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4413e2
cmp esi, dword [ebp - 4]
je 0x4413dd
cmp dword [ebp + 0xc], 0
je 0x4413dd
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4413ba
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0044143c
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4413e4
xor eax, eax
inc eax
jmp 0x4413e4
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x441470
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44149d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44149d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret