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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x4b1780]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x210]
mov esi, ecx
push eax
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4233c1
cmp word [ebp - 0x210], 0
je 0x4233c1
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x228]
call fcn.00419210
lea eax, [ebp - 0x228]
mov ecx, esi
push eax
call fcn.0041d320
cmp dword [ebp - 0x214], 8
jb 0x4234df
push dword [ebp - 0x228]
jmp 0x4234d7
xor eax, eax
mov dword [ebp - 0x22c], 7
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x230], 0
mov word [ebp - 0x240], ax
call fcn.004231e0
test al, al
je 0x423416
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
mov dword [esi + 0x10], 0
mov ecx, esi
push eax
mov word [esi], ax
lea eax, [ebp - 0x240]
push eax
call fcn.00419f80
jmp 0x4234c8
push 3
xor eax, eax
mov dword [ebp - 0x214], 7
push 0x41309c
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], ax
call fcn.0041ab80
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
mov dword [esi + 0x10], 0
mov ecx, esi
push eax
mov word [esi], ax
lea eax, [ebp - 0x228]
push eax
call fcn.00419f80
push 1
push 0
lea eax, [ebp - 0x244]
mov dword [ebp - 0x244], 0
push eax
mov ecx, esi
call fcn.0041a0a0
cmp eax, 0xffffffff
je 0x423494
push 0xffffffffffffffff
push eax
mov ecx, esi
call fcn.0041ad50
cmp dword [ebp - 0x214], 8
jb 0x4234ab
push dword [ebp - 0x228]
call fcn.0048bc47
add esp, 4
xor eax, eax
mov dword [ebp - 0x214], 7
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], ax
cmp dword [ebp - 0x22c], 8
jb 0x4234df
push dword [ebp - 0x240]
call fcn.0048bc47
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0048f991
mov esp, ebp
pop ebp
ret
Function at 0x4234f0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x4b1780]
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 0x423530
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.00419f80
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea ecx, [ebp - 0x50]
call fcn.004247f0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x20]
call fcn.00419eb0
cmp dword [ebp - 0x3c], 8
jb 0x423581
push dword [ebp - 0x50]
call fcn.0048bc47
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 0x4235a1
sub eax, ecx
sar eax, 1
push 0x5f
push 1
push eax
lea ecx, [ebp - 0x20]
call fcn.0041ac80
mov edi, edi
lea ecx, [ebp - 0x64]
call fcn.0043ad90
cmp dword [ebp - 0x60], 0xffffffff
ja 0x4235b0
mov edx, dword [ebp - 0x64]
jb 0x4235cb
cmp edx, 0xffff7fff
ja 0x4235b0
and edx, 0x7fff
lea ecx, [ebp - 0x50]
call fcn.004247f0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x20]
call fcn.00419eb0
cmp dword [ebp - 0x3c], 8
jb 0x4235fa
push dword [ebp - 0x50]
call fcn.0048bc47
add esp, 4
mov ecx, dword [ebp - 0x5c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.0041db60
lea ecx, [ebp - 0x38]
cmp ecx, eax
je 0x42361b
push 0xffffffffffffffff
push 0
push eax
call fcn.00419f80
cmp dword [ebp - 0x3c], 8
jb 0x42362c
push dword [ebp - 0x50]
call fcn.0048bc47
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 0x423662
cmp dword [ebp - 0xc], 8
jb 0x423651
push dword [ebp - 0x20]
call fcn.0048bc47
add esp, 4
mov edx, dword [ebp - 0x58]
inc edi
cmp edi, 0x32
jl 0x423530
xor bl, bl
jmp 0x42368b
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x38]
cmp eax, ecx
je 0x423678
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.00419f80
cmp dword [ebp - 0xc], 8
jb 0x423689
push dword [ebp - 0x20]
call fcn.0048bc47
add esp, 4
mov bl, 1
cmp dword [ebp - 0x24], 8
jb 0x42369c
push dword [ebp - 0x38]
call fcn.0048bc47
add esp, 4
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048f991
mov esp, ebp
pop ebp
ret
Function at 0x423730
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 [0x4b1780]
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 0x42375f
mov ebx, dword [edi]
jmp 0x423761
mov ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4237a3
test al, 0x10
je 0x423785
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0048f991
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x42378f
mov dword [esi], 0xfffffff7
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0048f991
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.0041d980
cmp dword [edi + 0x14], 8
jb 0x4237b9
mov eax, dword [edi]
jmp 0x4237bb
mov eax, edi
push dword [edi + 0x10]
lea ecx, [esp + 0x18]
push eax
push dword [esp + 0x2c]
push 0
call fcn.0041ae00
test eax, eax
jne 0x4237e0
test esi, esi
je 0x42382d
mov dword [esi], 0xfffffffc
xor bl, bl
jmp 0x423833
lea eax, [esp + 0x14]
push esi
push eax
call fcn.00423730
add esp, 8
test al, al
jne 0x4237f6
xor bl, bl
jmp 0x423833
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x423831
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xb7
jne 0x423820
push edi
call fcn.004231b0
add esp, 4
test al, al
jne 0x423831
test esi, esi
je 0x42382d
mov ecx, ebx
call fcn.0042eda0
mov dword [esi], eax
xor bl, bl
jmp 0x423833
mov bl, 1
cmp dword [esp + 0x28], 8
jb 0x423846
push dword [esp + 0x14]
call fcn.0048bc47
add esp, 4
mov ecx, dword [esp + 0x2c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0048f991
mov esp, ebp
pop ebp
ret
Function at 0x423a50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [esp + 0x10], 0
cmp dword [eax + 0x14], 8
push edi
mov edi, dword [ebp + 0x10]
jb 0x423a75
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 0x423af4
lea ecx, [esp + 0x10]
call fcn.00424230
cmp esi, 0xffffffff
je 0x423ac1
mov dword [esp + 0x10], esi
call fcn.00426030
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [esp + 0x18]
push eax
push esi
call fcn.00426180
add esp, 0x10
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x423af4
cmp ecx, 0xffffffff
je 0x423af4
push 0
lea eax, [esp + 0x18]
push eax
push edi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x423af0
mov ebx, dword [esp + 0x14]
cmp ebx, edi
jne 0x423af0
mov ecx, dword [esp + 0x10]
jmp 0x423af7
mov ecx, dword [esp + 0x10]
or ebx, 0xffffffff
test ecx, ecx
je 0x423b49
cmp ecx, 0xffffffff
je 0x423b49
call fcn.00426030
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x1c]
call fcn.00426250
mov edi, dword [esp + 0x20]
add esp, 0x10
call fcn.004263d0
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
mov byte [0x4b7094], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov byte [0x4b7094], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x423fb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x4b1780]
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 0x4240a9
cmp eax, 0x104
ja 0x4240a9
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x240]
call fcn.00419210
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x258]
call fcn.0041d320
mov ecx, eax
call fcn.0041dea0
cmp esi, eax
je 0x424036
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00419f80
cmp dword [ebp - 0x214], 8
jb 0x42404d
push dword [ebp - 0x228]
call fcn.0048bc47
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 0x424081
push dword [ebp - 0x258]
call fcn.0048bc47
add esp, 4
cmp dword [ebp - 0x22c], 8
jb 0x424098
push dword [ebp - 0x240]
call fcn.0048bc47
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048f991
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.0048f991
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ecx
push esi
push edi
mov esi, edx
mov edi, ecx
call fcn.0041df00
test al, al
jne 0x42414c
mov ecx, esi
call fcn.0041df00
test al, al
jne 0x42414c
cmp dword [edi + 0x10], 0x104
jae 0x42414c
cmp dword [esi + 0x10], 0x104
jae 0x42414c
cmp dword [esi + 0x14], 8
jb 0x424115
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x42411d
mov edi, dword [edi]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x42414c
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42414c
test al, 1
je 0x424146
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov al, 1
pop edi
pop esi
pop ecx
ret
pop edi
xor al, al
pop esi
pop ecx
ret
Function at 0x427020
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
mov edx, dword [esi + 0x14]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edx
and ecx, eax
cmp dword [esi + 0x18], ecx
ja 0x427072
shr edx, 1
or eax, 0xffffffff
sub eax, edx
add ecx, eax
mov edx, dword [esi + 8]
mov esi, dword [esi]
mov eax, dword [edx + ecx*8]
add ecx, ecx
mov ebx, dword [edx + ecx*4]
lea edx, [edx + ecx*4]
cmp ebx, esi
jne 0x42708a
mov ecx, esi
jmp 0x42708f
mov ecx, dword [edx + 4]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x4270bc
mov ecx, dword [eax + 8]
cmp ecx, dword [edi]
je 0x42709e
mov eax, dword [eax]
jmp 0x427082
mov ecx, dword [edi]
cmp ecx, dword [eax + 8]
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], esi
jne 0x4270ae
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ecx]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x427150
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
mov edx, dword [ebx + 0x14]
xor ecx, eax
imul ecx, ecx, 0x1000193
and ecx, edx
cmp dword [ebx + 0x18], ecx
ja 0x4271a4
shr edx, 1
or eax, 0xffffffff
sub eax, edx
add ecx, eax
mov esi, dword [ebx]
lea edx, [ecx*8]
mov ecx, dword [ebx + 8]
mov dword [esp + 0xc], edx
mov eax, dword [ecx + edx]
cmp esi, eax
je 0x4271d3
mov esi, dword [ecx + edx + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x4271d3
mov ecx, dword [edi]
mov esi, dword [esi + 4]
cmp dword [esi + 8], ecx
je 0x427217
cmp esi, eax
jne 0x4271c7
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
cmp esi, eax
je 0x427201
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov edx, dword [esi + 4]
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov edx, dword [esp + 0xc]
mov ecx, dword [ebx + 8]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x427233
mov dword [ecx], edi
mov eax, dword [ebx + 8]
mov dword [eax + edx + 4], edi
jmp 0x427255
push dword [ebp + 0x10]
mov ecx, ebx
call fcn.00427270
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, esi
jne 0x42723b
mov dword [ecx], edi
jmp 0x427255
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x427255
mov ecx, dword [ebx + 8]
mov eax, dword [ecx + edx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx + 4], eax
mov ecx, ebx
call fcn.004272c0
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
mov byte [eax + 4], 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x428090
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
call fcn.0041df00
test al, al
jne 0x4280b7
mov ecx, dword [ebp + 0xc]
call fcn.0041df00
test al, al
jne 0x4280b7
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.00424160
xor al, al
pop ebp
ret

Function at 0x4280c0
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 0x4280e7
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], 0
jb 0x4280e2
mov eax, dword [ebx]
jmp 0x4280e4
mov eax, ebx
mov byte [eax], 0
call fcn.0041df00
test al, al
je 0x4280f9
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4131a4
push esi
call fcn.00423990
mov edi, eax
add esp, 8
mov dword [ebp - 0xc], edi
test edi, edi
je 0x4280f0
push 0x10000
call fcn.0048cde5
add esp, 4
mov dword [ebp - 8], 0
mov esi, eax
push edi
push 0x10000
push 1
push esi
call fcn.004923a8
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x10], edi
test edi, edi
je 0x428192
mov eax, dword [ebp + 8]
test ebx, ebx
je 0x428165
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.00419b40
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
sub eax, ecx
cmp eax, edi
jb 0x4281a8
push dword [ebp - 0xc]
add ecx, edi
push 0x10000
push 1
push esi
mov dword [ebp - 8], ecx
call fcn.004923a8
mov edi, eax
add esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], edi
test edi, edi
jne 0x428143
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.00492454
add esp, 4
test eax, eax
jne 0x4281ab
mov byte [ebp - 1], 1
jmp 0x4281af
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 1], 0
push ebx
call fcn.00492876
add esp, 4
test esi, esi
je 0x4281c5
push esi
call fcn.0048cde0
add esp, 4
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x428680
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 8], 0
mov esi, ecx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne bl
test bl, bl
je 0x428709
cmp byte [ebp + 8], 0
je 0x428788
push 0xea60
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x428788
cmp dword [0x4b7064], 2
jg 0x428703
push 2
push 0x67
push 0x4131c0
lea ecx, [ebp - 0xbc]
mov dword [ebp - 8], 1
call fcn.0041fca0
push edi
add eax, 8
push 0x413204
push eax
call fcn.0041b870
add esp, 8
mov ecx, eax
call fcn.004205e0
test byte [ebp - 8], 1
jmp 0x42877b
cmp dword [0x4b7064], 2
jg 0x428777
push 1
push 2
lea ecx, [ebp - 0xb4]
mov dword [ebp - 8], 2
mov dword [ebp - 0xbc], 2
call fcn.0041f060
mov dword [ebp - 0x18], 0x4131c0
mov dword [ebp - 0x14], 0x6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x6e
push 0x4131c0
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0x10], eax
call fcn.0041ff70
push edi
lea eax, [ebp - 0xb4]
push 0x413230
push eax
call fcn.0041b870
add esp, 8
mov ecx, eax
call fcn.004205e0
test byte [ebp - 8], 2
je 0x428788
lea ecx, [ebp - 0xbc]
call fcn.0041fcf0
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42d420
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1010
call fcn.0048ce20
mov eax, dword [0x4b1780]
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 0x42d567
mov ecx, dword [esp + 0xc]
cmp ecx, 1
jne 0x42d4f4
cmp word [esp + 0x10], ax
jne 0x42d4b8
xor ecx, ecx
lea eax, [esp + 0x10]
push ecx
push eax
mov ecx, edi
call fcn.0041ab80
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.0048f991
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 0x42d4c0
sub ecx, edx
lea eax, [esp + 0x10]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.0041ab80
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.0048f991
mov esp, ebp
pop ebp
ret 8
cmp ecx, 2
jne 0x42d562
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 0x42d547
cmp eax, 0x400
ja 0x42d547
lea eax, [esp + 0x810]
mov ecx, edi
push eax
call fcn.0041e3b0
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.0048f991
mov esp, ebp
pop ebp
ret 8
mov eax, 0xea
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.0048f991
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov ecx, dword [esp + 0x1014]
pop edi
pop esi
xor ecx, esp
call fcn.0048f991
mov esp, ebp
pop ebp
ret 8
Function at 0x42ebd0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
xor eax, eax
mov dword [esp + 8], 0
push ebx
mov ebx, dword [ebp + 0xc]
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 [esp + 0x10], ecx
mov ecx, 4
cmovne eax, ecx
test bl, 8
mov ecx, 2
cmovne eax, ecx
mov dword [esp + 0xc], eax
push edi
test bl, 0x10
je 0x42ec30
mov dword [esp + 0x10], 5
jmp 0x42ec38
test eax, eax
je 0x42ed7b
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 0x42ec5b
or edx, 0x80000000
test ebx, 0x4000
je 0x42ec69
or edx, 0x100
test ebx, 0x40000
je 0x42ec77
or edx, 0x20000000
mov ecx, ebx
shr ecx, 8
not ecx
and ecx, 1
test ebx, 0x200
jne 0x42ec8c
or ecx, 2
test ebx, 0x8000
je 0x42ec96
or ecx, eax
xor eax, eax
test ebx, 0x400
cmovne eax, edi
test ebx, 0x800
je 0x42ecae
or eax, 0x100
test ebx, 0x1000
je 0x42ecb9
or eax, 2
test ebx, 0x2000
je 0x42ecc6
or eax, 0x4000000
test ebx, 0x20000
je 0x42ecd3
or eax, 0x2000000
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 8
jb 0x42ecde
mov edi, dword [edi]
push 0
push eax
push dword [esp + 0x18]
push 0
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp dword [esi], edi
je 0x42ed1c
mov ecx, esi
call fcn.00424230
test edi, edi
je 0x42ed1c
cmp edi, 0xffffffff
je 0x42ed1c
mov dword [esi], edi
call fcn.00426030
push eax
mov eax, dword [ebp + 4]
push eax
push esi
push edi
call fcn.00426180
add esp, 0x10
mov eax, dword [esi]
test eax, eax
je 0x42ed6b
cmp eax, 0xffffffff
je 0x42ed6b
mov eax, ebx
mov dword [esi + 4], 0
shr eax, 0xa
and al, 1
cmp dword [esp + 0x14], 0
mov byte [esi + 9], al
je 0x42ed59
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne al
mov byte [esi + 8], al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test bl, 0xa
je 0x42ed7b
mov byte [esi + 8], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.0042eda0
mov dword [esi + 4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x42fdd0
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 0x42fe3c
cmp dword [0x4b8274], 0
jne 0x42fe29
push 0x44
call fcn.0048bbd1
add esp, 4
test eax, eax
je 0x42fe0a
mov ecx, eax
call fcn.004274b0
mov edx, eax
jmp 0x42fe0c
xor edx, edx
mov ecx, edx
mov edi, 0x4b8274
xor eax, eax
lock cmpxchg dword [edi], ecx
test eax, eax
je 0x42fe29
test edx, edx
je 0x42fe29
push ecx
mov ecx, edx
call fcn.00427470
mov eax, dword [0x4b8274]
cmp dword [eax], 1
jl 0x42fe3c
mov dword [ebp - 4], 0x10000
jmp 0x42fe3e
xor ebx, ebx
push 8
call fcn.0048bbd1
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 0x42fcb0
push ebx
setne cl
push 0
mov byte [edi + 4], cl
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x42fe81
push edi
call fcn.0048bc47
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x42fe97
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 0x435f10
Capabilities:
Enumerate processes

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32FirstW]
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xc]
mov edi, edi
push 0x22c
push 0
push edi
call fcn.00447e1c
add esp, 0xc
mov dword [edi], 0x22c
cmp byte [esi + 8], 0
push edi
push dword [esi + 4]
jne 0x435f48
mov byte [esi + 8], 1
call ebx
jmp 0x435f4e
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
setne al
test al, al
je 0x435f6a
mov edx, dword [esi]
mov ecx, esi
mov edx, dword [edx + 4]
call edx
test al, al
je 0x435f20
mov eax, edi
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x439920
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, ecx
call fcn.004399f0
test al, al
je 0x43998d
mov eax, dword [0x4b2914]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x439945
call fcn.0043bb80
mov ecx, eax
mov eax, dword [0x4b81bc]
cmp dword [ecx + eax*4], 0
jne 0x43998d
push 0x74
call fcn.0048bbd1
add esp, 4
test eax, eax
je 0x43996a
push esi
mov ecx, eax
call fcn.00439700
mov esi, eax
jmp 0x43996c
xor esi, esi
mov eax, dword [0x4b2914]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x439985
call fcn.0043bb80
mov ecx, eax
mov eax, dword [0x4b81bc]
mov dword [ecx + eax*4], esi
pop esi
ret

Function at 0x43ad90
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 0x43add6
cmp byte [0x4b81d8], al
jne 0x43ae01
int3
test bl, 1
je 0x43ade9
lea ecx, [ebp - 0xc0]
and ebx, 0xfffffffe
call fcn.0041fcf0
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 0x43adb3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
call fcn.0048d0bd
int3