joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424d50
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ae6f
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x469070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ecx + 0x1c]
test ecx, ecx
je 0x424d88
mov eax, dword [ecx]
push dword [ebp + 8]
call dword [eax + 0x28]
mov esi, eax
jmp 0x424dae
push 0x3c
call fcn.00429f84
mov esi, eax
mov dword [ebp - 0x10], esi
sub esp, 8
mov dword [ebp - 4], 0
mov ecx, esi
mov dword [esi], vtable.AxPipe::CSeg.0
push dword [ebp + 8]
call fcn.004233b0
push 0x208
push 0x46d350
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
mov edx, 0x46d350
mov ecx, str.Unknown_module._GetModuleFileName___failed_too.
cmovne ecx, edx
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ebx, eax
test esi, esi
jne 0x424e09
push str.NULL_pointer
push 0xa9
push str.CPipe.cpp
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push 0x10
push ebx
push str.Failed_assertion_in__s_at_line__d_n_n_s
call fcn.00427590
add esp, 0x18
push 1
call fcn.004316e6
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x425720
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4499d8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x469070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ebx, [edi + 0x2c]
push ebx
push 0
push 0
push 0x8004
push dword [edi + 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x425790
xor ecx, ecx
call fcn.00427470
mov esi, eax
mov dword [ebp - 0x10], esi
push esi
push str.CPipeSHA1::CPipeSHA1____CryptCreateHash___failed:__s_
push 5
lea ecx, [edi + 8]
mov dword [ebp - 4], 0
call fcn.004247b0
push 2
push esi
call fcn.00429fda
add esp, 8
mov dword [edi + 0x20], 0
lea edx, [edi + 0x48]
mov dword [edi + 0x24], 0
xor eax, eax
mov byte [edx + eax], 0x36
cmp eax, 0x10
jae 0x4257b6
mov cl, byte [eax + edi + 0x5c]
xor cl, 0x36
mov byte [edx + eax], cl
inc eax
cmp eax, 0x14
jb 0x4257a3
push 0
push 0x14
push edx
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x425822
call fcn.004273e0
push 0x208
push 0x46d350
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
mov edx, 0x46d350
mov ecx, str.Unknown_module._GetModuleFileName___failed_too.
cmovne ecx, edx
push ecx
call esi
push ebx
push 0x6b
push 0x460cf0
mov edi, eax
call esi
push eax
push 0x10
push edi
push str.Failed_assertion_in__s_at_line__d_n_n_s
call fcn.00427590
add esp, 0x18
push 1
call fcn.004316e6
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x425f80
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov edi, ecx
push 0x38
push 0
lea esi, [edi + 0x28]
mov dword [edi + 0x20], 0
push esi
mov dword [edi + 0x24], 0
call fcn.0042c5c0
add esp, 0xc
mov dword [esi], 0
mov dword [edi + 0x48], 0x425e50
mov dword [edi + 0x4c], 0x425e70
push 0x38
push str.1.2.8
push esi
call fcn.00444170
test eax, eax
je 0x42601f
push 0x800
call fcn.00429fed
mov esi, eax
add esp, 4
test esi, esi
je 0x42601f
push 0
push str.ZLIB_initialization_error
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [edi + 8]
add esp, 0xc
test ecx, ecx
je 0x425ffc
push esi
push 5
call fcn.00424760
jmp 0x42601f
cmp dword [edi + 0x10], 0
je 0x42600a
push esi
call fcn.00429fe8
jmp 0x42601c
push dword [edi + 0xc]
call fcn.00429fe8
mov dword [edi + 0xc], esi
mov dword [edi + 0x10], 5
add esp, 4
cmp dword [edi + 0x68], 0
jne 0x42602a
pop edi
mov al, 1
pop esi
ret
push 0x208
push 0x46d350
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
mov edx, 0x46d350
mov ecx, str.Unknown_module._GetModuleFileName___failed_too.
cmovne ecx, edx
push ecx
call esi
push str.CPipeInflate::OutOpen____m_pOutSeg_non_NULL_
push 0x55
push str.CPipeInflate.cpp
mov edi, eax
call esi
push eax
push 0x10
push edi
push str.Failed_assertion_in__s_at_line__d_n_n_s
call fcn.00427590
add esp, 0x18
push 1
call fcn.004316e6
int3

Function at 0x426ec1
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea eax, [esi + 0x38]
mov dword [esi + 0x28], 0
push eax
mov dword [esi + 0x2c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x80], 0
mov byte [esi + 0x30], 1
call fcn.00426ab0
mov ecx, esi
call fcn.004269b0
cmp dword [esi + 0x78], 0
push 0x208
push 0x46d350
push 0
setne bl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
mov edx, 0x46d350
mov ecx, str.Unknown_module._GetModuleFileName___failed_too.
cmovne ecx, edx
push ecx
call esi
mov edi, eax
test bl, bl
je 0x426f3c
pop edi
pop esi
mov al, 1
pop ebx
ret
push str.NULL_pointer
push 0xdb
push 0x460f3c
call esi
push eax
push 0x10
push edi
push str.Failed_assertion_in__s_at_line__d_n_n_s
call fcn.00427590
add esp, 0x18
push 1
call fcn.004316e6
int3
Function at 0x448b70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x24
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov eax, dword [edx + 0x78]
mov ebx, dword [edx + 0x8c]
cmp eax, ebx
mov eax, dword [edx + 0x34]
mov ebx, dword [edx + 0x7c]
jl 0x448b95
shr ebx, 2
dec ebx
shl ebx, 0x10
or ebx, eax
mov dword [esp], ebx
mov eax, dword [edx + 0x90]
mov ebx, dword [edx + 0x74]
cmp ebx, eax
jl 0x448bad
mov ebx, eax
mov dword [esp + 0x18], ebx
mov esi, dword [edx + 0x38]
mov dword [esp + 4], esi
mov ebp, dword [edx + 0x6c]
lea edi, [ebp + esi]
mov dword [esp + 0x20], edi
mov eax, edi
neg eax
and eax, 3
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x2c]
sub eax, 0x106
sub ebp, eax
jg 0x448bdc
xor ebp, ebp
mov eax, dword [edx + 0x78]
mov dword [esp + 0x1c], eax
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [edi]
mov dword [esp + 0x10], ebx
movzx ebx, word [eax + edi - 1]
mov dword [esp + 0xc], ebx
mov edi, dword [edx + 0x40]
mov edx, dword [esp]
jmp 0x448c1e
and ecx, edx
movzx ecx, word [edi + ecx*2]
cmp ecx, ebp
jbe 0x448cf2
sub edx, 0x10000
js 0x448cf2
movzx eax, word [ecx + esi - 1]
cmp eax, ebx
jne 0x448c04
mov eax, dword [esp + 4]
movzx eax, word [ecx + eax]
cmp eax, dword [esp + 0x10]
jne 0x448c04
mov dword [esp], edx
mov esi, dword [esp + 4]
mov edi, dword [esp + 0x20]
add esi, ecx
mov eax, dword [esp + 0x14]
mov edx, 0xfffffef8
lea edi, [eax + edi + 0x108]
lea esi, [eax + esi + 0x108]
mov eax, dword [edx + esi]
xor eax, dword [edx + edi]
jne 0x448c75
mov eax, dword [edx + esi + 4]
xor eax, dword [edx + edi + 4]
jne 0x448c72
add edx, 8
jne 0x448c59
jmp 0x448ce3
add edx, 4
test eax, 0xffff
jne 0x448c82
add edx, 2
shr eax, 0x10
sub al, 1
adc edx, 0
lea eax, [edx + edi]
mov edi, dword [esp + 0x20]
sub eax, edi
cmp eax, 0x102
jge 0x448ce3
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
cmp eax, ebx
jg 0x448cb6
mov esi, dword [esp + 8]
mov edi, dword [edx + 0x40]
mov ebx, dword [esp + 0xc]
mov edx, dword [esp]
jmp 0x448c04
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [edx + 0x70], ecx
cmp eax, ebx
jge 0x448cf2
mov esi, dword [esp + 4]
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [eax + edi - 1]
mov edi, dword [edx + 0x40]
mov dword [esp + 0xc], ebx
mov edx, dword [esp]
jmp 0x448c04
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1c], 0x102
mov dword [edx + 0x70], ecx
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
mov eax, dword [edx + 0x74]
cmp ebx, eax
jg 0x448d03
mov eax, ebx
add esp, 0x24
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x5d174b
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 0x5d17a6
cmp eax, 0xffffffff
je 0x5d17a6
cmp dword [ebp + 8], ebx
je 0x5d17a6
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 0x5df302
cmp esi, dword [ebp - 4]
jne 0x5df31d
pop esi
pop edi
mov eax, ebx
pop ebx
leave
ret 4
mov ebx, 0x80070057
jmp 0x5d179e

