joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4793c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
cmp dword [ebp + 8], 0
setne al
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4793f8
push str._path___NULL_
push 0
push 0x50
push str.f:dd_vctoolscrt_bld_self_x86crt_src_access.c
push 2
call fcn.0046aed0
add esp, 0x14
cmp eax, 1
jne 0x4793f8
int3
cmp dword [ebp - 8], 0
jne 0x479439
call fcn.004641a0
mov dword [eax], 0
call fcn.00464170
mov dword [eax], 0x16
push 0
push 0x50
push str.f:dd_vctoolscrt_bld_self_x86crt_src_access.c
push str._access_s
push str._path___NULL_
call fcn.0046a900
add esp, 0x14
mov eax, 0x16
jmp 0x479511
mov edx, dword [ebp + 0xc]
and edx, 0xfffffff9
neg edx
sbb edx, edx
add edx, 1
mov dword [ebp - 0xc], edx
jne 0x479469
push str.__amode___6____0_
push 0
push 0x51
push str.f:dd_vctoolscrt_bld_self_x86crt_src_access.c
push 2
call fcn.0046aed0
add esp, 0x14
cmp eax, 1
jne 0x479469
int3
cmp dword [ebp - 0xc], 0
jne 0x4794a7
call fcn.004641a0
mov dword [eax], 0
call fcn.00464170
mov dword [eax], 0x16
push 0
push 0x51
push str.f:dd_vctoolscrt_bld_self_x86crt_src_access.c
push str._access_s
push str.__amode___6____0_
call fcn.0046a900
add esp, 0x14
mov eax, 0x16
jmp 0x479511
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4794d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00463f60
add esp, 4
call fcn.00464170
mov eax, dword [eax]
jmp 0x479511
mov edx, dword [ebp - 4]
and edx, 0x10
je 0x4794de
xor eax, eax
jmp 0x479511
mov eax, dword [ebp - 4]
and eax, 1
je 0x47950f
mov ecx, dword [ebp + 0xc]
and ecx, 2
je 0x47950f
call fcn.004641a0
mov dword [eax], 5
call fcn.00464170
mov dword [eax], 0xd
call fcn.00464170
mov eax, dword [eax]
jmp 0x479511
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x47a150
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4e2ec0]
jne 0x47a15a
repz ret
jmp fcn.0048e4e0
Function at 0x40177f
Capabilities:
Parse pe header

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

