joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425fa0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
cmp dword [ebx + 0x14], 0
jne 0x425fc2
push ebx
call fcn.00415160
mov dword [ebx + 0x14], 1
mov dword [ebx + 0xc], 0
mov ebp, dword [ebx + 0xc]
mov ecx, dword [ebx + 4]
mov esi, dword [esp + 0x1c]
sub ecx, ebp
add ecx, dword [ebx + 0x10]
cmp ebp, esi
jl 0x42603e
mov eax, esi
sub eax, 1
je 0x42602a
sub eax, 1
je 0x426014
sub eax, 2
je 0x426000
push esi
push ecx
push dword [esp + 0x20]
call fcn.00419240
add esp, 0xc
mov eax, esi
sub dword [ebx + 0xc], esi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [ecx]
pop edi
mov dword [eax], ecx
mov eax, esi
sub dword [ebx + 0xc], esi
pop esi
pop ebp
pop ebx
ret 0xc
mov eax, dword [esp + 0x18]
mov cx, word [ecx]
pop edi
mov word [eax], cx
mov eax, esi
sub dword [ebx + 0xc], esi
pop esi
pop ebp
pop ebx
ret 0xc
mov dl, byte [ecx]
mov eax, esi
mov ecx, dword [esp + 0x18]
pop edi
mov byte [ecx], dl
sub dword [ebx + 0xc], esi
pop esi
pop ebp
pop ebx
ret 0xc
mov eax, dword [esp + 0x18]
push ebp
push ecx
push eax
call fcn.00419240
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [ebx + 8]
add eax, ebp
mov ecx, dword [ebx]
sub esi, ebp
mov dword [esp + 0x18], eax
push 0
cmp esi, edx
jl 0x426086
lea edx, [esp + 0x18]
push edx
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
pop edi
pop esi
add eax, ebp
mov dword [ebx + 0xc], 0
pop ebp
pop ebx
ret 0xc
lea eax, [esp + 0x18]
push eax
push edx
push dword [ebx + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
cmp esi, eax
jle 0x4260a6
mov esi, eax
mov eax, dword [esp + 0x18]
push esi
push dword [ebx + 4]
push eax
call fcn.00419240
sub dword [ebx + 0xc], esi
lea eax, [esi + ebp]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x4260d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push 0x1000
push 0
push dword [0x46c694]
mov dword [esp + 0x14], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x426260
mov cl, byte [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov esi, edx
mov edi, edi
cmp ebp, 0xffffffff
je 0x42611e
test ebp, ebp
je 0x4261c6
dec ebp
cmp dword [ebx + 4], 0
lea edi, [ebx + 4]
je 0x42613a
push 1
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.00425fa0
mov dword [esp + 0x10], eax
jmp 0x426154
push 0
lea eax, [esp + 0x14]
push eax
push 1
lea eax, [esp + 0x30]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
mov cl, byte [esp + 0x24]
cmp eax, 1
jne 0x4261c9
test cl, cl
je 0x426168
mov byte [esi], cl
inc esi
mov cl, byte [esp + 0x24]
mov eax, dword [esp + 0x14]
mov edi, esi
mov edx, dword [esp + 0x1c]
dec eax
sub edi, edx
cmp edi, eax
jle 0x4261a3
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x46c694]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x24]
mov edx, eax
mov dword [esp + 0x1c], edx
lea esi, [edi + edx]
test cl, cl
je 0x4261c6
cmp dword [esp + 0x28], 0
jne 0x426110
cmp cl, 0xd
je 0x4261d2
cmp cl, 0xa
jne 0x426110
dec esi
jmp 0x426243
lea edi, [ebx + 4]
cmp dword [esp + 0x28], 0
jne 0x426243
jmp 0x4261d5
lea edi, [ebx + 4]
cmp cl, 0xa
jne 0x4261dd
dec esi
jmp 0x426243
cmp cl, 0xd
jne 0x426243
dec esi
cmp dword [edi], 0
je 0x4261fb
push 1
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.00425fa0
mov dword [esp + 0x10], eax
jmp 0x426211
push 0
lea eax, [esp + 0x14]
push eax
push 1
lea eax, [esp + 0x30]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x24], 0xa
je 0x426243
cmp dword [edi], 0
je 0x426222
inc dword [ebx + 0xc]
jmp 0x426243
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebx]
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x30]
mov ecx, esi
sub ecx, dword [esp + 0x1c]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
xor eax, eax
pop ebx
add esp, 0x10
ret 0x10
Function at 0x426270
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x1c]
push 0x1000
push 0
push dword [0x46c694]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 8], edx
test edx, edx
je 0x42642f
mov ax, word [esp + 0x1c]
push ebp
push esi
push edi
mov edi, edx
mov dword [esp + 0x1c], 0x1000
mov dword [esp + 0x18], 0x7ff
mov ecx, dword [esp + 0x30]
cmp ecx, 0xffffffff
je 0x4262c9
test ecx, ecx
je 0x42638c
dec ecx
mov dword [esp + 0x30], ecx
cmp dword [ebx + 4], 0
lea ebp, [ebx + 4]
je 0x4262e5
push 2
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.00425fa0
mov dword [esp + 0x10], eax
jmp 0x4262ff
push 0
lea eax, [esp + 0x14]
push eax
push 2
lea eax, [esp + 0x34]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
cmp eax, 2
mov ax, word [esp + 0x28]
jne 0x42638f
test ax, ax
je 0x42631d
mov word [edi], ax
add edi, 2
mov ax, word [esp + 0x28]
mov edx, dword [esp + 0x14]
mov esi, edi
mov ecx, dword [esp + 0x18]
sub esi, edx
sar esi, 1
cmp esi, ecx
jle 0x426364
mov eax, dword [esp + 0x1c]
add ecx, 0x800
add eax, 0x1000
mov dword [esp + 0x18], ecx
push eax
push edx
push 8
push dword [0x46c694]
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
mov ax, word [esp + 0x28]
mov dword [esp + 0x14], edx
lea edi, [edx + esi*2]
test ax, ax
je 0x42638f
cmp dword [esp + 0x2c], 0
jne 0x4262b3
cmp ax, 0xd
je 0x426396
cmp ax, 0xa
jne 0x4262b3
sub edi, 2
jmp 0x42640e
lea ebp, [ebx + 4]
cmp dword [esp + 0x2c], 0
jne 0x42640e
cmp ax, 0xa
jne 0x4263a1
sub edi, 2
jmp 0x42640e
cmp ax, 0xd
jne 0x42640e
sub edi, 2
cmp dword [ebp], 0
je 0x4263c3
push 2
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.00425fa0
mov dword [esp + 0x10], eax
jmp 0x4263d9
push 0
lea eax, [esp + 0x14]
push eax
push 2
lea eax, [esp + 0x34]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [esp + 0x28], 0xa
je 0x42640e
cmp dword [ebp], 0
je 0x4263ed
add dword [ebx + 0xc], 2
jmp 0x42640e
push 1
lea eax, [esp + 0x24]
mov dword [esp + 0x20], 0xfffffffe
push eax
push 0xfffffffffffffffe
push dword [ebx]
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, edi
sub ecx, dword [esp + 0x14]
sar ecx, 1
mov dword [eax], ecx
xor eax, eax
mov word [edi], ax
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
pop ebx
add esp, 0x14
ret 0x10
Function at 0x426440
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x46c694]
mov dword [esp + 0x10], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0xc], edx
test edx, edx
je 0x426590
mov eax, dword [esp + 0x1c]
mov cl, byte [esp + 3]
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, edx
cmp edi, 0xffffffff
je 0x42648c
test edi, edi
je 0x4264fd
dec edi
push esi
push ebp
call fcn.00438010
mov dword [esp + 0x20], eax
test eax, eax
jne 0x42649f
xor cl, cl
jmp 0x4264a1
mov cl, byte [esi]
mov edx, dword [esp + 0x1c]
add esi, eax
mov eax, dword [esp + 0x14]
mov ebx, esi
sub ebx, edx
mov byte [esp + 0x13], cl
add eax, 0xfffffffb
cmp ebx, eax
jle 0x4264e4
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x46c694]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x13]
mov edx, eax
mov dword [esp + 0x1c], edx
lea esi, [ebx + edx]
mov eax, dword [esp + 0x2c]
test cl, cl
je 0x4264fd
test eax, eax
jne 0x426482
cmp cl, 0xd
je 0x426501
cmp cl, 0xa
jne 0x426482
dec esi
jmp 0x426573
test eax, eax
jne 0x426573
cmp cl, 0xa
jne 0x426509
dec esi
jmp 0x426573
cmp cl, 0xd
jne 0x426573
dec esi
cmp dword [ebp + 4], 0
je 0x426528
push 1
lea eax, [esp + 0x17]
push eax
push ebp
call fcn.00425fa0
mov dword [esp + 0x20], eax
jmp 0x42653f
push 0
lea eax, [esp + 0x24]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x426573
cmp dword [ebp + 4], 0
je 0x426551
inc dword [ebp + 0xc]
jmp 0x426573
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebp]
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, esi
sub ecx, dword [esp + 0x1c]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
add esp, 0x14
ret 0x10
Function at 0x4265a0
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 0x4266b7
cmp dword [edi + 0x14], 1
push ebx
push ebp
jne 0x4265ed
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 0x426676
mov ecx, dword [edi + 4]
sub ecx, eax
mov eax, esi
add ecx, dword [edi + 8]
sub eax, 1
je 0x42665f
sub eax, 1
je 0x426646
sub eax, 2
je 0x42662f
push esi
push dword [esp + 0x24]
push ecx
call fcn.00419240
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.00415160
mov eax, dword [edi + 8]
cmp esi, eax
jl 0x4266a5
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 0x426617
xor eax, eax
pop edi
add esp, 8
ret 0xc