Function at 0x5d227c
Capabilities:
Query environment variable

Disassembly:
push 0x20
mov eax, 0x5e621c
call fcn.005d1350
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
push ebx
push 0x20019
push dword [0x5eb458]
lea ecx, [ebp - 0x2c]
push 0x80000002
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
call fcn.005d2097
test eax, eax
jne 0x5d23c4
lea eax, [ebp - 0x20]
push eax
push dword [0x5eb45c]
lea ecx, [ebp - 0x2c]
push ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
call fcn.005d23dc
test eax, eax
jne 0x5d23c4
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.005d13e0
mov esi, eax
pop ecx
mov dword [ebp - 0x1c], esi
cmp esi, ebx
je 0x5d23c4
lea eax, [ebp - 0x20]
push eax
push dword [0x5eb45c]
lea ecx, [ebp - 0x2c]
push esi
call fcn.005d23dc
test eax, eax
jne 0x5d23bb
push ebx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call esi
mov edi, eax
cmp edi, ebx
je 0x5d23bb
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005d13e0
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x5d23bb
push edi
push eax
push dword [ebp - 0x1c]
call esi
mov esi, eax
cmp esi, ebx
je 0x5d23b2
cmp dword [ebp + 8], ebx
je 0x5dea08
push dword [0x5eb460]
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.005d13e0
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x5d23b2
push dword [ebp - 0x14]
push esi
push eax
call fcn.005d21cb
push dword [0x5eb460]
push edi
push dword [ebp - 0x18]
call fcn.005d2436
push dword [ebp - 0x14]
call fcn.005d13c0
pop ecx
push dword [ebp - 0x1c]
call fcn.005d13c0
pop ecx
lea ecx, [ebp - 0x2c]
call fcn.005d1f10
mov eax, dword [ebp - 0x18]
call fcn.005d1390
ret 4
Function at 0x5d23dc
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 0x5d242c
cmp dword [ebp - 4], 2
ja 0x5de965
mov ecx, dword [edi]
test cl, 1
jne 0x5d242c
cmp esi, ebx
je 0x5d2425
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
jne 0x5d242c
pop edi
pop esi
pop ebx
leave
ret 0xc
push 0xd
pop eax
jmp 0x5d2425

