joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44fc80
Capabilities:
Hash data using fnv

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x494d25
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x18
push esi
push edi
mov eax, dword [0x4b7180]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebx + 0xc]
movzx eax, byte [esi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [esi + 1]
xor edx, eax
movzx eax, byte [esi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [esi + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edi
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.00418a70
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x44fd17
mov eax, dword [ebx + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
jmp 0x44fe50
cmp dword [edi + 8], 0x5d1745d
je 0x44fe66
lea eax, [edi + 4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
push 0x2c
mov dword [ebp - 0x20], 0
call fcn.0046de66
mov esi, eax
add esp, 4
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x20], esi
mov ecx, dword [eax]
mov dword [esi + 8], ecx
movups xmm0, xmmword [eax + 4]
movups xmmword [esi + 0xc], xmm0
movups xmm0, xmmword [eax + 0x14]
movups xmmword [esi + 0x1c], xmm0
mov dword [ebp - 4], 1
mov eax, dword [edi + 8]
inc eax
movss xmm3, dword [edi]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4a87a0]
mov eax, dword [edi + 0x1c]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
addsd xmm1, qword [eax*8 + 0x4a87a0]
movaps xmm2, xmm0
cvtpd2ps xmm1, xmm1
divss xmm2, xmm1
comiss xmm2, xmm3
jbe 0x44fe00
divss xmm0, xmm3
call fcn.0041c540
call fcn.00491300
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [edi + 0x1c]
cmp eax, ecx
jae 0x44fddc
cmp eax, 0x200
jae 0x44fdda
shl eax, 3
cmp eax, ecx
jae 0x44fddc
mov eax, ecx
push eax
mov ecx, edi
call fcn.0042cc30
push dword [ebp - 0x14]
lea eax, [esi + 8]
mov ecx, edi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00418a70
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
jmp 0x44fe03
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
inc dword [edi + 8]
mov dword [esi + 4], eax
mov dword [esi], edx
mov dword [eax], esi
mov dword [edx + 4], esi
mov ecx, dword [edi + 0xc]
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0x18]
and eax, dword [ebp - 0x14]
mov edi, dword [ecx + eax*8]
cmp edi, dword [esi]
mov esi, dword [ebp - 0x20]
jne 0x44fe31
mov dword [ecx + eax*8], esi
jmp 0x44fe43
cmp edi, edx
jne 0x44fe3a
mov dword [ecx + eax*8], esi
jmp 0x44fe47
mov edx, dword [ebp - 0x18]
cmp dword [ecx + eax*8 + 4], edx
jne 0x44fe47
mov dword [ecx + eax*8 + 4], esi
mov eax, dword [ebx + 8]
mov dword [eax], esi
mov byte [eax + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
push str.unordered_map_set_too_long
call fcn.0045640f
int3
Function at 0x453d40
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497afd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x50
push esi
push edi
mov eax, dword [0x4b7180]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov edi, dword [esi + 4]
test edi, edi
jne 0x453e7e
call fcn.00404e10
mov ecx, eax
test ecx, ecx
je 0x453efa
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
push str.SYSTEM_EVT_HANDLER
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
call fcn.00404180
test al, al
jne 0x453dca
push 0x12
push str.SYSTEM_EVT_HANDLER
lea ecx, [ebp - 0x14]
call fcn.004044b0
mov dword [ebp - 4], 0xffffffff
xorps xmm0, xmm0
mov eax, dword [esi + 8]
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x5c], 0
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
mov dword [ebp - 0x58], 0x453f10
mov dword [ebp - 0x38], esi
call dword [sym.imp.USER32.dll_RegisterClassW]
mov eax, dword [ebp - 0x18]
push 0
push dword [eax + 8]
push 0
push 0
push 1
push 0xffffffffffffffff
push 1
push 0xffffffffffffffff
push SysReAllocString
push 0
push esi
push 0x8000000
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
test edi, edi
jne 0x453e50
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x453e4c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor edi, edi
jmp 0x453e78
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x453e78
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x18]
mov dword [esi + 4], edi
push 1
push 0
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push edi
lea eax, [ebp - 0x34]
movq qword [ebp - 0x24], xmm0
push eax
movups xmmword [ebp - 0x34], xmm0
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x453ee4
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [ebp - 0x30]
cmp eax, 0x401
je 0x453ecb
cmp eax, 0x402
jne 0x453ee4
mov dword [esi + 0xc], eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x80004005
call fcn.00404bf0
int3
Function at 0x4547f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
mov dword [ebp - 0x24], eax
mov ebx, ecx
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x28], 2
push esi
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x38]
push eax
lea esi, [ebx + 0x20]
mov dword [ebp - 0x2c], 4
push esi
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 1
call dword [sym.imp.Secur32.dll_ApplyControlToken]
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 0x1c], 2
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push ecx
push 0
push 0
push ecx
push 0
push 0
push 0x811c
lea eax, [ebp - 0x20]
mov dword [ebp - 0x10], 1
push 0
mov dword [ebp - 0xc], eax
lea eax, [ebx + 0x18]
push esi
push eax
mov dword [ebp - 8], 0x811c
call dword [sym.imp.Secur32.dll_InitializeSecurityContextW]
test eax, eax
jne 0x4548b5
mov esi, dword [ebp - 0x18]
push edi
mov edi, dword [ebp - 0x20]
test edi, edi
je 0x4548aa
nop dword [eax]
push 0
push edi
push esi
push dword [ebx + 0x14]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x4548a7
add esi, eax
sub edi, eax
jne 0x454890
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.Secur32.dll_FreeContextBuffer]
lea esi, [ebx + 0x20]
pop edi
push 2
push dword [ebx + 0x14]
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.Secur32.dll_DeleteSecurityContext]
lea eax, [ebx + 0x18]
push eax
call dword [sym.imp.Secur32.dll_FreeCredentialsHandle]
push dword [ebx + 0x14]
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4555a0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x4b7180]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x414], 0x400
push edi
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x410], eax
call fcn.00455710
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.00404360
mov edi, eax
lea eax, [ebp - 0x408]
lea ecx, [edi + 0x10]
push ecx
push 0x4a84b0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x455609
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x408]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov eax, dword [ebp + 8]
cmp al, 0xff
jne 0x45567c
cmp byte [ebp + 0xc], 0
jne 0x45567c
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x408]
push eax
push 0x4a610c
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ax, word [ebp - 0x408]
cmp ax, 0x31
jne 0x455664
mov dword [esi + 0xc], 1
jmp 0x4556ca
cmp ax, 0x32
jne 0x455673
mov dword [esi + 0xc], 2
jmp 0x4556ca
mov dword [esi + 0xc], 0
jmp 0x4556ca
push eax
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x408]
push 0x4a771c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [ebp - 0x408]
add esp, 0xc
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4556a0
sub ecx, edx
lea eax, [ebp - 0x408]
sar ecx, 1
push ecx
push eax
push 1
push 0x4a610c
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov eax, dword [ebp - 0x410]
cmp eax, dword [esi + 0xc]
je 0x4556dc
mov cl, 1
lea eax, [esi + 8]
xchg byte [eax], cl
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0046de4a
mov esp, ebp
pop ebp
ret 8
Function at 0x46d9e6
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.0047d781
mov eax, dword [eax + 0x14]
test eax, eax
je 0x46da29
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 0x46da29
sub eax, 1
je 0x46da24
sub eax, 1
je 0x46da20
xor eax, eax
leave
ret
push 3
jmp 0x46da2b
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x46edff
Capabilities:
Parse pe header

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

