joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ab60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x41ab84
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041ac40
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x41aba5
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x41aba7
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x41ac24
jg 0x41abba
test esi, esi
je 0x41ac24
test ecx, ecx
jl 0x41abfe
jg 0x41abc4
test eax, eax
je 0x41abfe
cmp edi, ecx
jg 0x41abd6
jl 0x41abce
cmp esi, eax
jae 0x41abd6
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.0044f3f0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x41ac01
mov edx, dword [ebp + 8]
test edi, edi
jl 0x41ac24
jg 0x41ac0b
test esi, esi
je 0x41ac24
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x41ac24
push eax
push esi
push 1
push edx
call fcn.004573d1
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41bd60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
test edx, edx
je 0x41bd90
mov ecx, edx
push esi
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41bd70
sub ecx, esi
pop esi
je 0x41bd90
push 1
push 0
push 0
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop ebp
ret
Function at 0x41bf90
Capabilities:
Connect socket
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x13b8
call fcn.0044e430
mov eax, dword [0x6051c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x1394]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
je 0x41c1a2
lea eax, [ebp - 0x1398]
mov dword [ebp - 0x1398], 0
push eax
lea eax, [ebp - 0x13b8]
mov dword [ebp - 0x13b8], 0
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x13b4], 2
push 0x479fb4
push 0x479fa4
movlpd qword [ebp - 0x13a8], xmm0
movlpd qword [ebp - 0x13a0], xmm0
mov dword [ebp - 0x13b0], 1
mov dword [ebp - 0x13ac], 6
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x41c1a2
push eax
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x41c1a2
mov ecx, dword [ebp - 0x1398]
push 0x10
push dword [ecx + 0x18]
push edi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
js 0x41c1a2
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.0044f220
push 0
push 8
push 0x14
push 1
push 0
push 8
push 0x14
push 1
lea eax, [ebp - 0x204]
push str.GET__benchmarks_fur_furmark_version.php_HTTP_1.1_r_nHost:_www.ozone3d.net_r_nUser_Agent:_FurMark_v_d._d._d._d_r_nReferer:_FurMark_v_d._d._d._d_r_n_r_n
push eax
call fcn.00405f60
lea ecx, [ebp - 0x204]
add esp, 0x34
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41c0a0
push 0
sub ecx, edx
lea eax, [ebp - 0x204]
push ecx
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
push 0x1f4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 0xffffffff
je 0x41c1a2
push 0x1000
lea eax, [ebp - 0x1204]
push 0
push eax
call fcn.0044f220
add esp, 0xc
lea eax, [ebp - 0x1204]
xor esi, esi
push esi
push 0x1000
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x41c129
cmp eax, 0x1000
jae 0x41c1b5
mov byte [ebp + eax - 0x1204], 0
lea eax, [ebp - 0x1204]
push 0x47a048
push eax
call fcn.00450290
add esp, 8
mov esi, eax
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
test esi, esi
je 0x41c1a2
push 0x5ee860
push 0x5ee85c
push 0x5ee858
push 0x5ee854
push str.__d._d._d._d_
push esi
call fcn.0041c480
mov eax, dword [0x5ee854]
add esp, 0x18
shl eax, 8
mov ecx, 0x1140800
or eax, dword [0x5ee858]
shl eax, 8
or eax, dword [0x5ee85c]
shl eax, 8
or eax, dword [0x5ee860]
cmp ecx, eax
pop edi
sbb eax, eax
neg eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044dcb2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
xor ecx, ebp
pop esi
call fcn.0044dcb2
mov esp, ebp
pop ebp
ret
call fcn.0044e34b
int3
Function at 0x4264f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
test eax, eax
jne 0x4264fe
pop ebp
ret 8
push eax
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.00456d64
add esp, 0x10
pop ebp
ret 8

