joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422d20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
mov eax, dword [0x4b1810]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x474], 0
cmp dword [ecx + 0x14], 8
push esi
mov esi, edx
jb 0x422d48
mov ecx, dword [ecx]
lea eax, [ebp - 0x218]
push eax
push 0
push 0x412d74
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x422d72
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004918a1
mov esp, ebp
pop ebp
ret
push 0x104
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x104
ja 0x422e1f
test eax, eax
je 0x422e1f
xor ecx, ecx
mov dword [ebp - 0x45c], 7
push eax
lea eax, [ebp - 0x428]
mov word [ebp - 0x470], cx
push eax
lea ecx, [ebp - 0x470]
mov dword [ebp - 0x460], 0
call fcn.0041aa00
lea eax, [ebp - 0x470]
push eax
lea ecx, [ebp - 0x458]
call fcn.0041d1f0
cmp esi, eax
je 0x422df0
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00419e00
cmp dword [ebp - 0x444], 8
jb 0x422e07
push dword [ebp - 0x458]
call fcn.0048db5b
add esp, 4
cmp dword [ebp - 0x45c], 8
jb 0x422f3a
push dword [ebp - 0x470]
jmp 0x422f32
xor eax, eax
mov dword [ebp - 0x444], 7
mov dword [ebp - 0x448], 0
mov word [ebp - 0x458], ax
cmp word [ebp - 0x218], ax
jne 0x422e49
xor ecx, ecx
jmp 0x422e61
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422e52
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x458]
call fcn.0041aa00
xor eax, eax
mov dword [ebp - 0x42c], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x440], ax
lea ecx, [ebp - 0x440]
lea eax, [ebp - 0x458]
mov dword [ebp - 0x430], 0
push eax
call fcn.00419e00
push 1
push 0
lea eax, [ebp - 0x474]
mov dword [ebp - 0x474], 0
push eax
lea ecx, [ebp - 0x440]
call fcn.00419f20
cmp eax, 0xffffffff
je 0x422ed9
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x440]
call fcn.0041abd0
lea eax, [ebp - 0x440]
cmp esi, eax
je 0x422eef
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00419e00
cmp dword [ebp - 0x42c], 8
jb 0x422f06
push dword [ebp - 0x440]
call fcn.0048db5b
add esp, 4
xor eax, eax
mov dword [ebp - 0x42c], 7
cmp dword [ebp - 0x444], 8
mov dword [ebp - 0x430], 0
mov word [ebp - 0x440], ax
jb 0x422f3a
push dword [ebp - 0x458]
call fcn.0048db5b
add esp, 4
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004918a1
mov esp, ebp
pop ebp
ret
Function at 0x422f50
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x4b1810]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
mov dword [ebp - 0x54], eax
xor eax, eax
push edi
mov dword [ebp - 0x58], edx
xor edi, edi
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], 0
mov word [ebp - 0x38], ax
jmp 0x422f90
xor eax, eax
mov dword [ebp - 0xc], 7
push 0xffffffffffffffff
push eax
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], 0
mov word [ebp - 0x20], ax
call fcn.00419e00
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea ecx, [ebp - 0x50]
call fcn.004240a0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x20]
call fcn.00419d30
cmp dword [ebp - 0x3c], 8
jb 0x422fe1
push dword [ebp - 0x50]
call fcn.0048db5b
add esp, 4
cmp dword [ebp - 0xc], 8
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x10]
cmovae ecx, dword [ebp - 0x20]
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x20]
cmovae ecx, dword [ebp - 0x20]
test eax, eax
je 0x423001
sub eax, ecx
sar eax, 1
push 0x5f
push 1
push eax
lea ecx, [ebp - 0x20]
call fcn.0041ab00
mov edi, edi
lea ecx, [ebp - 0x64]
call fcn.0043af50
cmp dword [ebp - 0x60], 0xffffffff
ja 0x423010
mov edx, dword [ebp - 0x64]
jb 0x42302b
cmp edx, 0xffff7fff
ja 0x423010
and edx, 0x7fff
lea ecx, [ebp - 0x50]
call fcn.004240a0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x20]
call fcn.00419d30
cmp dword [ebp - 0x3c], 8
jb 0x42305a
push dword [ebp - 0x50]
call fcn.0048db5b
add esp, 4
mov ecx, dword [ebp - 0x5c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.0041d7f0
lea ecx, [ebp - 0x38]
cmp ecx, eax
je 0x42307b
push 0xffffffffffffffff
push 0
push eax
call fcn.00419e00
cmp dword [ebp - 0x3c], 8
jb 0x42308c
push dword [ebp - 0x50]
call fcn.0048db5b
add esp, 4
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
push 0
cmovae eax, dword [ebp - 0x38]
push eax
call ebx
test eax, eax
jne 0x4230c2
cmp dword [ebp - 0xc], 8
jb 0x4230b1
push dword [ebp - 0x20]
call fcn.0048db5b
add esp, 4
mov edx, dword [ebp - 0x58]
inc edi
cmp edi, 0x32
jl 0x422f90
xor bl, bl
jmp 0x4230eb
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x38]
cmp eax, ecx
je 0x4230d8
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.00419e00
cmp dword [ebp - 0xc], 8
jb 0x4230e9
push dword [ebp - 0x20]
call fcn.0048db5b
add esp, 4
mov bl, 1
cmp dword [ebp - 0x24], 8
jb 0x4230fc
push dword [ebp - 0x38]
call fcn.0048db5b
add esp, 4
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004918a1
mov esp, ebp
pop ebp
ret
Function at 0x423110
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x4b1810]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x10], 0
cmp dword [edi + 0x14], 8
jb 0x42313f
mov ebx, dword [edi]
jmp 0x423141
mov ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x423183
test al, 0x10
je 0x423165
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004918a1
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x42316f
mov dword [esi], 0xfffffff7
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004918a1
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.0041d610
cmp dword [edi + 0x14], 8
jb 0x423199
mov eax, dword [edi]
jmp 0x42319b
mov eax, edi
push dword [edi + 0x10]
lea ecx, [esp + 0x18]
push eax
push dword [esp + 0x2c]
push 0
call fcn.0041ac80
test eax, eax
jne 0x4231c0
test esi, esi
je 0x42320d
mov dword [esi], 0xfffffffc
xor bl, bl
jmp 0x423213
lea eax, [esp + 0x14]
push esi
push eax
call fcn.00423110
add esp, 8
test al, al
jne 0x4231d6
xor bl, bl
jmp 0x423213
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x423211
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xb7
jne 0x423200
push edi
call fcn.00422950
add esp, 4
test al, al
jne 0x423211
test esi, esi
je 0x42320d
mov ecx, ebx
call fcn.0042e980
mov dword [esi], eax
xor bl, bl
jmp 0x423213
mov bl, 1
cmp dword [esp + 0x28], 8
jb 0x423226
push dword [esp + 0x14]
call fcn.0048db5b
add esp, 4
mov ecx, dword [esp + 0x2c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004918a1
mov esp, ebp
pop ebp
ret
Function at 0x423430
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [esp + 0x14], 0
cmp dword [eax + 0x14], 8
push edi
mov edi, dword [ebp + 0x10]
jb 0x423455
mov eax, dword [eax]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
xor ecx, ecx
mov dword [esp + 0x10], ecx
test esi, esi
je 0x4234f4
lea ecx, [esp + 0x10]
call fcn.00423b50
cmp esi, 0xffffffff
je 0x4234c1
mov dword [esp + 0x10], esi
call fcn.004274b0
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 4]
mov ecx, dword [0x4b71f8]
mov dword [esp + 0x14], eax
test ecx, ecx
jne 0x4234ae
call fcn.004275c0
mov ecx, dword [0x4b71f8]
push dword [esp + 0x1c]
mov eax, dword [ecx]
lea edx, [esp + 0x14]
push dword [esp + 0x18]
push edx
push esi
call dword [eax + 4]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4234f4
cmp ecx, 0xffffffff
je 0x4234f4
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4234f0
mov esi, dword [esp + 0x18]
cmp esi, edi
jne 0x4234f0
mov ecx, dword [esp + 0x10]
jmp 0x4234f7
mov ecx, dword [esp + 0x10]
or esi, 0xffffffff
test ecx, ecx
je 0x423555
cmp ecx, 0xffffffff
je 0x423555
call fcn.004274b0
mov ebx, dword [ebp + 4]
mov edi, eax
mov ecx, dword [0x4b71f8]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
test ecx, ecx
jne 0x423527
call fcn.004275c0
mov ecx, dword [0x4b71f8]
mov eax, dword [ecx]
lea edx, [esp + 0x10]
push edi
push ebx
push edx
push dword [esp + 0x20]
call dword [eax + 8]
mov ecx, dword [0x4b71f8]
mov edi, dword [esp + 0x10]
test ecx, ecx
jne 0x423550
call fcn.004275c0
mov ecx, dword [0x4b71f8]
mov edx, dword [ecx]
push edi
call dword [edx]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4239e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x4b1810]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov word [ebp - 0x210], ax
mov esi, ecx
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x423ad9
cmp eax, 0x104
ja 0x423ad9
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x240]
call fcn.004190c0
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x258]
call fcn.0041d1f0
mov ecx, eax
call fcn.0041db10
cmp esi, eax
je 0x423a66
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00419e00
cmp dword [ebp - 0x214], 8
jb 0x423a7d
push dword [ebp - 0x228]
call fcn.0048db5b
add esp, 4
xor eax, eax
mov dword [ebp - 0x214], 7
cmp dword [ebp - 0x244], 8
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], ax
jb 0x423ab1
push dword [ebp - 0x258]
call fcn.0048db5b
add esp, 4
cmp dword [ebp - 0x22c], 8
jb 0x423ac8
push dword [ebp - 0x240]
call fcn.0048db5b
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004918a1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.004918a1
mov esp, ebp
pop ebp
ret