Function at 0x5d24ed
Capabilities:
Delete file
Move file

Disassembly:
push 0x14
mov eax, 0x5e6b05
call fcn.005d1350
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 0x5d2519
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x44], edi
cmp dword [ebp + 8], edi
je 0x5d265b
cmp dword [ebp + 0xc], edi
je 0x5d265b
push 1
call fcn.005d227c
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x5d264a
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.005d13e0
pop ecx
mov dword [ebp - 0x18], eax
test eax, eax
je 0x5d259b
push dword [ebp - 0x1c]
inc edi
push edi
push eax
call fcn.005d21cb
mov ebx, eax
test ebx, ebx
jl 0x5d259b
push dword [ebp + 8]
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call fcn.005d2436
mov ebx, eax
test ebx, ebx
jl 0x5d259b
xor ebx, ebx
inc ebx
or dword [ebp - 4], 0xffffffff
test ebx, ebx
jl 0x5d2632
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.005d13e0
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x5d2654
push dword [ebp - 0x1c]
inc edi
push edi
push eax
call fcn.005d21cb
mov ebx, eax
test ebx, ebx
jl 0x5d2623
push dword [ebp + 0xc]
push esi
push dword [ebp - 0x14]
call fcn.005d2436
mov ebx, eax
test ebx, ebx
jl 0x5d2623
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0x5d2623
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 0x5df3a2
xor ebx, ebx
cmp dword [ebp - 0x14], 0
je 0x5d2632
push dword [ebp - 0x14]
call fcn.005d13c0
pop ecx
cmp dword [ebp - 0x18], 0
je 0x5d2641
push dword [ebp - 0x18]
call fcn.005d13c0
pop ecx
push dword [ebp - 0x1c]
call fcn.005d13c0
pop ecx
mov eax, ebx
call fcn.005d1390
ret 8
mov ebx, 0x8007000e
jmp 0x5d25fe
mov ebx, 0x80070057
jmp 0x5d264a
Function at 0x5d3a67
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 0x5d3ae4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x5d3ac0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x5d3ad0
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 0x5de30e
mov eax, dword [ebp - 8]
leave
ret
Function at 0x5d4267
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [0x5eb00c], esi
jne 0x5d42be
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x5d2c6f
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x5eb00c], eax
cmp eax, esi
je 0x5de4ec
push 0xffffffffffffffff
push dword [0x5eb014]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x5eb014]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp dword [0x5eb018], esi
jl 0x5de50a
pop esi
leave
ret