Function at 0x4078d4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4165b8
push 0x4165b0
push str.FlsAlloc
push 0x1e
call fcn.00407795
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407908
push dword [ebp + 8]
mov ecx, esi
call dword [0x415120]
call esi
jmp 0x40790e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x407952
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4165c8
push 0x4165c0
push str.FlsGetValue
push 0x20
call fcn.00407795
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407989
push dword [ebp + 8]
mov ecx, esi
call dword [0x415120]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x40ba2e
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 0x40bacb
push ebx
push esi
call fcn.0040b9f7
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.0040b940
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40ba78
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40baca
push edi
push eax
call fcn.00408089
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40ba98
call fcn.00407628
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40bac9
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040b940
add esp, 0x20
test eax, eax
jne 0x40bab7
push edi
call fcn.00407628
jmp 0x40babf
push ebx
call fcn.00407628
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 0x414080
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4140ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4140ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x408270
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bbfc8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4fe280]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov ecx, 0x5030e5
call fcn.004b99c5
mov eax, dword [esi + 4]
test eax, eax
je 0x4083d2
cmp byte [eax + 0x54], 0
je 0x4083d2
add eax, 0x1c
lea ecx, [ebp - 0x34]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x34], xmm0
call fcn.00406670
mov dword [ebp - 4], 0
mov eax, dword [esi + 4]
cmp dword [eax + 0x14], 8
jb 0x4082e4
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40839f
push 0
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.0042b8a0
add esp, 0xc
mov byte [ebp - 4], 2
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x2c]
push 0
push ecx
push dword [ebp - 0x18]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x40837f
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408375
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4083ef
push edx
push ecx
call fcn.004491e3
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 0
mov dword [ebp - 4], 7
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x4083c4
cmp byte [ebp - 0x30], 0
je 0x4083c4
mov eax, dword [esi]
test eax, eax
je 0x4083c0
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esi + 4], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00448da0
mov esp, ebp
pop ebp
ret 4
call fcn.00454388
int3
Function at 0x40adb0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4fe280]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x5030e5
call fcn.004b99c5
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0xc], 0
mov byte [ebp - 0xb], 0
mov byte [ebp - 0xa], 0
mov byte [ebp - 9], 0
mov byte [ebp - 8], 0
mov byte [ebp - 7], 5
mov byte [ebp - 0x15], 0
push 0x500100
push 0x400
call fcn.004494ca
add esp, 8
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40ae15
xor al, al
jmp 0x40aef0
lea ecx, [ebp - 0x10]
push ecx
push 0x400
mov edx, dword [ebp - 0x1c]
push edx
push 2
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x40ae34
jmp 0x40aeb2
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x40ae5d
jmp 0x40aeb2
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0
jmp 0x40ae75
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
cmp eax, dword [edx]
jae 0x40aea0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + ecx*8 + 4]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x40ae9e
mov byte [ebp - 0x15], 1
jmp 0x40aea0
jmp 0x40ae6c
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
xor eax, eax
jne 0x40ae15
cmp dword [ebp - 0x1c], 0
je 0x40aeed
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.004494c5
add esp, 4
cmp dword [ebp - 0x28], 0
jne 0x40aed9
mov dword [ebp - 0x30], 0
jmp 0x40aee6
mov dword [ebp - 0x1c], 0x8123
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x1c], 0
mov al, byte [ebp - 0x15]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00448da0
mov esp, ebp
pop ebp
ret
Function at 0x411940
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x4fe280]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, ecx
mov ecx, 0x5030e5
call fcn.004b99c5
push 0x118
lea eax, [esi + 4]
push 0
push eax
call fcn.0044ba00
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x411a8c
cmp dword [esi + 4], 6
push edi
ja 0x4119a0
jne 0x411a28
cmp dword [esi + 8], 2
jb 0x411a28
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x411a28
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x411a28
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x411a28
movups xmm0, xmmword [0x4df6a0]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x4df6b0]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x411a28
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x411a28
cmp word [edi + 2], ax
jbe 0x411a28
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x411a73
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call fcn.0044ba00
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x411a73
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.00448da0
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.00448da0
add esp, 0x140
ret
Function at 0x417890
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x120]
sub esp, 0x120
push 0xffffffffffffffff
push 0x4bf5d8
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x4fe280]
xor eax, ebp
mov dword [ebp + 0x11c], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov ecx, 0x5030e5
mov dword [ebp - 0x14], esi
call fcn.004b99c5
mov dword [ebp - 4], 0
push 1
call fcn.00448db1
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [ebp + 4]
push eax
call fcn.0044ba00
add esp, 0x10
mov dword [ebp], 0x11c
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41791f
cmp dword [ebp + 4], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x11c]
xor ecx, ebp
call fcn.00448da0
lea esp, [ebp + 0x120]
pop ebp
ret
Function at 0x41eba0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4f02e0
push 0x44bce0
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4fe280]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x434], esi
mov ecx, 0x5030e5
call fcn.004b99c5
mov dword [ebp - 4], 0
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x41ec04
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov edx, esi
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.0041ecf0
mov bl, al
mov byte [ebp - 0x42d], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x41ec47
test bl, bl
jne 0x41eccd
cmp edi, 0x1a
jne 0x41eccd
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x41ec65
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
push 0x410
push ecx
lea eax, [ebp - 0x42c]
push eax
call fcn.0044ba00
add esp, 0xc
push 0x207
lea eax, [ebp - 0x42c]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp - 0x42c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41eca0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x42c]
push eax
mov ecx, esi
call fcn.00404990
movzx ebx, bl
mov eax, 1
cmp dword [esi + 0x10], 0
cmovne ebx, eax
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00448da0
mov esp, ebp
pop ebp
ret
Function at 0x420030
Capabilities:
Copy file

Disassembly:
mov ecx, 0x5030e5
call fcn.004b99c5
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
jmp fcn.00434d20