Function at 0x429de0
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
mov eax, dword [0x65200c]
mov ecx, dword [eax + 8]
jmp fcn.0042b470
Function at 0x434f10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044d7d0
Function at 0x43b820
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x6051c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x43b8ca
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x43b8ca
xorps xmm0, xmm0
movups xmmword [esi], xmm0
push 0x90
movups xmmword [esi + 0x10], xmm0
push 0
movq qword [esi + 0x20], xmm0
mov dword [esi], 0x10028
movzx eax, byte [ecx + 0x107f4]
mov byte [esi + 0x18], al
movzx eax, byte [ecx + 0x107ec]
mov byte [esi + 9], al
movzx eax, byte [ecx + 0x107f0]
mov byte [esi + 0x17], al
lea eax, [ebp - 0x94]
push eax
mov dword [esi + 4], 0x25
call fcn.0044f220
add esp, 0xc
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x43b8ca
cmp dword [ebp - 0x94], 6
jb 0x43b8ca
or dword [esi + 4], 0x8000
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0044dcb2
mov esp, ebp
pop ebp
ret

Function at 0x44c390
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x6051c4]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [str.Unknown_version]
push ebx
push esi
mov esi, ecx
lea eax, [ebp - 0x94]
push 0x90
push 0
push eax
movups xmmword [esi + 0x23c], xmm0
mov dword [esi + 0xecc], 0
xor bl, bl
call fcn.0044f220
add esp, 0xc
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x44c42c
cmp dword [ebp - 0x94], 6
mov ecx, esi
jb 0x44c417
call fcn.0044c440
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044dcb2
mov esp, ebp
pop ebp
ret
call fcn.0044cf00
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044dcb2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.0044dcb2
mov esp, ebp
pop ebp
ret
Function at 0x465f98
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00465e0e
Function at 0xec174b
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, ecx
mov eax, dword [edi + 0x44]
xor ebx, ebx
cmp eax, ebx
je 0xec17a6
cmp eax, 0xffffffff
je 0xec17a6
cmp dword [ebp + 8], ebx
je 0xec17a6
push esi
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [edi + 0x44]
push ebx
mov esi, eax
lea eax, [ebp - 4]
push eax
add esi, esi
push esi
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0xecf302
cmp esi, dword [ebp - 4]
jne 0xecf31d
pop esi
pop edi
mov eax, ebx
pop ebx
leave
ret 4
mov ebx, 0x80070057
jmp 0xec179e

Function at 0xec227c
Capabilities:
Query environment variable

Disassembly:
push 0x20
mov eax, 0xed621c
call fcn.00ec1350
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
push ebx
push 0x20019
push dword [0xedb458]
lea ecx, [ebp - 0x2c]
push 0x80000002
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
call fcn.00ec2097
test eax, eax
jne 0xec23c4
lea eax, [ebp - 0x20]
push eax
push dword [0xedb45c]
lea ecx, [ebp - 0x2c]
push ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
call fcn.00ec23dc
test eax, eax
jne 0xec23c4
mov eax, dword [ebp - 0x20]
xor ecx, ecx
push 2
add eax, eax
pop edx
mul edx
seto cl
mov byte [ebp - 4], 1
neg ecx
or ecx, eax
push ecx
call fcn.00ec13e0
mov esi, eax
pop ecx
mov dword [ebp - 0x1c], esi
cmp esi, ebx
je 0xec23c4
lea eax, [ebp - 0x20]
push eax
push dword [0xedb45c]
lea ecx, [ebp - 0x2c]
push esi
call fcn.00ec23dc
test eax, eax
jne 0xec23bb
push ebx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call esi
mov edi, eax
cmp edi, ebx
je 0xec23bb
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00ec13e0
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0xec23bb
push edi
push eax
push dword [ebp - 0x1c]
call esi
mov esi, eax
cmp esi, ebx
je 0xec23b2
cmp dword [ebp + 8], ebx
je 0xecea08
push dword [0xedb460]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + esi + 1]
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00ec13e0
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0xec23b2
push dword [ebp - 0x14]
push esi
push eax
call fcn.00ec21cb
push dword [0xedb460]
push edi
push dword [ebp - 0x18]
call fcn.00ec2436
push dword [ebp - 0x14]
call fcn.00ec13c0
pop ecx
push dword [ebp - 0x1c]
call fcn.00ec13c0
pop ecx
lea ecx, [ebp - 0x2c]
call fcn.00ec1f10
mov eax, dword [ebp - 0x18]
call fcn.00ec1390
ret 4
Function at 0xec23dc
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push edi
push esi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 4], ebx
jbe 0xec242c
cmp dword [ebp - 4], 2
ja 0xece965
mov ecx, dword [edi]
test cl, 1
jne 0xec242c
cmp esi, ebx
je 0xec2425
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
jne 0xec242c
pop edi
pop esi
pop ebx
leave
ret 0xc
push 0xd
pop eax
jmp 0xec2425