Function at 0x5d4441
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x5d4498
call fcn.005d2712
xor eax, eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x5d4490
cmp ecx, 0xffffffff
je 0x5d4490
and dword [ebp - 4], eax
mov edx, 0x5a4d
cmp word [ecx], dx
jne 0x5d4489
mov edx, dword [ecx + 0x3c]
test edx, edx
jl 0x5d4489
cmp edx, 0x10000000
jae 0x5d4489
lea eax, [edx + ecx]
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x5de892
mov dword [ebp - 4], 0xfffffffe
call fcn.005d2757
ret 4

Function at 0x5d681f
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x5eb004]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov esi, ecx
inc eax
cmp dword [esi + 0x2c], 0
jne 0x5d6933
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 0x5ded16
lea eax, [ebp - 0x41c]
push eax
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.005d21cb
test eax, eax
jl 0x5d6932
mov ecx, dword [ebp - 0x420]
cmp word [ebp + ecx*2 - 0x210], 0x5c
je 0x5d68c3
push 0x5d6994
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.005d2436
test eax, eax
jl 0x5d6932
push 0x5d6980
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.005d2436
test eax, eax
jl 0x5d6932
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x2c], eax
test eax, eax
je 0x5ded20
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5d6970
push eax
call edi
push 0x5d695c
push dword [esi + 0x2c]
mov dword [esi + 0x30], eax
call edi
push 0x5d6948
push dword [esi + 0x2c]
mov dword [esi + 0x34], eax
call edi
cmp dword [esi + 0x30], 0
mov dword [esi + 0x38], eax
je 0x5d6940
cmp dword [esi + 0x34], 0
je 0x5d6940
test eax, eax
je 0x5d6940
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005d20d4
leave
ret
mov eax, 0x8007007f
jmp 0x5d6932
Function at 0x5d71f8
Capabilities:
Identify system language via api

Disassembly:
push 0x2c
mov eax, 0x5e608c
call fcn.005d39dd
lea ecx, [ebp - 0x34]
call fcn.005d6c55
and dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push eax
push 0
call fcn.005d758b
test eax, eax
jl 0x5d722c
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.005d72a7
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx esi, ax
mov eax, 0x409
mov edi, 0x5d7298
cmp ax, si
jne 0x5de4b4
and esi, 0x3ff
push esi
push edi
lea eax, [ebp - 0x30]
push 8
push eax
call fcn.005d1451
add esp, 0x10
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.005d758b
mov esi, eax
test esi, esi
jl 0x5d7280
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.005d72a7
mov esi, eax
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
call fcn.005d760b
mov eax, esi
call fcn.005d2b9f
ret