Function at 0x420d10
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c1888
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x4fe280]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov ecx, 0x5030e5
call fcn.004b99c5
mov eax, dword [esi]
test eax, eax
je 0x420d5d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
lea ecx, [ebp - 0x14]
mov word [esi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.004340f0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x420d86
add eax, 8
jmp 0x420d88
xor eax, eax
cmp dword [edi + 0x10], 0
je 0x420d98
cmp dword [edi + 0x14], 8
jb 0x420d9a
mov edi, dword [edi]
jmp 0x420d9a
xor edi, edi
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x420dbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x420dbb
mov byte [esi + 5], 1
cmp dword [esi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004342c0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00448da0
mov esp, ebp
pop ebp
ret 4
Function at 0x420df0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c18b8
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x4fe280]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov ecx, 0x5030e5
call fcn.004b99c5
mov eax, dword [esi]
test eax, eax
je 0x420e3d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push ecx
lea ecx, [ebp - 0x14]
mov word [esi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.004341d0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x420e67
lea ebx, [eax + 8]
jmp 0x420e69
xor ebx, ebx
cmp dword [edi + 0x10], 0
je 0x420e7b
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x420e7d
mov eax, dword [edi]
jmp 0x420e7d
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
test eax, eax
jne 0x420ec6
call ecx
cmp eax, 5
jne 0x420ec0
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [edi + 0x10], 0
je 0x420eb2
cmp dword [edi + 0x14], 8
jb 0x420eb4
mov edi, dword [edi]
jmp 0x420eb4
xor edi, edi
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esi]
test eax, eax
je 0x420ee4
call ecx
cmp eax, 0xb7
jne 0x420ed9
mov byte [esi + 5], 1
mov ecx, dword [esi]
call fcn.00418c50
mov eax, dword [esi]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004342c0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00448da0
mov esp, ebp
pop ebp
ret 4

Function at 0x4217f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c1c0a
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x4fe280]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov ecx, 0x502652
call fcn.004b99c5
push 0
mov ecx, esi
call fcn.0049410f
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov byte [ebp - 4], 1
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
mov byte [ebp - 4], 2
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov byte [ebp - 4], 3
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov byte [ebp - 4], 4
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov byte [ebp - 4], 5
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
mov eax, dword [ebp + 8]
test eax, eax
je 0x4218af
push eax
push esi
call fcn.004989ef
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
lea ecx, [ebp - 0x1c]
call fcn.00421560
push 0x4fc6c0
lea eax, [ebp - 0x1c]
push eax
call fcn.0044bb5a
int3
Function at 0x42c020
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x4c3cf0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4fe280]
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, 0x5030e5
call fcn.004b99c5
lea eax, [ebp]
push eax
push 0x3fe
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
je 0x42c0f0
lea ecx, [ebp]
mov dword [ebp - 0x18], 0
xor esi, esi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
cmp edi, 0x3fe
jbe 0x42c115
xor ecx, ecx
lea eax, [edi + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004497e2
add esp, 4
mov dword [ebp - 0x10], eax
mov esi, eax
mov dword [ebp - 0x18], esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x42c0da
cmp eax, edi
ja 0x42c0da
mov ecx, esi
mov dword [ebp - 0x14], eax
xor edx, edx
mov dword [ecx + eax*2], edx
jmp 0x42c141
mov dword [ebp - 4], 0xffffffff
mov eax, esi
test eax, eax
je 0x42c0f0
push eax
call fcn.004494c5
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.00448da0
lea esp, [ebp + 0x804]
pop ebp
ret
add edi, edi
cmp edi, 0x800
jae 0x42c1e0
xor eax, eax
mov word [ebp + edi], ax
add edi, 2
cmp edi, 0x800
jae 0x42c1e0
mov word [ebp + edi], ax
mov eax, dword [ebp - 0x14]
xor edx, edx
xor edi, edi
test eax, eax
je 0x42c1c5
mov ecx, dword [ebp - 0x14]
mov eax, 2
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
cmp word [esi + eax - 2], 0
jne 0x42c1b7
cmp edx, edi
je 0x42c1b7
lea eax, [esi + edx*2]
push eax
lea ecx, [ebp - 0x34]
call fcn.00404530
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
mov eax, dword [ebx + 4]
push ecx
cmp dword [ebx + 8], eax
je 0x42c18c
mov ecx, eax
call fcn.00409b80
add dword [ebx + 4], 0x18
jmp 0x42c194
push eax
mov ecx, ebx
call fcn.00410470
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.004048c0
mov byte [ebp - 4], 0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0
lea edx, [edi + 1]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
inc edi
add eax, 2
mov dword [ebp - 0x1c], eax
cmp edi, ecx
jb 0x42c157
mov esi, dword [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x42c1d9
push esi
call fcn.004494c5
add esp, 4
mov al, 1
jmp 0x42c0f2
call fcn.004495f4
int3
Function at 0x42cde0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c40f8
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x4fe280]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, 0x5030e5
call fcn.004b99c5
cmp dword [esi + 8], 0
jne 0x42ce24
xor al, al
jmp 0x42cf05
push 4
lea ecx, [ebp - 0x14]
call fcn.004075f0
mov eax, dword [esi + 8]
add eax, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], eax
je 0x42ce4d
mov eax, dword [eax]
test eax, eax
je 0x42ce4d
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 1
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x42ced8
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
lea edi, [esi + 4]
push 1
push edi
call ebx
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x42c5e0
push 0
push 0
call fcn.0046b1bf
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
je 0x42cebf
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x42cead
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x42cebf
mov bl, 1
jmp 0x42ceda
push 0xffffffffffffffff
push edi
call ebx
sub eax, 1
jne 0x42ced0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.0042c7b0
xor bl, bl
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x42cefc
mov eax, dword [eax]
test eax, eax
je 0x42cef5
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00448da0
mov esp, ebp
pop ebp
ret

Function at 0x42eb50
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, 0x5030e5
push edi
call fcn.004b99c5
mov ecx, dword [esi]
test ecx, ecx
je 0x42eb96
mov eax, dword [esp + 0xc]
test eax, eax
je 0x42eb96
mov ecx, dword [ecx]
cmp ecx, 0xffffffff
je 0x42eb96
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push 0
push esi
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42eb96
cmp edi, dword [esi]
jne 0x42eb96
pop edi
mov al, 1
pop esi
ret 0xc
pop edi
xor al, al
pop esi
ret 0xc