Function at 0x425050
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], 0
cmp byte [esi], 0
je 0x425071
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x425074
mov eax, dword [esi + 4]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne bl
test bl, bl
je 0x4250fb
cmp byte [ebp + 0xc], 0
je 0x42517e
cmp byte [esi], 0
je 0x42509d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x4250a0
mov eax, dword [esi + 4]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x42517e
cmp dword [0x4b7158], 2
jg 0x4250f5
push 2
push 0x89
push 0x412dd8
lea ecx, [ebp - 0xb8]
mov dword [ebp - 4], 2
call fcn.0041f6f0
push 1
add eax, 8
push 0x412e1c
push eax
call fcn.0041b6f0
add esp, 8
mov ecx, eax
call fcn.00420030
test byte [ebp - 4], 2
jmp 0x425171
cmp dword [0x4b7158], 2
jg 0x42516d
push 1
push 2
lea ecx, [ebp - 0xb0]
mov dword [ebp - 4], 4
mov dword [ebp - 0xb8], 2
call fcn.0041ecd0
mov dword [ebp - 0x14], 0x412dd8
mov dword [ebp - 0x10], 0x90
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x90
push 0x412dd8
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0xc], eax
call fcn.0041f9c0
push 1
lea eax, [ebp - 0xb0]
push 0x412e48
push eax
call fcn.0041b6f0
add esp, 8
mov ecx, eax
call fcn.00420030
test byte [ebp - 4], 4
je 0x42517e
lea ecx, [ebp - 0xb8]
call fcn.0041f740
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x428870
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov ebx, edx
mov esi, ecx
push edi
test ebx, ebx
je 0x428897
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], 0
jb 0x428892
mov eax, dword [ebx]
jmp 0x428894
mov eax, ebx
mov byte [eax], 0
call fcn.0041db70
test al, al
je 0x4288a9
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x412f64
push esi
call fcn.00423370
mov edi, eax
add esp, 8
mov dword [ebp - 0xc], edi
test edi, edi
je 0x4288a0
push 0x10000
call fcn.0048ecf5
add esp, 4
mov dword [ebp - 8], 0
mov esi, eax
push edi
push 0x10000
push 1
push esi
call fcn.0049419a
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x10], edi
test edi, edi
je 0x428942
mov eax, dword [ebp + 8]
test ebx, ebx
je 0x428915
sub eax, dword [ebp - 8]
lea edx, [ebp - 0x10]
cmp eax, edi
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
cmovae ecx, edx
push dword [ecx]
mov ecx, ebx
push esi
call fcn.004199c0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
sub eax, ecx
cmp eax, edi
jb 0x428958
push dword [ebp - 0xc]
add ecx, edi
push 0x10000
push 1
push esi
mov dword [ebp - 8], ecx
call fcn.0049419a
mov edi, eax
add esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], edi
test edi, edi
jne 0x4288f3
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.00494246
add esp, 4
test eax, eax
jne 0x42895b
mov byte [ebp - 1], 1
jmp 0x42895f
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 1], 0
push ebx
call fcn.00494668
add esp, 4
test esi, esi
je 0x428975
push esi
call fcn.0048ecf0
add esp, 4
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42d330
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1010
call fcn.0048ed30
mov eax, dword [0x4b1810]
xor eax, esp
mov dword [esp + 0x100c], eax
mov eax, dword [ebp + 8]
lea edx, [esp]
push esi
push edi
mov edi, dword [ebp + 0xc]
push edx
lea edx, [esp + 0x14]
mov dword [esp + 0xc], 0
push edx
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 1
push edx
push 0
push eax
push dword [ecx]
mov dword [esp + 0x20], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x42d477
mov ecx, dword [esp + 0xc]
cmp ecx, 1
jne 0x42d404
cmp word [esp + 0x10], ax
jne 0x42d3c8
xor ecx, ecx
lea eax, [esp + 0x10]
push ecx
push eax
mov ecx, edi
call fcn.0041aa00
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.004918a1
mov esp, ebp
pop ebp
ret 8
lea ecx, [esp + 0x10]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42d3d0
sub ecx, edx
lea eax, [esp + 0x10]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.0041aa00
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.004918a1
mov esp, ebp
pop ebp
ret 8
cmp ecx, 2
jne 0x42d472
push 0x400
lea eax, [esp + 0x814]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [esp + 8], eax
test eax, eax
je 0x42d457
cmp eax, 0x400
ja 0x42d457
lea eax, [esp + 0x810]
mov ecx, edi
push eax
call fcn.0041e020
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.004918a1
mov esp, ebp
pop ebp
ret 8
mov eax, 0xea
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.004918a1
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov ecx, dword [esp + 0x1014]
pop edi
pop esi
xor ecx, esp
call fcn.004918a1
mov esp, ebp
pop ebp
ret 8
Function at 0x42ebb0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
xor eax, eax
mov dword [ebp - 8], 0
push ebx
mov ebx, dword [ebp + 8]
test bl, 1
push esi
mov esi, ecx
mov ecx, 3
cmovne eax, ecx
test bl, 2
mov ecx, 1
cmovne eax, ecx
mov ecx, ebx
and ecx, 4
mov dword [ebp - 8], ecx
mov ecx, 4
cmovne eax, ecx
test bl, 8
mov ecx, 2
cmovne eax, ecx
mov dword [ebp + 8], eax
push edi
test bl, 0x10
je 0x42ec09
mov dword [ebp + 8], 5
jmp 0x42ec11
test eax, eax
je 0x42ed6e
xor edx, edx
mov edi, 0x40000000
test bl, 0x40
mov eax, 4
cmovne edx, edi
test bl, 0x80
cmovne edx, eax
test bl, 0x20
je 0x42ec34
or edx, 0x80000000
test ebx, 0x4000
je 0x42ec42
or edx, 0x100
test ebx, 0x40000
je 0x42ec50
or edx, 0x20000000
mov ecx, ebx
shr ecx, 8
not ecx
and ecx, 1
test ebx, 0x200
jne 0x42ec65
or ecx, 2
test ebx, 0x8000
je 0x42ec6f
or ecx, eax
xor eax, eax
test ebx, 0x400
cmovne eax, edi
test ebx, 0x800
je 0x42ec87
or eax, 0x100
test ebx, 0x1000
je 0x42ec92
or eax, 2
test ebx, 0x2000
je 0x42ec9f
or eax, 0x4000000
test ebx, 0x20000
je 0x42ecac
or eax, 0x2000000
cmp dword [esi + 0x18], 8
lea edi, [esi + 4]
jb 0x42ecb7
mov edi, dword [edi]
push 0
push eax
push dword [ebp + 8]
push 0
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp dword [esi], edi
je 0x42ed10
mov ecx, esi
call fcn.00423b50
test edi, edi
je 0x42ed10
cmp edi, 0xffffffff
je 0x42ed10
mov dword [esi], edi
call fcn.004274b0
mov dword [ebp + 8], eax
mov eax, dword [ebp + 4]
mov ecx, dword [0x4b71f8]
mov dword [ebp - 4], eax
test ecx, ecx
jne 0x42ed03
call fcn.004275c0
mov ecx, dword [0x4b71f8]
push dword [ebp + 8]
mov eax, dword [ecx]
push dword [ebp - 4]
push esi
push edi
call dword [eax + 4]
mov eax, dword [esi]
test eax, eax
je 0x42ed5e
cmp eax, 0xffffffff
je 0x42ed5e
mov eax, ebx
mov dword [esi + 0x20], 0
shr eax, 0xa
and al, 1
cmp dword [ebp - 8], 0
mov byte [esi + 0x25], al
je 0x42ed4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne al
mov byte [esi + 0x24], al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test bl, 0xa
je 0x42ed6e
mov byte [esi + 0x24], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.0042e980
mov dword [esi + 0x20], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42fbc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 4], 0
mov esi, edx
push edi
test ebx, ebx
je 0x42fc2c
cmp dword [0x4b83e0], 0
jne 0x42fc19
push 0x44
call fcn.0048dae5
add esp, 4
test eax, eax
je 0x42fbfa
mov ecx, eax
call fcn.00426a30
mov edx, eax
jmp 0x42fbfc
xor edx, edx
mov ecx, edx
mov edi, 0x4b83e0
xor eax, eax
lock cmpxchg dword [edi], ecx
test eax, eax
je 0x42fc19
test edx, edx
je 0x42fc19
push ecx
mov ecx, edx
call fcn.004269f0
mov eax, dword [0x4b83e0]
cmp dword [eax], 1
jl 0x42fc2c
mov dword [ebp - 4], 0x10000
jmp 0x42fc2e
xor ebx, ebx
push 8
call fcn.0048dae5
add esp, 4
mov edi, eax
push 0
push dword [ebp - 4]
mov dword [edi], esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
push 0x42fa70
push ebx
setne cl
push 0
mov byte [edi + 4], cl
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x42fc71
push edi
call fcn.0048db5b
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x42fc87
mov dword [esi], eax
mov al, 1
mov dword [esi + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x438ef0
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, ecx
call fcn.00439240
mov eax, dword [0x4b29a8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, eax
test edx, edx
jne 0x438f11
call fcn.0043c0a0
mov edx, eax
mov eax, dword [0x4b82c4]
cmp dword [edx + eax*4], 0
jne 0x438f59
push 0x70
call fcn.0048dae5
add esp, 4
test eax, eax
je 0x438f36
push esi
mov ecx, eax
call fcn.00438cc0
mov esi, eax
jmp 0x438f38
xor esi, esi
mov eax, dword [0x4b29a8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x438f51
call fcn.0043c0a0
mov ecx, eax
mov eax, dword [0x4b82c4]
mov dword [ecx + eax*4], esi
pop esi
ret

Function at 0x438f60
Capabilities:
Get thread local storage value

Disassembly:
cmp byte [0x4b82c0], 0
push ebx
push esi
push edi
jne 0x438f72
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov eax, dword [0x4b29a8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x438f8b
call fcn.0043c0a0
mov ecx, eax
mov eax, dword [0x4b82c4]
mov eax, dword [ecx + eax*4]
test eax, eax
jne 0x439022
mov ecx, 0x4b82a4
xor edi, edi
xor ebx, ebx
call fcn.0042e640
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x4b8298]
test ecx, ecx
je 0x438fcb
mov eax, dword [ecx + 4]
mov edi, ecx
mov dword [0x4b8298], eax
mov dword [ecx + 4], ebx
jmp 0x438fd8
mov ebx, dword [0x4b82d8]
inc ebx
mov dword [0x4b82d8], ebx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x438fff
push 0x70
call fcn.0048dae5
add esp, 4
test eax, eax
je 0x438ffd
push ebx
mov ecx, eax
call fcn.00438d80
mov edi, eax
jmp 0x438fff
xor edi, edi
mov eax, dword [0x4b29a8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x439018
call fcn.0043c0a0
mov ecx, eax
mov eax, dword [0x4b82c4]
mov dword [ecx + eax*4], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x43af50
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
mov esi, 8
push edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp - 0xc]
cmp esi, 0xffffffff
lea eax, [ebp - 4]
cmovbe eax, edx
mov edi, dword [eax]
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
jne 0x43af96
cmp byte [0x4b82e4], al
jne 0x43afc1
int3
test bl, 1
je 0x43afa9
lea ecx, [ebp - 0xc0]
and ebx, 0xfffffffe
call fcn.0041f740
mov ecx, dword [ebp - 8]
sub esi, edi
add ecx, edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], ecx
test esi, esi
jne 0x43af73
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
call fcn.0048f00d
int3
Function at 0x43b1d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x4b1810]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x3c], edi
test edi, edi
jne 0x43b1f5
mov dword [ebp - 0x38], edi
jmp 0x43b214
cmp byte [edi], 0
jne 0x43b203
mov dword [ebp - 0x38], 0
jmp 0x43b214
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43b208
sub ecx, edx
mov dword [ebp - 0x38], ecx
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00428170
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x43b22c
mov eax, dword [eax]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp dword [ebp - 8], 8
mov esi, eax
mov dword [ebp - 0x38], esi
jb 0x43b24d
push dword [ebp - 0x1c]
call fcn.0048db5b
add esp, 4
test esi, esi
jne 0x43b266
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004918a1
mov esp, ebp
pop ebp
ret 8
test ebx, ebx
je 0x43b371
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048ecf5
add esp, 4
mov dword [ebp - 0x44], edi
mov esi, eax
test edi, edi
jne 0x43b297
mov dword [ebp - 0x40], edi
jmp 0x43b2b4
cmp byte [edi], 0
jne 0x43b2a5
mov dword [ebp - 0x40], 0
jmp 0x43b2b4
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x43b2a8
sub edi, ecx
mov dword [ebp - 0x40], edi
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00428170
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x43b2cc
mov eax, dword [eax]
push dword [ebp - 0x38]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp dword [ebp - 8], 8
jb 0x43b2e8
push dword [ebp - 0x1c]
call fcn.0048db5b
add esp, 4
push esi
lea ecx, [ebp - 0x1c]
call fcn.004190c0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00428060
mov edi, eax
add esp, 8
cmp ebx, edi
je 0x43b330
cmp dword [ebx + 0x14], 0x10
jb 0x43b317
push dword [ebx]
call fcn.0048db5b
add esp, 4
mov dword [ebx + 0x14], 0xf
mov ecx, ebx
mov dword [ebx + 0x10], 0
push edi
mov byte [ebx], 0
call fcn.004198a0
cmp dword [ebp - 0x20], 0x10
jb 0x43b341
push dword [ebp - 0x34]
call fcn.0048db5b
add esp, 4
cmp dword [ebp - 8], 8
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
jb 0x43b364
push dword [ebp - 0x1c]
call fcn.0048db5b
add esp, 4
test esi, esi
je 0x43b371
push esi
call fcn.0048ecf0
add esp, 4
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004918a1
mov esp, ebp
pop ebp
ret 8