Function at 0xec24ed
Capabilities:
Delete file
Move file

Disassembly:
push 0x14
mov eax, 0xed6b05
call fcn.00ec1350
mov esi, ecx
mov eax, dword [esi + 0x44]
xor edi, edi
mov ebx, 0x8007000e
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
cmp eax, edi
je 0xec2519
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x44], edi
cmp dword [ebp + 8], edi
je 0xec265b
cmp dword [ebp + 0xc], edi
je 0xec265b
push 1
call fcn.00ec227c
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0xec264a
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov dword [ebp - 4], edi
call esi
push dword [ebp + 8]
mov edi, eax
call esi
lea eax, [eax + edi + 1]
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 0x20], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00ec13e0
pop ecx
mov dword [ebp - 0x18], eax
test eax, eax
je 0xec259b
push dword [ebp - 0x1c]
inc edi
push edi
push eax
call fcn.00ec21cb
mov ebx, eax
test ebx, ebx
jl 0xec259b
push dword [ebp + 8]
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call fcn.00ec2436
mov ebx, eax
test ebx, ebx
jl 0xec259b
xor ebx, ebx
inc ebx
or dword [ebp - 4], 0xffffffff
test ebx, ebx
jl 0xec2632
push 2
pop ebx
push dword [ebp - 0x1c]
mov dword [ebp - 4], ebx
call esi
push dword [ebp + 0xc]
mov edi, eax
call esi
lea esi, [eax + edi + 1]
xor ecx, ecx
mov eax, esi
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00ec13e0
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0xec2654
push dword [ebp - 0x1c]
inc edi
push edi
push eax
call fcn.00ec21cb
mov ebx, eax
test ebx, ebx
jl 0xec2623
push dword [ebp + 0xc]
push esi
push dword [ebp - 0x14]
call fcn.00ec2436
mov ebx, eax
test ebx, ebx
jl 0xec2623
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0xec2623
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0xecf3a2
xor ebx, ebx
cmp dword [ebp - 0x14], 0
je 0xec2632
push dword [ebp - 0x14]
call fcn.00ec13c0
pop ecx
cmp dword [ebp - 0x18], 0
je 0xec2641
push dword [ebp - 0x18]
call fcn.00ec13c0
pop ecx
push dword [ebp - 0x1c]
call fcn.00ec13c0
pop ecx
mov eax, ebx
call fcn.00ec1390
ret 8
mov ebx, 0x8007000e
jmp 0xec25fe
mov ebx, 0x80070057
jmp 0xec264a
Function at 0xec3a67
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0xec3ae4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0xec3ac0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0xec3ad0
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0xffffffff
pop esi
je 0xece30e
mov eax, dword [ebp - 8]
leave
ret
Function at 0xec4267
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [0xedb00c], esi
jne 0xec42be
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0xec2c6f
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0xedb00c], eax
cmp eax, esi
je 0xece4ec
push 0xffffffffffffffff
push dword [0xedb014]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0xedb014]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp dword [0xedb018], esi
jl 0xece50a
pop esi
leave
ret

Function at 0xec4441
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0xec4498
call fcn.00ec2712
xor eax, eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0xec4490
cmp ecx, 0xffffffff
je 0xec4490
and dword [ebp - 4], eax
mov edx, 0x5a4d
cmp word [ecx], dx
jne 0xec4489
mov edx, dword [ecx + 0x3c]
test edx, edx
jl 0xec4489
cmp edx, 0x10000000
jae 0xec4489
lea eax, [edx + ecx]
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0xece892
mov dword [ebp - 4], 0xfffffffe
call fcn.00ec2757
ret 4