Function at 0x428096
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x449680
push 0x449678
push str.FlsAlloc
push 0x1f
call fcn.004284ad
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4280ca
push dword [ebp + 8]
mov ecx, esi
call dword [0x455fec]
call esi
jmp 0x4280d0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x428114
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x449690
push 0x449688
push str.FlsGetValue
push 0x21
call fcn.004284ad
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42814b
push dword [ebp + 8]
mov ecx, esi
call dword [0x455fec]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x428153
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x449698
push 0x449690
push str.FlsSetValue
push 0x22
call fcn.004284ad
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42818d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x455fec]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x436a74
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 + 0x46e9b8]
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 0x436ab4
cmp byte [ebx], 0xa
jne 0x436ab4
or byte [edi + eax + 0x28], 4
jmp 0x436ab9
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 0x436bb8
mov dl, byte [eax]
cmp dl, 0x1a
je 0x436b9b
inc eax
cmp dl, 0xd
je 0x436ae5
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x436b0b
cmp eax, ecx
jae 0x436b19
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 0x436acd
jmp 0x436bb8
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 0x436b96
cmp dword [ebp - 0x10], 0
je 0x436b96
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x46e9b8]
test byte [eax + edi + 0x28], 0x48
je 0x436b70
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x436b5b
mov byte [esi], dl
jmp 0x436b6c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x46e9b8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x436bb8
cmp byte [ebp - 1], 0xa
jne 0x436b7f
cmp esi, ebx
jne 0x436b7f
mov byte [esi], 0xa
jmp 0x436bb7
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00436f15
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x436bb8
mov byte [esi], 0xd
jmp 0x436bb7
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x46e9b8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x436bb5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x436bb8
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x436bc1
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 + 0x46e9b8]
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 0x436c07
cmp word [ebx], dx
jne 0x436c07
or byte [eax + edi + 0x28], 4
jmp 0x436c0c
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 0x436d6f
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 0x436d4f
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x436c4d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x436c83
cmp eax, edx
jae 0x436c91
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 0x436c28
jmp 0x436d6f
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 0x436d4a
cmp dword [ebp - 0x18], 0
je 0x436d4a
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x46e9b8]
test byte [eax + edi + 0x28], 0x48
je 0x436d20
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 0x436ce4
mov word [esi], cx
jmp 0x436d1b
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x46e9b8]
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 + 0x46e9b8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x46e9b8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x436d6f
pop eax
cmp word [ebp - 4], ax
jne 0x436d30
cmp esi, ebx
jne 0x436d30
mov word [esi], ax
jmp 0x436d6c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00436f15
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x436d6f
push 0xd
pop eax
jmp 0x436d2b
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x46e9b8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x436d69
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x436d6f
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 0x438010
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 4], 0
je 0x438037
push 1
lea eax, [esp + 0x10]
push eax
push esi
call fcn.00425fa0
mov dword [esp + 4], eax
jmp 0x438051
push 0
lea eax, [esp + 8]
push eax
push 1
lea eax, [esp + 0x18]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 4]
cmp eax, 1
jne 0x438108
mov cl, byte [esp + 0xc]
test cl, cl
js 0x438076
mov eax, dword [esp + 0x10]
pop esi
mov byte [eax], cl
mov byte [eax + 1], 0
mov eax, 1
pop ecx
ret 8
mov al, cl
and al, 0xe0
push edi
cmp al, 0xc0
jne 0x438086
mov edi, 2
jmp 0x4380a2
mov al, cl
and al, 0xf0
cmp al, 0xe0
jne 0x438095
mov edi, 3
jmp 0x4380a2
mov al, cl
and al, 0xf8
cmp al, 0xf0
jne 0x4380f4
mov edi, 4
mov eax, dword [esp + 0x14]
push ebx
lea ebx, [edi - 1]
mov byte [eax], cl
inc eax
cmp dword [esi + 4], 0
je 0x4380ce
push ebx
push eax
push esi
call fcn.00425fa0
mov ecx, eax
xor eax, eax
cmp ecx, ebx
pop ebx
setne al
dec eax
and eax, edi
pop edi
pop esi
pop ecx
ret 8
push 0
lea ecx, [esp + 0x10]
push ecx
push ebx
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0xc]
xor eax, eax
cmp ecx, ebx
pop ebx
setne al
dec eax
and eax, edi
pop edi
pop esi
pop ecx
ret 8
mov eax, dword [esp + 0x14]
pop edi
pop esi
mov word [eax], 0x3f
mov eax, 1
pop ecx
ret 8
xor eax, eax
pop esi
pop ecx
ret 8

