joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405a03
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x405a12
pop dword [ebp - 0x34]
mov eax, 0x6fde3abd
sub eax, 0x6f9de0ab
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0x1b6ff094
sub dword [ebp - 0x44], 0xcd1dab49
mov dword [ebp - 0x40], 0x98683f0c
add dword [ebp - 0x40], 0x99cb0d39
mov dword [ebp - 0x3c], 0x43eb8257
add dword [ebp - 0x3c], 0x860c1d7
mov dword [ebp - 0x38], 0xd827fdea
add dword [ebp - 0x38], 0x27d80216
lea eax, [ebp - 0x44]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0xfc534054
sub dword [ebp - 0x44], 0x87e0d6fe
mov dword [ebp - 0x40], 0x394361e
add dword [ebp - 0x40], 0x3dd82b57
mov dword [ebp - 0x3c], 0xa8c80b5f
add dword [ebp - 0x3c], 0xbaa7610d
mov dword [ebp - 0x38], 0xdeace445
sub dword [ebp - 0x38], 0xdeace445
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x3d9c4
push 0
call eax
mov ecx, 0xd7eb788c
sub ecx, 0xd7eb1607
xor esi, esi
add esi, eax
mov edi, 0x81a39f44
add edi, 0x7ea344bc
add edi, dword [ebp - 0x34]
mov ebx, 0x60b2b4bf
add ebx, 0x3ae169bf
add dword [ebp - 0x2c], 0xb29c8ccf
mov edx, dword [edi]
sub dword [ebp - 0x2c], esi
xor edx, ebx
mov dword [ebp - 0x14], 0xdbbbbe7a
mov dword [esi], edx
sub dword [ebp - 8], 0xf1d5d0a9
add esi, 4
add edi, 0x5869a3df
add edi, 0xa7965c25
loop 0x405b2c
add eax, 0x17ce7
xor ebx, ebx
add ebx, eax
add eax, 0x8df2c689
add eax, 0x720d397c
mov ecx, 0x735e651b
add ecx, 0x8ce19ae5
add ecx, dword [ebp - 0x34]
call ebx
leave
ret

Function at 0x405cce
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425f30
push esi
call fcn.00406212
push esi
call fcn.00405c71
mov edi, eax
test edi, edi
jne 0x405cef
xor eax, eax
jmp 0x405d47
push edi
call fcn.004064a6
test byte [0x42a258], 0x80
je 0x405d0c
mov ax, word [edi]
test ax, ax
je 0x405ceb
cmp ax, 0x5c
je 0x405ceb
sub edi, esi
sar edi, 1
jmp 0x405d26
call fcn.00406555
test eax, eax
je 0x405d20
test byte [eax], 0x10
je 0x405ceb
push esi
call fcn.00405c12
push esi
call sub.kernel32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405d12
call fcn.00405bc6
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405dc2
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405de1
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405de7
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_CreateFileW]
ret 0xc
Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x858
mov eax, dword [0x412004]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x44
lea eax, [ebp - 0x858]
push 0
push eax
call fcn.00401d70
push str.msiexec__i_App_x86_SETUPVAR10
lea eax, [ebp - 0x804]
mov dword [ebp - 0x858], 0x44
push 0x400
push eax
call fcn.00402507
add esp, 0x18
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x858]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
lea eax, [ebp - 0x804]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00401081
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4028e0
Capabilities:
Terminate process

Disassembly:
push 0
push 0
call dword [sym.imp.libgtk_win32_2.0_0.dll_gtk_init]
call dword [sym.imp.libgtk_win32_2.0_0.dll_gtk_builder_new]
mov dword [0x4028d0], eax
push 0
push 0x18c8
push section..code
push eax
call dword [sym.imp.libgtk_win32_2.0_0.dll_gtk_builder_add_from_string]
push 0x4028b1
push dword [0x4028d0]
call dword [sym.imp.libgtk_win32_2.0_0.dll_gtk_builder_get_object]
mov dword [0x4028d4], eax
push eax
call dword [sym.imp.libgtk_win32_2.0_0.dll_gtk_widget_show]
push dword [0x4028d4]
call dword [sym.imp.libgtk_win32_2.0_0.dll_gtk_widget_hide]
push 0x4028be
push dword [0x4028d0]
call dword [sym.imp.libgtk_win32_2.0_0.dll_gtk_builder_get_object]
mov dword [0x4028dc], eax
push 0x4028aa
push dword [0x4028d0]
call dword [sym.imp.libgtk_win32_2.0_0.dll_gtk_builder_get_object]
mov dword [0x4028d8], eax
push 0x4028c8
push dword [0x4028d0]
call dword [sym.imp.libgtk_win32_2.0_0.dll_gtk_builder_get_object]
push eax
call dword [sym.imp.libgtk_win32_2.0_0.dll_gtk_widget_show]
push 0
push dword [0x4028d0]
call dword [sym.imp.libgtk_win32_2.0_0.dll_gtk_builder_connect_signals]
call dword [sym.imp.libgtk_win32_2.0_0.dll_gtk_main]
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
Function at 0x11174b
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 0x1117a6
cmp eax, 0xffffffff
je 0x1117a6
cmp dword [ebp + 8], ebx
je 0x1117a6
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 0x11f302
cmp esi, dword [ebp - 4]
jne 0x11f31d
pop esi
pop edi
mov eax, ebx
pop ebx
leave
ret 4
mov ebx, 0x80070057
jmp 0x11179e

