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

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x1c]
push 0x1000
push 0
push dword [0x44f914]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 8], edx
test edx, edx
je 0x42092f
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 0x4207c9
test ecx, ecx
je 0x42088c
dec ecx
mov dword [esp + 0x30], ecx
cmp dword [ebx + 4], 0
lea ebp, [ebx + 4]
je 0x4207e5
push 2
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.004204a0
mov dword [esp + 0x10], eax
jmp 0x4207ff
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 0x42088f
test ax, ax
je 0x42081d
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 0x420864
mov eax, dword [esp + 0x1c]
add ecx, 0x800
add eax, 0x1000
mov dword [esp + 0x18], ecx
push eax
push edx
push 8
push dword [0x44f914]
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 0x42088f
cmp dword [esp + 0x2c], 0
jne 0x4207b3
cmp ax, 0xd
je 0x420896
cmp ax, 0xa
jne 0x4207b3
sub edi, 2
jmp 0x42090e
lea ebp, [ebx + 4]
cmp dword [esp + 0x2c], 0
jne 0x42090e
cmp ax, 0xa
jne 0x4208a1
sub edi, 2
jmp 0x42090e
cmp ax, 0xd
jne 0x42090e
sub edi, 2
cmp dword [ebp], 0
je 0x4208c3
push 2
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.004204a0
mov dword [esp + 0x10], eax
jmp 0x4208d9
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 0x42090e
cmp dword [ebp], 0
je 0x4208ed
add dword [ebx + 0xc], 2
jmp 0x42090e
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 0x420940
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x44f914]
mov dword [esp + 0x10], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0xc], edx
test edx, edx
je 0x420a90
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 0x42098c
test edi, edi
je 0x4209fd
dec edi
push esi
push ebp
call fcn.00428750
mov dword [esp + 0x20], eax
test eax, eax
jne 0x42099f
xor cl, cl
jmp 0x4209a1
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 0x4209e4
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x44f914]
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 0x4209fd
test eax, eax
jne 0x420982
cmp cl, 0xd
je 0x420a01
cmp cl, 0xa
jne 0x420982
dec esi
jmp 0x420a73
test eax, eax
jne 0x420a73
cmp cl, 0xa
jne 0x420a09
dec esi
jmp 0x420a73
cmp cl, 0xd
jne 0x420a73
dec esi
cmp dword [ebp + 4], 0
je 0x420a28
push 1
lea eax, [esp + 0x17]
push eax
push ebp
call fcn.004204a0
mov dword [esp + 0x20], eax
jmp 0x420a3f
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 0x420a73
cmp dword [ebp + 4], 0
je 0x420a51
inc dword [ebp + 0xc]
jmp 0x420a73
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 0x420b00
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 0x420c17
cmp dword [edi + 0x14], 1
push ebx
push ebp
jne 0x420b4d
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 0x420bd6
mov ecx, dword [edi + 4]
sub ecx, eax
mov eax, esi
add ecx, dword [edi + 8]
sub eax, 1
je 0x420bbf
sub eax, 1
je 0x420ba6
sub eax, 2
je 0x420b8f
push esi
push dword [esp + 0x24]
push ecx
call fcn.0041a4e0
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.00411300
mov eax, dword [edi + 8]
cmp esi, eax
jl 0x420c05
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 0x420b77
xor eax, eax
pop edi
add esp, 8
ret 0xc
Function at 0x421132
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x14], edi
je 0x421190
add ebx, 2
lea eax, [ebx*2 + 2]
push eax
push edi
push dword [0x44f914]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x421190
cmp dword [ebp + 0xc], 0
je 0x42117f
push dword [ebp + 0xc]
push edi
call fcn.004137ab
push 0x443ac8
push edi
call fcn.0041377a
add esp, 0x10
jmp 0x42118c
push 0x443ac8
push edi
call fcn.004137ab
pop ecx
pop ecx
mov esi, edi
jmp 0x421193
mov esi, dword [ebp + 0xc]
push 0
lea eax, [ebp + 0x10]
push eax
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
jne 0x4211fc
mov eax, dword [0x44f014]
dec eax
sub eax, 1
je 0x4211d6
sub eax, 0x16
je 0x4211ce
push 0
lea eax, [ebp + 0x10]
push eax
lea eax, [ebx + ebx]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4211fc
push esi
call fcn.00415b20
jmp 0x4211dc
push esi
call fcn.00415cb0
mov esi, eax
lea eax, [ebp + 0x10]
push 0
push eax
push esi
call fcn.00415a90
pop ecx
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call fcn.00415bb0
test edi, edi
je 0x42120f
push edi
push 0
push dword [0x44f914]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x4228e6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4392a0
push 0x439298
push str.FlsAlloc
push 0x1f
call fcn.00422cfd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42291a
push dword [ebp + 8]
mov ecx, esi
call dword [0x443d98]
call esi
jmp 0x422920
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x422964
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4392b0
push 0x4392a8
push str.FlsGetValue
push 0x21
call fcn.00422cfd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42299b
push dword [ebp + 8]
mov ecx, esi
call dword [0x443d98]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4229a3
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4392b8
push 0x4392b0
push str.FlsSetValue
push 0x22
call fcn.00422cfd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4229dd
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x443d98]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4271b7
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 + 0x451580]
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 0x4271f7
cmp byte [ebx], 0xa
jne 0x4271f7
or byte [edi + eax + 0x28], 4
jmp 0x4271fc
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 0x4272fb
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4272de
inc eax
cmp dl, 0xd
je 0x427228
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x42724e
cmp eax, ecx
jae 0x42725c
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 0x427210
jmp 0x4272fb
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 0x4272d9
cmp dword [ebp - 0x10], 0
je 0x4272d9
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x451580]
test byte [eax + edi + 0x28], 0x48
je 0x4272b3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42729e
mov byte [esi], dl
jmp 0x4272af
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x451580]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4272fb
cmp byte [ebp - 1], 0xa
jne 0x4272c2
cmp esi, ebx
jne 0x4272c2
mov byte [esi], 0xa
jmp 0x4272fa
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00427658
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4272fb
mov byte [esi], 0xd
jmp 0x4272fa
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x451580]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4272f8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4272fb
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x427304
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 + 0x451580]
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 0x42734a
cmp word [ebx], dx
jne 0x42734a
or byte [eax + edi + 0x28], 4
jmp 0x42734f
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 0x4274b2
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 0x427492
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x427390
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4273c6
cmp eax, edx
jae 0x4273d4
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 0x42736b
jmp 0x4274b2
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 0x42748d
cmp dword [ebp - 0x18], 0
je 0x42748d
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x451580]
test byte [eax + edi + 0x28], 0x48
je 0x427463
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 0x427427
mov word [esi], cx
jmp 0x42745e
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x451580]
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 + 0x451580]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x451580]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4274b2
pop eax
cmp word [ebp - 4], ax
jne 0x427473
cmp esi, ebx
jne 0x427473
mov word [esi], ax
jmp 0x4274af
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00427658
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4274b2
push 0xd
pop eax
jmp 0x42746e
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x451580]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4274ac
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4274b2
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 0x428750
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 0x428777
push 1
lea eax, [esp + 0x10]
push eax
push esi
call fcn.004204a0
mov dword [esp + 4], eax
jmp 0x428791
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 0x428848
mov cl, byte [esp + 0xc]
test cl, cl
js 0x4287b6
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 0x4287c6
mov edi, 2
jmp 0x4287e2
mov al, cl
and al, 0xf0
cmp al, 0xe0
jne 0x4287d5
mov edi, 3
jmp 0x4287e2
mov al, cl
and al, 0xf8
cmp al, 0xf0
jne 0x428834
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 0x42880e
push ebx
push eax
push esi
call fcn.004204a0
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 0x428b3a
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x44f1f8]
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.004221a6
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.004221a6
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 0x42c2ad
cmp word [ecx], dx
je 0x42c2ad
mov eax, dword [0x43b22c]
push edi
dec eax
push eax
push 0x43b118
call fcn.0042c426
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x42c320
cmp word [eax], dx
je 0x42c320
mov eax, dword [edi]
test eax, eax
je 0x42c2d1
cmp word [eax], dx
je 0x42c2d1
lea eax, [ebp - 0x10]
push eax
call fcn.0042c487
jmp 0x42c2da
lea eax, [ebp - 0x10]
push eax
call fcn.0042c775
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x42c34a
mov eax, dword [0x43b114]
push dword [ebp - 0x14]
dec eax
push eax
push 0x43ae08
call fcn.0042c426
add esp, 0xc
test al, al
je 0x42c34a
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x42c315
cmp word [eax], di
je 0x42c315
lea eax, [ebp - 0x10]
push eax
call fcn.0042c487
pop ecx
jmp 0x42c34c
lea eax, [ebp - 0x10]
push eax
call fcn.0042c775
jmp 0x42c312
mov eax, dword [edi]
test eax, eax
je 0x42c337
cmp word [eax], dx
je 0x42c337
lea eax, [ebp - 0x10]
push eax
call fcn.0042c8a9
pop ecx
jmp 0x42c34a
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 0x42c415
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0042c99b
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x42c415
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x42c415
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x42c415
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x42c3a2
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00422b40
test ebx, ebx
je 0x42c410
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00422b40
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x42c415
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 0x42c415
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00420f42
add esp, 0x10
xor eax, eax
inc eax
jmp 0x42c417
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00425bd6
leave
ret
Function at 0x42caa1
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004221a6
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 0x42cb10
cmp esi, dword [ebp - 4]
je 0x42cb0b
cmp dword [ebp + 0xc], 0
je 0x42cb0b
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x42cae8
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0042cb6a
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x42cb12
xor eax, eax
inc eax
jmp 0x42cb12
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x42cba0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42cbcd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42cbcd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x43831b
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 0x4383b8
push ebx
push esi
call fcn.004383bb
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.004293eb
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x438365
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4383b7
push edi
push eax
call fcn.00421a78
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x438385
call fcn.00421a3e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4383b6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004293eb
add esp, 0x20
test eax, eax
jne 0x4383a4
push edi
call fcn.00421a3e
jmp 0x4383ac
push ebx
call fcn.00421a3e
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
Function at 0x4543c6
Capabilities:
Create process on windows