Function at 0xec681f
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0xedb004]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov esi, ecx
inc eax
cmp dword [esi + 0x2c], 0
jne 0xec6933
push edi
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, 0x105
push edi
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x420], eax
cmp eax, edi
ja 0xeced16
lea eax, [ebp - 0x41c]
push eax
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.00ec21cb
test eax, eax
jl 0xec6932
mov ecx, dword [ebp - 0x420]
cmp word [ebp + ecx*2 - 0x210], 0x5c
je 0xec68c3
push 0xec6994
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.00ec2436
test eax, eax
jl 0xec6932
push 0xec6980
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.00ec2436
test eax, eax
jl 0xec6932
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x2c], eax
test eax, eax
je 0xeced20
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0xec6970
push eax
call edi
push 0xec695c
push dword [esi + 0x2c]
mov dword [esi + 0x30], eax
call edi
push 0xec6948
push dword [esi + 0x2c]
mov dword [esi + 0x34], eax
call edi
cmp dword [esi + 0x30], 0
mov dword [esi + 0x38], eax
je 0xec6940
cmp dword [esi + 0x34], 0
je 0xec6940
test eax, eax
je 0xec6940
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00ec20d4
leave
ret
mov eax, 0x8007007f
jmp 0xec6932
Function at 0xec71f8
Capabilities:
Identify system language via api

Disassembly:
push 0x2c
mov eax, 0xed608c
call fcn.00ec39dd
lea ecx, [ebp - 0x34]
call fcn.00ec6c55
and dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push eax
push 0
call fcn.00ec758b
test eax, eax
jl 0xec722c
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00ec72a7
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx esi, ax
mov eax, 0x409
mov edi, 0xec7298
cmp ax, si
jne 0xece4b4
and esi, 0x3ff
push esi
push edi
lea eax, [ebp - 0x30]
push 8
push eax
call fcn.00ec1451
add esp, 0x10
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00ec758b
mov esi, eax
test esi, esi
jl 0xec7280
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00ec72a7
mov esi, eax
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
call fcn.00ec760b
mov eax, esi
call fcn.00ec2b9f
ret

Function at 0xec791d
Capabilities:
Identify system language via api

Disassembly:
lea eax, [ebp - 0x30]
push eax
call esi
push 8
pop eax
push dword [ebp + 0x10]
mov word [ebp - 0x30], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0xecdc4f
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 0x82
lea edx, [ebp - 0x30]
push edx
push 0xec7900
push eax
call dword [ecx + 0x10]
mov esi, eax
lea eax, [ebp - 0x30]
push eax
call edi
cmp esi, ebx
jl 0xec79a8
push 1
lea ecx, [ebp - 0x20]
call fcn.00ec79e3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x20]
push edx
push 0xec78ec
push eax
call dword [ecx + 0x10]
mov esi, eax
lea eax, [ebp - 0x20]
push eax
call edi
push eax
call fcn.00ec71e0
cmp esi, ebx
jl 0xec79a8
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
push 3
movzx eax, ax
pop ecx
mov word [ebp - 0x20], cx
mov dword [ebp - 0x18], eax
jmp 0xec7992
push 0x24
mov eax, 0xed5c85
call fcn.00ec26dd
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x20]
push eax
call esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push eax
mov dword [ebp - 0x10], ebx
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [ebp + 0xc], ebx
je 0xec7854
push 1
lea ecx, [ebp - 0x20]
call fcn.00ec79e3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x20]
push edx
push 0xec3984
push eax
call dword [ecx + 0x10]
cmp eax, ebx
jl 0xec79a6
push 3
pop eax
mov word [ebp - 0x20], ax
mov dword [ebp - 0x18], 0x409
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x20]
push edx
push 0xec79d0
push eax
call dword [ecx + 0x10]
mov esi, eax
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.00ec7455
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x20]
push eax
call edi
push eax
call fcn.00ec71e0
mov eax, esi
call fcn.00ec1390
ret 0xc
Function at 0xec7b05
Capabilities:
Identify system language via api