Function at 0x4851d4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49f7a4
push 0x49f79c
push str.FlsAlloc
push 0x1f
call fcn.00484fff
mov esi, eax
add esp, 0x10
test esi, esi
je 0x485208
push dword [ebp + 8]
mov ecx, esi
call dword [0x49a3d8]
call esi
jmp 0x48520e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x485252
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49f7b4
push 0x49f7ac
push str.FlsGetValue
push 0x21
call fcn.00484fff
mov esi, eax
add esp, 0x10
test esi, esi
je 0x485289
push dword [ebp + 8]
mov ecx, esi
call dword [0x49a3d8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x485291
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49f7bc
push 0x49f7b4
push str.FlsSetValue
push 0x22
call fcn.00484fff
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4852cb
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x49a3d8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x488553
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4b7180]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x48859e
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004886ee
test al, al
jne 0x488598
sub edx, 2
cmp edx, edi
jne 0x48857e
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4885c0
lea eax, [edi + 2]
cmp edx, eax
je 0x4885c0
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0048849f
add esp, 0x10
jmp 0x4886ba
push esi
lea ecx, [ebp - 0x255]
call fcn.004886ee
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x488603
push dword [ebp - 0x25c]
jmp 0x4885b0
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x488640
cmp word [ebp - 0x226], 0
je 0x488661
cmp word [ebp - 0x226], ax
jne 0x488640
cmp word [ebp - 0x224], 0
je 0x488661
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0048849f
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4886ad
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x48861a
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x488695
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4886ba
push 0x4882cf
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0047c350
add esp, 0x10
jmp 0x48868a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046de4a
leave
ret