Function at 0x11227c
Capabilities:
Query environment variable

Disassembly:
push 0x20
mov eax, 0x12621c
call fcn.00111350
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
push ebx
push 0x20019
push dword [0x12b458]
lea ecx, [ebp - 0x2c]
push 0x80000002
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
call fcn.00112097
test eax, eax
jne 0x1123c4
lea eax, [ebp - 0x20]
push eax
push dword [0x12b45c]
lea ecx, [ebp - 0x2c]
push ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
call fcn.001123dc
test eax, eax
jne 0x1123c4
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.001113e0
mov esi, eax
pop ecx
mov dword [ebp - 0x1c], esi
cmp esi, ebx
je 0x1123c4
lea eax, [ebp - 0x20]
push eax
push dword [0x12b45c]
lea ecx, [ebp - 0x2c]
push esi
call fcn.001123dc
test eax, eax
jne 0x1123bb
push ebx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call esi
mov edi, eax
cmp edi, ebx
je 0x1123bb
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.001113e0
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x1123bb
push edi
push eax
push dword [ebp - 0x1c]
call esi
mov esi, eax
cmp esi, ebx
je 0x1123b2
cmp dword [ebp + 8], ebx
je 0x11ea08
push dword [0x12b460]
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.001113e0
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x1123b2
push dword [ebp - 0x14]
push esi
push eax
call fcn.001121cb
push dword [0x12b460]
push edi
push dword [ebp - 0x18]
call fcn.00112436
push dword [ebp - 0x14]
call fcn.001113c0
pop ecx
push dword [ebp - 0x1c]
call fcn.001113c0
pop ecx
lea ecx, [ebp - 0x2c]
call fcn.00111f10
mov eax, dword [ebp - 0x18]
call fcn.00111390
ret 4
Function at 0x1123dc
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 0x11242c
cmp dword [ebp - 4], 2
ja 0x11e965
mov ecx, dword [edi]
test cl, 1
jne 0x11242c
cmp esi, ebx
je 0x112425
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
jne 0x11242c
pop edi
pop esi
pop ebx
leave
ret 0xc
push 0xd
pop eax
jmp 0x112425

Function at 0x1124ed
Capabilities:
Delete file
Move file

Disassembly:
push 0x14
mov eax, 0x126b05
call fcn.00111350
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 0x112519
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x44], edi
cmp dword [ebp + 8], edi
je 0x11265b
cmp dword [ebp + 0xc], edi
je 0x11265b
push 1
call fcn.0011227c
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x11264a
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.001113e0
pop ecx
mov dword [ebp - 0x18], eax
test eax, eax
je 0x11259b
push dword [ebp - 0x1c]
inc edi
push edi
push eax
call fcn.001121cb
mov ebx, eax
test ebx, ebx
jl 0x11259b
push dword [ebp + 8]
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call fcn.00112436
mov ebx, eax
test ebx, ebx
jl 0x11259b
xor ebx, ebx
inc ebx
or dword [ebp - 4], 0xffffffff
test ebx, ebx
jl 0x112632
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.001113e0
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x112654
push dword [ebp - 0x1c]
inc edi
push edi
push eax
call fcn.001121cb
mov ebx, eax
test ebx, ebx
jl 0x112623
push dword [ebp + 0xc]
push esi
push dword [ebp - 0x14]
call fcn.00112436
mov ebx, eax
test ebx, ebx
jl 0x112623
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0x112623
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 0x11f3a2
xor ebx, ebx
cmp dword [ebp - 0x14], 0
je 0x112632
push dword [ebp - 0x14]
call fcn.001113c0
pop ecx
cmp dword [ebp - 0x18], 0
je 0x112641
push dword [ebp - 0x18]
call fcn.001113c0
pop ecx
push dword [ebp - 0x1c]
call fcn.001113c0
pop ecx
mov eax, ebx
call fcn.00111390
ret 8
mov ebx, 0x8007000e
jmp 0x1125fe
mov ebx, 0x80070057
jmp 0x11264a
Function at 0x113a67
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 0x113ae4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x113ac0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x113ad0
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 0x11e30e
mov eax, dword [ebp - 8]
leave
ret
Function at 0x114267
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [0x12b00c], esi
jne 0x1142be
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x112c6f
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x12b00c], eax
cmp eax, esi
je 0x11e4ec
push 0xffffffffffffffff
push dword [0x12b014]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x12b014]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp dword [0x12b018], esi
jl 0x11e50a
pop esi
leave
ret