Disassembly:
push ebx
xor eax, eax
push eax
push eax
mov ebx, dword [esp + 0x10]
cmp ebx, 0x333e
jne 0x4543e7
mov eax, dword [0x44f9d8]
push eax
mov eax, dword [eax]
call dword [eax + 0x38]
jmp 0x454620
mov ebx, dword [esp + 0x10]
cmp ebx, 0x333c
jne 0x454402
mov dword [0x44f950], 1
jmp 0x454620
mov ebx, dword [esp + 0x10]
cmp ebx, 0x332c
jne 0x4545fe
call fcn.00411d3b
push eax
mov ebx, 0x14
cmp ebx, dword [esp]
jne 0x454431
mov dword [0x44f950], 1
jmp 0x4545fb
mov ebx, 0x15
cmp ebx, dword [esp]
jne 0x4544e4
push dword [0x450efc]
mov eax, str..html
push eax
call fcn.0045b644
lea eax, [0x44f9a8]
push eax
call fcn.00412ff0
push dword [0x44f9a8]
call fcn.0046221a
and eax, eax
je 0x45449a
push 1
mov eax, 0x44702e
push eax
mov eax, 0x44702e
push eax
mov eax, dword [0x44f9a8]
push eax
mov eax, str.open
push eax
push 2
call fcn.0040dec4
push eax
call sub.SHELL32.dll_ShellExecuteW
jmp 0x4544df
push dword [0x450efc]
push dword [0x450efc]
mov edx, str.Cannot_save_temporary_file:_r_n
push edx
call fcn.00413050
mov edx, dword [0x44f9a8]
push edx
call fcn.00413050
add dword [0x450efc], 2
mov eax, str.PureUnit_1.3
push eax
mov edx, dword [0x44efbc]
add dword [esp + 4], edx
call fcn.004013c0
pop dword [0x450efc]
jmp 0x4545fb
mov ebx, 0x16
cmp ebx, dword [esp]
jne 0x4545fb
push dword [0x450efc]
push dword [0x450efc]
push 0
mov eax, str.Html_files__.html_.htmlAll_files__._.
push eax
push dword [esp + 0x18]
mov eax, str.Choose_target_filename...
push eax
call fcn.00401766
lea eax, [esp + 8]
push eax
call fcn.00412ff0
push dword [esp + 4]
mov edx, 0x44702e
pop ecx
call fcn.00401180
jne 0x4545fb
push dword [0x450efc]
push dword [0x450efc]
push dword [esp + 0xc]
call fcn.00411073
add dword [0x450efc], 2
mov edx, 0x44702e
pop ecx
mov dword [0x450efc], ecx
add ecx, dword [0x44efbc]
call fcn.00401180
je 0x45457e
call fcn.0040182e
mov ebx, eax
and ebx, ebx
jne 0x45457e
mov eax, 1
jmp 0x454580
xor eax, eax
and eax, eax
je 0x4545a9
mov edx, dword [esp + 4]
push dword [0x450efc]
push edx
call fcn.00413050
mov edx, str..html
push edx
call fcn.00413050
lea eax, [esp + 8]
push eax
call fcn.00412ff0
push dword [esp + 4]
call fcn.0046221a
mov ebx, eax
and ebx, ebx
jne 0x4545fb
push dword [0x450efc]
push dword [0x450efc]
mov edx, str.Cannot_save_report_file:_r_n
push edx
call fcn.00413050
mov edx, dword [esp + 0xc]
push edx
call fcn.00413050
add dword [0x450efc], 2
mov eax, str.PureUnit_1.3
push eax
mov edx, dword [0x44efbc]
add dword [esp + 4], edx
call fcn.004013c0
pop dword [0x450efc]
pop eax
jmp 0x454620
mov ebx, dword [esp + 0x10]
cmp ebx, 0x332d
jne 0x454620
call fcn.00411d3b
mov ebx, eax
cmp ebx, 0x14
jne 0x454620
mov dword [0x44f950], 1
mov eax, dword [esp + 0x10]
jmp 0x454628
push dword [esp]
call fcn.004130a0
push dword [esp + 4]
call fcn.004130a0
add esp, 8
pop ebx
ret 4