Disassembly:
push 0x50
mov eax, 0xed5fc0
call fcn.00ec39dd
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor esi, esi
push esi
mov dword [ebp - 0x5c], ecx
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x54], esi
call fcn.00ec7c2b
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x58]
mov ebx, eax
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, si
jne 0xec7b34
sub eax, ecx
sar eax, 1
mov edi, eax
je 0xec7b63
movzx eax, word [ebx + esi*2]
push eax
call dword [sym.imp.msvcrt.dll_iswxdigit]
pop ecx
test eax, eax
je 0xec7b5b
inc esi
cmp esi, edi
jb 0xec7b46
cmp esi, edi
jb 0xec7c0e
xor eax, eax
mov edx, ebx
test edi, edi
jbe 0xec7c0e
cmp word [edx], 0x30
jne 0xec7b7c
inc eax
inc edx
inc edx
cmp eax, edi
jb 0xec7b6f
cmp eax, edi
jae 0xec7c0e
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0xec7b89
sub eax, esi
sar eax, 1
cmp eax, 3
ja 0xec7c0e
push 0x10
push 0
push edx
call dword [sym.imp.msvcrt.dll_wcstoul]
add esp, 0xc
movzx esi, ax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
cmp cx, si
jne 0xec7c03
movzx eax, ax
movzx eax, ax
push eax
push 0xec7c18
lea eax, [ebp - 0x50]
push 0x20
push eax
call fcn.00ec1451
mov ecx, dword [ebp - 0x5c]
add esp, 0x10
lea eax, [ebp - 0x50]
push eax
call fcn.00ec6c60
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x58]
lea ecx, [ebp - 0x58]
call fcn.00ec760b
mov eax, dword [ebp - 0x54]
call fcn.00ec2b9f
ret 8
or esi, 0x400
movzx eax, si
jmp 0xec7bc6
mov dword [ebp - 0x54], 0x80041001
jmp 0xec7be9
Function at 0xec7f3e
Capabilities:
Create directory

Disassembly:
push 0x10
mov eax, 0xed6a7d
call fcn.00ec1350
mov dword [ebp - 0x1c], ecx
xor esi, esi
mov ebx, 0x8007000e
mov dword [ebp - 0x14], esi
cmp dword [ebp + 8], esi
je 0xec8046
push 1
call fcn.00ec227c
mov dword [ebp - 0x18], eax
cmp eax, esi
je 0xec803c
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call esi
push dword [ebp + 8]
mov edi, eax
call esi
lea esi, [eax + edi + 1]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00ec13e0
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0xec7fcd
push dword [ebp - 0x18]
inc edi
push edi
push eax
call fcn.00ec21cb
mov ebx, eax
test ebx, ebx
jl 0xec8024
push dword [ebp + 8]
push esi
push dword [ebp - 0x14]
call fcn.00ec2436
mov ebx, eax
test ebx, ebx
jl 0xec8024
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0xec8024
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0xec7ff6
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0xecf33c
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0xec8024
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x44], eax
cmp eax, 0xffffffff
je 0xecf353
cmp dword [ebp - 0x14], 0
je 0xec8033
push dword [ebp - 0x14]
call fcn.00ec13c0
pop ecx
push dword [ebp - 0x18]
call fcn.00ec13c0
pop ecx
mov eax, ebx
call fcn.00ec1390
ret 4
mov ebx, 0x80070057
jmp 0xec803c

Function at 0xec85f1
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0xedb004]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x44]
test eax, eax
je 0xec8684
cmp eax, 0xffffffff
je 0xec8684
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0xec8684
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
and dword [ebp - 0xc], 0
push ebx
call esi
push ebx
mov dword [ebp - 0x10], eax
call esi
lea esi, [eax + eax + 2]
mov eax, esi
call fcn.00ec85b5
mov eax, esp
push esi
push ebx
push eax
call fcn.00ec8692
mov esi, dword [ebp - 0x10]
mov edi, dword [edi + 0x44]
push 0
lea ecx, [ebp - 0xc]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0xecf2da
cmp esi, dword [ebp - 0xc]
jne 0xecf2f6
mov eax, dword [ebp - 8]
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00ec20d4
leave
ret 4
mov dword [ebp - 8], 0x80070057
jmp 0xec866d