Function at 0x488fd0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x488fe1
pop esi
ret
push ebx
push edi
push esi
call fcn.00488f99
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00483735
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x489009
push ebx
push esi
push edi
call fcn.0046fde0
add esp, 0xc
push 0
call fcn.004836fb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4893d9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048901e
Function at 0x48b834
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00483410
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 0x48b8a3
cmp esi, dword [ebp - 4]
je 0x48b89e
cmp dword [ebp + 0xc], 0
je 0x48b89e
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x48b87b
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0048b386
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x48b8a5
xor eax, eax
inc eax
jmp 0x48b8a5
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x48b90a
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4b7180]
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.00483410
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.00483410
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 0x48b981
cmp word [ecx], dx
je 0x48b981
mov eax, dword [0x49fe0c]
push edi
dec eax
push eax
push 0x49fcf8
call fcn.0048b8a9
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x48b9f4
cmp word [eax], dx
je 0x48b9f4
mov eax, dword [edi]
test eax, eax
je 0x48b9a5
cmp word [eax], dx
je 0x48b9a5
lea eax, [ebp - 0x10]
push eax
call fcn.0048b28c
jmp 0x48b9ae
lea eax, [ebp - 0x10]
push eax
call fcn.0048b327
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x48ba1e
mov eax, dword [0x49fcf4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x49f9e8
call fcn.0048b8a9
add esp, 0xc
test al, al
je 0x48ba1e
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x48b9e9
cmp word [eax], di
je 0x48b9e9
lea eax, [ebp - 0x10]
push eax
call fcn.0048b28c
pop ecx
jmp 0x48ba20
lea eax, [ebp - 0x10]
push eax
call fcn.0048b327
jmp 0x48b9e6
mov eax, dword [edi]
test eax, eax
je 0x48ba0b
cmp word [eax], dx
je 0x48ba0b
lea eax, [ebp - 0x10]
push eax
call fcn.0048b241
pop ecx
jmp 0x48ba1e
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 0x48bae9
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0048b72e
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x48bae9
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x48bae9
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x48bae9
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x48ba76
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0048546d
test ebx, ebx
je 0x48bae4
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0048546d
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x48bae9
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 0x48bae9
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0048f4cd
add esp, 0x10
xor eax, eax
inc eax
jmp 0x48baeb
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046de4a
leave
ret
Function at 0x490df0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x490e1d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x490e1d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x418a76
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
lea eax, [eax + 0xc]
mov edx, eax
cmp edx, eax
je 0x418ad0
push eax
push 0x4175da
call fcn.00418b0e
push 7
push 0x4450bc
push dword [eax + 0x30]
call fcn.00418e67
cmp eax, 0
jne 0x418aaa
inc eax
jmp 0x418ad2
push 0x4175f2
call fcn.00418b0e
push 7
push 0x4450bc
push dword [eax + 0x30]
call fcn.00418e67
cmp eax, 0
jne 0x418acb
inc eax
jmp 0x418ad2
pop eax
mov eax, dword [eax]
jmp 0x418a84
xor eax, eax
ret

Function at 0x418ae8
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
mov eax, dword fs:[0x30]
mov al, byte [eax + 0x68]
and al, 0x70
cmp al, 0x70
sete al
movzx eax, al
ret

Function at 0x418afc
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov eax, dword fs:[0x30]
mov al, byte [eax + 2]
test al, al
setne al
movzx eax, al
ret

Function at 0x418b0e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
lea edi, [0x4450bc]
mov esi, dword [ebp + 8]
lodsw ax, word [esi]
xor ax, 0xfc
stosw word es:[edi], ax
cmp ax, 0
jne 0x418b1c
pop edi
pop esi
leave
ret 4

Function at 0x418b30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
lea edi, [0x4450bc]
mov esi, dword [ebp + 8]
lodsb al, byte [esi]
xor al, 0xfc
stosb byte es:[edi], al
cmp al, 0
jne 0x418b3e
pop edi
pop esi
leave
ret 4

Function at 0x418d72
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x3c]
mov eax, dword [eax + ebx + 0x78]
add eax, ebx
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x20]
mov edi, dword [edx + ebx]
test edi, edi
je 0x418dc3
add edi, ebx
xchg esi, eax
push ecx
xor eax, eax
lea ecx, [eax - 1]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg esi, eax
mov esi, dword [ebp + 0xc]
repe cmpsb byte [esi], byte es:[edi]
pop ecx
jne 0x418dc3
sub ecx, dword [eax + 0x18]
neg ecx
mov edx, dword [eax + 0x24]
add edx, ebx
movzx edx, word [edx + ecx*2]
mov eax, dword [eax + 0x1c]
add eax, ebx
mov eax, dword [eax + edx*4]
add eax, ebx
jmp 0x418dca
add edx, 4
loop 0x418d8a
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 8

Function at 0x418dd1
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
push esi
push edi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
lea ebp, [eax + 0xc]
mov eax, dword [ebp]
mov esi, dword [eax + 0x30]
movzx ecx, word [eax + 0x2e]
mov edi, dword [esp + 0x10]
mov dx, word [esi]
cmp dx, word [edi]
je 0x418e1d
cmp dx, 0x41
jb 0x418e02
cmp dx, 0x5a
jbe 0x418e08
cmp dx, 0x61
jb 0x418e14
cmp dx, 0x7a
ja 0x418e14
xor dx, 0x20
jmp 0x418e16
jmp 0x418e30
cmp dx, word [edi]
je 0x418e1d
jmp 0x418e30
add edi, 2
add esi, 2
sub ecx, 2
cmp ecx, 0
jne 0x418dee
mov eax, dword [eax + 0x18]
jmp 0x418e38
mov eax, dword [eax]
cmp ebp, eax
jne 0x418de3
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
Function at 0x1002a96a
Capabilities:
Parse pe header

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