Function at 0x114441
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x114498
call fcn.00112712
xor eax, eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x114490
cmp ecx, 0xffffffff
je 0x114490
and dword [ebp - 4], eax
mov edx, 0x5a4d
cmp word [ecx], dx
jne 0x114489
mov edx, dword [ecx + 0x3c]
test edx, edx
jl 0x114489
cmp edx, 0x10000000
jae 0x114489
lea eax, [edx + ecx]
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x11e892
mov dword [ebp - 4], 0xfffffffe
call fcn.00112757
ret 4

Function at 0x11681f
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x12b004]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov esi, ecx
inc eax
cmp dword [esi + 0x2c], 0
jne 0x116933
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 0x11ed16
lea eax, [ebp - 0x41c]
push eax
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.001121cb
test eax, eax
jl 0x116932
mov ecx, dword [ebp - 0x420]
cmp word [ebp + ecx*2 - 0x210], 0x5c
je 0x1168c3
push 0x116994
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.00112436
test eax, eax
jl 0x116932
push 0x116980
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.00112436
test eax, eax
jl 0x116932
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x2c], eax
test eax, eax
je 0x11ed20
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x116970
push eax
call edi
push 0x11695c
push dword [esi + 0x2c]
mov dword [esi + 0x30], eax
call edi
push 0x116948
push dword [esi + 0x2c]
mov dword [esi + 0x34], eax
call edi
cmp dword [esi + 0x30], 0
mov dword [esi + 0x38], eax
je 0x116940
cmp dword [esi + 0x34], 0
je 0x116940
test eax, eax
je 0x116940
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.001120d4
leave
ret
mov eax, 0x8007007f
jmp 0x116932
Function at 0x1171f8
Capabilities:
Identify system language via api

Disassembly:
push 0x2c
mov eax, 0x12608c
call fcn.001139dd
lea ecx, [ebp - 0x34]
call fcn.00116c55
and dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push eax
push 0
call fcn.0011758b
test eax, eax
jl 0x11722c
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.001172a7
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx esi, ax
mov eax, 0x409
mov edi, 0x117298
cmp ax, si
jne 0x11e4b4
and esi, 0x3ff
push esi
push edi
lea eax, [ebp - 0x30]
push 8
push eax
call fcn.00111451
add esp, 0x10
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0011758b
mov esi, eax
test esi, esi
jl 0x117280
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.001172a7
mov esi, eax
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
call fcn.0011760b
mov eax, esi
call fcn.00112b9f
ret

Function at 0x11791d
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 0x11dc4f
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 0x82
lea edx, [ebp - 0x30]
push edx
push 0x117900
push eax
call dword [ecx + 0x10]
mov esi, eax
lea eax, [ebp - 0x30]
push eax
call edi
cmp esi, ebx
jl 0x1179a8
push 1
lea ecx, [ebp - 0x20]
call fcn.001179e3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x20]
push edx
push 0x1178ec
push eax
call dword [ecx + 0x10]
mov esi, eax
lea eax, [ebp - 0x20]
push eax
call edi
push eax
call fcn.001171e0
cmp esi, ebx
jl 0x1179a8
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 0x117992
push 0x24
mov eax, 0x125c85
call fcn.001126dd
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 0x117854
push 1
lea ecx, [ebp - 0x20]
call fcn.001179e3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x20]
push edx
push 0x113984
push eax
call dword [ecx + 0x10]
cmp eax, ebx
jl 0x1179a6
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 0x1179d0
push eax
call dword [ecx + 0x10]
mov esi, eax
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.00117455
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x20]
push eax
call edi
push eax
call fcn.001171e0
mov eax, esi
call fcn.00111390
ret 0xc
Function at 0x117b05
Capabilities:
Identify system language via api