Function at 0x5d791d
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 0x5ddc4f
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 0x82
lea edx, [ebp - 0x30]
push edx
push 0x5d7900
push eax
call dword [ecx + 0x10]
mov esi, eax
lea eax, [ebp - 0x30]
push eax
call edi
cmp esi, ebx
jl 0x5d79a8
push 1
lea ecx, [ebp - 0x20]
call fcn.005d79e3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x20]
push edx
push 0x5d78ec
push eax
call dword [ecx + 0x10]
mov esi, eax
lea eax, [ebp - 0x20]
push eax
call edi
push eax
call fcn.005d71e0
cmp esi, ebx
jl 0x5d79a8
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 0x5d7992
push 0x24
mov eax, 0x5e5c85
call fcn.005d26dd
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 0x5d7854
push 1
lea ecx, [ebp - 0x20]
call fcn.005d79e3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x20]
push edx
push 0x5d3984
push eax
call dword [ecx + 0x10]
cmp eax, ebx
jl 0x5d79a6
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 0x5d79d0
push eax
call dword [ecx + 0x10]
mov esi, eax
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.005d7455
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x20]
push eax
call edi
push eax
call fcn.005d71e0
mov eax, esi
call fcn.005d1390
ret 0xc
Function at 0x5d7b05
Capabilities:
Identify system language via api

Disassembly:
push 0x50
mov eax, 0x5e5fc0
call fcn.005d39dd
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.005d7c2b
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 0x5d7b34
sub eax, ecx
sar eax, 1
mov edi, eax
je 0x5d7b63
movzx eax, word [ebx + esi*2]
push eax
call dword [sym.imp.msvcrt.dll_iswxdigit]
pop ecx
test eax, eax
je 0x5d7b5b
inc esi
cmp esi, edi
jb 0x5d7b46
cmp esi, edi
jb 0x5d7c0e
xor eax, eax
mov edx, ebx
test edi, edi
jbe 0x5d7c0e
cmp word [edx], 0x30
jne 0x5d7b7c
inc eax
inc edx
inc edx
cmp eax, edi
jb 0x5d7b6f
cmp eax, edi
jae 0x5d7c0e
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x5d7b89
sub eax, esi
sar eax, 1
cmp eax, 3
ja 0x5d7c0e
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 0x5d7c03
movzx eax, ax
movzx eax, ax
push eax
push 0x5d7c18
lea eax, [ebp - 0x50]
push 0x20
push eax
call fcn.005d1451
mov ecx, dword [ebp - 0x5c]
add esp, 0x10
lea eax, [ebp - 0x50]
push eax
call fcn.005d6c60
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x58]
lea ecx, [ebp - 0x58]
call fcn.005d760b
mov eax, dword [ebp - 0x54]
call fcn.005d2b9f
ret 8
or esi, 0x400
movzx eax, si
jmp 0x5d7bc6
mov dword [ebp - 0x54], 0x80041001
jmp 0x5d7be9
Function at 0x5d7f3e
Capabilities:
Create directory

Disassembly:
push 0x10
mov eax, 0x5e6a7d
call fcn.005d1350
mov dword [ebp - 0x1c], ecx
xor esi, esi
mov ebx, 0x8007000e
mov dword [ebp - 0x14], esi
cmp dword [ebp + 8], esi
je 0x5d8046
push 1
call fcn.005d227c
mov dword [ebp - 0x18], eax
cmp eax, esi
je 0x5d803c
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.005d13e0
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x5d7fcd
push dword [ebp - 0x18]
inc edi
push edi
push eax
call fcn.005d21cb
mov ebx, eax
test ebx, ebx
jl 0x5d8024
push dword [ebp + 8]
push esi
push dword [ebp - 0x14]
call fcn.005d2436
mov ebx, eax
test ebx, ebx
jl 0x5d8024
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0x5d8024
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x5d7ff6
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x5df33c
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0x5d8024
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 0x5df353
cmp dword [ebp - 0x14], 0
je 0x5d8033
push dword [ebp - 0x14]
call fcn.005d13c0
pop ecx
push dword [ebp - 0x18]
call fcn.005d13c0
pop ecx
mov eax, ebx
call fcn.005d1390
ret 4
mov ebx, 0x80070057
jmp 0x5d803c

Function at 0x5d85f1
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x5eb004]
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 0x5d8684
cmp eax, 0xffffffff
je 0x5d8684
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x5d8684
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.005d85b5
mov eax, esp
push esi
push ebx
push eax
call fcn.005d8692
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 0x5df2da
cmp esi, dword [ebp - 0xc]
jne 0x5df2f6
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.005d20d4
leave
ret 4
mov dword [ebp - 8], 0x80070057
jmp 0x5d866d