Function at 0x43837a
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x46bf78]
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.00427956
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.00427956
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 0x43baed
cmp word [ecx], dx
je 0x43baed
mov eax, dword [0x44d2ac]
push edi
dec eax
push eax
push 0x44d198
call fcn.0043bc66
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x43bb60
cmp word [eax], dx
je 0x43bb60
mov eax, dword [edi]
test eax, eax
je 0x43bb11
cmp word [eax], dx
je 0x43bb11
lea eax, [ebp - 0x10]
push eax
call fcn.0043bcc7
jmp 0x43bb1a
lea eax, [ebp - 0x10]
push eax
call fcn.0043bfb5
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x43bb8a
mov eax, dword [0x44d194]
push dword [ebp - 0x14]
dec eax
push eax
push 0x44ce88
call fcn.0043bc66
add esp, 0xc
test al, al
je 0x43bb8a
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x43bb55
cmp word [eax], di
je 0x43bb55
lea eax, [ebp - 0x10]
push eax
call fcn.0043bcc7
pop ecx
jmp 0x43bb8c
lea eax, [ebp - 0x10]
push eax
call fcn.0043bfb5
jmp 0x43bb52
mov eax, dword [edi]
test eax, eax
je 0x43bb77
cmp word [eax], dx
je 0x43bb77
lea eax, [ebp - 0x10]
push eax
call fcn.0043c0e9
pop ecx
jmp 0x43bb8a
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 0x43bc55
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0043c1db
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x43bc55
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x43bc55
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x43bc55
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x43bbe2
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004282f0
test ebx, ebx
je 0x43bc50
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004282f0
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43bc55
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 0x43bc55
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0044312c
add esp, 0x10
xor eax, eax
inc eax
jmp 0x43bc57
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043526a
leave
ret
Function at 0x43c2e1
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00427956
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 0x43c350
cmp esi, dword [ebp - 4]
je 0x43c34b
cmp dword [ebp + 0xc], 0
je 0x43c34b
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x43c328
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0043c3aa
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x43c352
xor eax, eax
inc eax
jmp 0x43c352
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x43c3e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43c40d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43c40d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x443373
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 0x443410
push ebx
push esi
call fcn.00443413
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.00438c2b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4433bd
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44340f
push edi
push eax
call fcn.00427228
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4433dd
call fcn.004271ee
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44340e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00438c2b
add esp, 0x20
test eax, eax
jne 0x4433fc
push edi
call fcn.004271ee
jmp 0x443404
push ebx
call fcn.004271ee
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