Disassembly:
push 0x50
mov eax, 0x125fc0
call fcn.001139dd
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.00117c2b
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 0x117b34
sub eax, ecx
sar eax, 1
mov edi, eax
je 0x117b63
movzx eax, word [ebx + esi*2]
push eax
call dword [sym.imp.msvcrt.dll_iswxdigit]
pop ecx
test eax, eax
je 0x117b5b
inc esi
cmp esi, edi
jb 0x117b46
cmp esi, edi
jb 0x117c0e
xor eax, eax
mov edx, ebx
test edi, edi
jbe 0x117c0e
cmp word [edx], 0x30
jne 0x117b7c
inc eax
inc edx
inc edx
cmp eax, edi
jb 0x117b6f
cmp eax, edi
jae 0x117c0e
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x117b89
sub eax, esi
sar eax, 1
cmp eax, 3
ja 0x117c0e
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 0x117c03
movzx eax, ax
movzx eax, ax
push eax
push 0x117c18
lea eax, [ebp - 0x50]
push 0x20
push eax
call fcn.00111451
mov ecx, dword [ebp - 0x5c]
add esp, 0x10
lea eax, [ebp - 0x50]
push eax
call fcn.00116c60
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x58]
lea ecx, [ebp - 0x58]
call fcn.0011760b
mov eax, dword [ebp - 0x54]
call fcn.00112b9f
ret 8
or esi, 0x400
movzx eax, si
jmp 0x117bc6
mov dword [ebp - 0x54], 0x80041001
jmp 0x117be9
Function at 0x117f3e
Capabilities:
Create directory

Disassembly:
push 0x10
mov eax, 0x126a7d
call fcn.00111350
mov dword [ebp - 0x1c], ecx
xor esi, esi
mov ebx, 0x8007000e
mov dword [ebp - 0x14], esi
cmp dword [ebp + 8], esi
je 0x118046
push 1
call fcn.0011227c
mov dword [ebp - 0x18], eax
cmp eax, esi
je 0x11803c
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.001113e0
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x117fcd
push dword [ebp - 0x18]
inc edi
push edi
push eax
call fcn.001121cb
mov ebx, eax
test ebx, ebx
jl 0x118024
push dword [ebp + 8]
push esi
push dword [ebp - 0x14]
call fcn.00112436
mov ebx, eax
test ebx, ebx
jl 0x118024
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0x118024
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x117ff6
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x11f33c
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0x118024
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 0x11f353
cmp dword [ebp - 0x14], 0
je 0x118033
push dword [ebp - 0x14]
call fcn.001113c0
pop ecx
push dword [ebp - 0x18]
call fcn.001113c0
pop ecx
mov eax, ebx
call fcn.00111390
ret 4
mov ebx, 0x80070057
jmp 0x11803c

Function at 0x1185f1
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x12b004]
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 0x118684
cmp eax, 0xffffffff
je 0x118684
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x118684
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.001185b5
mov eax, esp
push esi
push ebx
push eax
call fcn.00118692
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 0x11f2da
cmp esi, dword [ebp - 0xc]
jne 0x11f2f6
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.001120d4
leave
ret 4
mov dword [ebp - 8], 0x80070057
jmp 0x11866d
Function at 0x1188ef
Capabilities:
Get geographical location

Disassembly:
push 0x210
mov eax, 0x126be9
call fcn.001120e6
xor eax, eax
push 0x1fe
mov word [ebp - 0x214], ax
xor ebx, ebx
lea eax, [ebp - 0x212]
push ebx
push eax
call sub.msvcrt.dll_memset
mov esi, dword [ebp + 8]
add esp, 0xc
push 0x100
lea eax, [ebp - 0x214]
push eax
push 0x1001
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea eax, [ebp - 0x214]
and esi, 0x3ff
push eax
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x218], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
add esi, 7
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.001113e0
mov edi, eax
pop ecx
cmp edi, ebx
je 0x118999
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x21c]
push 0x1189a4
push esi
push edi
call fcn.00111451
add esp, 0x14
mov eax, edi
call fcn.00112126
ret 4
Function at 0x120d7d
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
push edi
lea eax, [ecx + eax + 0x18]
test esi, esi
jbe 0x120dba
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x120db2
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x120dbc
inc edx
add eax, 0x28
cmp edx, esi
jb 0x120da2
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret