joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004ff40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10050050
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10050015
mov edx, dword [ebp - 4]
cmp edx, dword [0x10125068]
jb 0x1004ff85
mov eax, dword [ebp - 4]
cmp eax, dword [0x1012506c]
ja 0x1004ff85
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1004ff55
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10058140
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1004ffaa
jmp 0x10050015
cmp dword [ebp - 0x14], 0x10000
jne 0x1004fffe
cmp dword [ebp - 0x18], 0x10000
jb 0x1004fffe
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1004ffe1
mov eax, dword [ebp - 8]
jmp 0x10050017
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1004fff1
xor eax, eax
jmp 0x10050017
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10050010
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10050050
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1004ff55
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10050080
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10050470
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x10128e08], 0
jne 0x100500bd
cmp dword [0x10128e04], 0
je 0x100500bd
mov eax, dword [0x10128e04]
mov dword [0x10128e08], eax
cmp dword [0x10128e08], 0
je 0x1005013a
mov ecx, dword [0x10128e08]
cmp dword [ecx + 8], 0
je 0x1005013a
mov edx, dword [0x10128e08]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1005013a
mov ecx, dword [0x10128e08]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1005013a
mov eax, dword [0x10128e08]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x10050109
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x10050110
xor eax, eax
jmp 0x10050259
mov ecx, dword [0x10128e08]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call fcn.10058140
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x10050259
mov edx, dword [0x10128e04]
mov dword [0x10128e08], edx
jmp 0x10050156
mov eax, dword [0x10128e08]
mov ecx, dword [eax + 4]
mov dword [0x10128e08], ecx
cmp dword [0x10128e08], 0
je 0x10050196
cmp dword [0x10128e08], 0
je 0x10050194
mov edx, dword [0x10128e08]
cmp dword [edx + 8], 0
je 0x10050194
mov eax, dword [0x10128e08]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x10050194
mov edx, dword [0x10128e08]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x10050194
jmp 0x100500ee
jmp 0x10050148
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10050260
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10050257
mov eax, dword [ebp - 0x18]
mov dword [0x10128e08], eax
mov ecx, dword [0x10128e08]
mov dword [ecx], 0x52727464
mov edx, dword [0x10128e08]
mov dword [edx + 8], 0
mov eax, dword [0x10128e08]
mov ecx, dword [0x10128e04]
mov dword [eax + 4], ecx
mov edx, dword [0x10128e08]
mov dword [0x10128e04], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x10128e08]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x10050227
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x10050247
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1005021e
mov eax, dword [0x10128e08]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x100500ee
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10050fa0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10128e04]
mov dword [ebp - 4], eax
jmp 0x10050fb9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10050fe0
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x10050fde
call sub.KERNEL32.dll_GetLastError
jmp 0x10050fe2
jmp 0x10050fb0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10051480
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x10128e14], eax
je 0x100514a4
mov eax, 0x10dd
jmp 0x1005164c
cmp dword [0x10128e18], 0
je 0x100514b7
mov eax, dword [0x10128e18]
jmp 0x1005164c
cmp dword [ebp + 0xc], 0
jne 0x100514c7
mov eax, 0x57
jmp 0x1005164c
cmp dword [ebp + 8], 0
jne 0x100514d7
mov eax, 6
jmp 0x1005164c
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x10051500
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x10128e18], ecx
mov edx, dword [ebp + 8]
mov dword [0x10128e1c], edx
mov eax, dword [ebp - 8]
jmp 0x1005164c
push 0x18
call fcn.10052b60
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1005155b
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x10128e18], ecx
cmp dword [ebp - 4], 0
je 0x1005154a
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.10052bb0
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x10128e1c], ecx
mov eax, dword [ebp - 8]
jmp 0x1005164c
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.10051460
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10051460
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xc], 0
je 0x1005159b
cmp dword [ebp - 0xc], 0x1e
jbe 0x100515b7
mov dword [ebp - 8], 9
cmp dword [0x10128e0c], 0
je 0x100515b2
jmp 0x10051529
jmp 0x10051520
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x100515de
mov dword [ebp - 8], 9
cmp dword [0x10128e0c], 0
je 0x100515d9
jmp 0x10051529
jmp 0x10051520
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x10051609
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x10051520
mov edx, dword [ebp - 4]
mov dword [edx + 4], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x10128e24]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x10128e24], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x10051660
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x10128e14], eax
je 0x1005167d
mov eax, 0x10dd
jmp 0x10051760
mov eax, dword [0x10128e24]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100516fc
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x100516d8
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x100516d8
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10050500
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.10052bb0
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x10051685
mov dword [0x10128e24], 0
call fcn.10050de0
mov ecx, dword [0x10128e20]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1005174a
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.10052bb0
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x10051714
mov dword [0x10128e20], 0
mov dword [0x10128e14], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10051c40
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x10128e18], 0
je 0x10051c59
mov eax, dword [0x10128e18]
jmp 0x10051cf8
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x10051c6a
xor eax, eax
jmp 0x10051cf8
push 8
call fcn.10052b60
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10051cc2
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x10051cab
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.10052bb0
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x10128e18], eax
mov dword [0x10128e1c], 0
mov eax, dword [ebp - 8]
jmp 0x10051cf8
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x10051cda
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x10051c8a
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x10128e20]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x10128e20], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x1007cfd0
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
call fcn.10082e80
mov byte [ebp - 1], al
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1007d00e
cmp dword [ebp + 8], 0
je 0x1007cffc
lea eax, [ebp + 8]
push eax
call fcn.1007d1d0
add esp, 4
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x1007d00e
mov eax, 4
jmp 0x1007d13e
call fcn.10082c80
movzx edx, al
test edx, edx
jne 0x1007d03c
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1007d02d
mov dword [ebp - 0xc], 4
jmp 0x1007d034
mov dword [ebp - 0xc], 3
mov eax, dword [ebp - 0xc]
jmp 0x1007d13e
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1007d0e5
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
push 0
push 0
lea ecx, [ebp - 0x34]
push ecx
push 0x1007d180
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
lea ecx, [ebp - 8]
call fcn.1007fc70
lea ecx, [ebp - 8]
call fcn.1007d210
movzx edx, al
test edx, edx
jne 0x1007d0a7
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 8]
call fcn.1007d1f0
mov eax, dword [ebp - 0x10]
jmp 0x1007d13e
push 0
push 0xffffffffffffffff
lea ecx, [ebp - 8]
call fcn.1007d2a0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
je 0x1007d0d2
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 8]
call fcn.1007d1f0
mov eax, dword [ebp - 0x14]
jmp 0x1007d13e
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 8]
call fcn.1007d1f0
mov eax, dword [ebp - 0x18]
jmp 0x1007d13e
call fcn.10082dd0
movzx ecx, al
test ecx, ecx
jne 0x1007d11e
mov edx, dword [ebp + 0x10]
or edx, 0x200000
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.1007d150
add esp, 0x10
jmp 0x1007d13e
call fcn.10082ce0
mov dword [ebp - 0x24], eax
lea ecx, [ebp + 0x10]
push ecx
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.1007d150
add esp, 0x10
mov esp, ebp
pop ebp
ret

Function at 0x10085dc0
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10085de7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1006e190
add esp, 4
or eax, 0xffffffff
jmp 0x10085de9
xor eax, eax
pop ebp
ret
Function at 0x1008d4ab
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp 0x1009bfe0
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x40
cmp dword [0x101291a0], 1
jge 0x1009c04f
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x1009c025
mov edx, dword [ebx + 8]
movzx eax, word [edx]
movzx ecx, word [ebx + 0xc]
cmp eax, ecx
je 0x1009c025
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x1009c002
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x1009c03b
mov eax, dword [ebx + 8]
mov dword [ebp - 4], eax
jmp 0x1009c042
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x1009c13f
movzx ecx, word [ebx + 0xc]
movd xmm0, ecx
movaps xmmword [ebp - 0x30], xmm0
pshuflw xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
pshufd xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
mov edx, dword [ebx + 8]
and edx, 0xfff
cmp edx, 0xff0
ja 0x1009c110
mov eax, dword [ebx + 8]
movups xmm0, xmmword [eax]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pxor xmm0, xmmword [ebp - 0x20]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pcmpeqw xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x40]
pcmpeqw xmm0, xmmword [ebp - 0x30]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
por xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pmovmskb ecx, xmm0
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1009c105
bsf edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebx + 8]
mov dword [ebx + 8], eax
mov ecx, dword [ebx + 8]
movzx edx, word [ecx]
movzx eax, word [ebx + 0xc]
cmp edx, eax
jne 0x1009c0f9
mov ecx, dword [ebx + 8]
mov dword [ebp - 0xc], ecx
jmp 0x1009c100
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
jmp 0x1009c13f
mov edx, dword [ebx + 8]
add edx, 0x10
mov dword [ebx + 8], edx
jmp 0x1009c13a
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x1009c123
mov eax, dword [ebx + 8]
jmp 0x1009c13f
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x1009c131
xor eax, eax
jmp 0x1009c13f
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x1009c06f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x1008d4b6
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1008d047

Function at 0x1009fe90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x100a0570
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x100a05ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100a06a0
add esp, 4
push eax
lea ecx, [ebp - 0x10]
call fcn.100a0eb0
push 0x10121444
lea edx, [ebp - 0x10]
push edx
call fcn.10056ba0
mov esp, ebp
pop ebp
ret

Function at 0x401000
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
jmp 0x403a1c
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x405076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x405220], eax
mov dword [0x4051a8], 0x403098
mov dword [0x4051a4], 2
jmp 0x403a4c
mov dword [0x4051ac], 0
mov dword [0x4051b0], 0
mov dword [0x4051a0], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4051b4], eax
mov dword [0x4051c8], 0x40426e
mov dword [0x4051c0], 0xf
mov dword [0x40506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4051b8], eax
mov dword [0x4051cc], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4051bc], eax
push 0x4051a0
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x40506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.justam
push 0x40426e
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x405218], eax
push 5
push dword [0x405218]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x405218]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x403b1f
push 0
push 0
push 0
push 0x4051d0
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x403b4c
push 0x4051d0
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x4051d0
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x403b1f
mov eax, dword [0x4051d8]
jmp 0x403b59
call 0x402be1
ret
Function at 0x401370
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x413128
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x41a050]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, edx
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0xc], 0
call fcn.00401200
add esp, 4
mov ecx, eax
mov dword [esp + 0x30], 0
call fcn.004012c0
cmp dword [esp + 0x24], 8
jb 0x4013ce
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0040a81b
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret

Function at 0x401510
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x41a050]
xor eax, esp
mov dword [esp + 0x11c], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ecx, eax
shr ecx, 8
cmp al, 5
jb 0x40158f
jne 0x40158b
cmp cl, 1
jb 0x40158f
cmp cl, 1
ja 0x401574
push 0x118
lea eax, [esp + 8]
push 0
push eax
call fcn.0040d0d0
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x401574
cmp word [esp + 0x114], 2
jb 0x40158f
xor eax, eax
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040a354
add esp, 0x120
ret
cmp al, 5
jmp 0x40153d
mov ecx, dword [esp + 0x11c]
xor ecx, esp
mov eax, 1
call fcn.0040a354
add esp, 0x120
ret

Function at 0x4015b0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x210
mov eax, dword [0x41a050]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push edi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0x16]
push ecx
mov edi, edx
mov dword [esp + 0x14], 0
mov word [esp + 0x18], ax
call fcn.0040d0d0
add esp, 0xc
cmp dword [edi + 0x18], 8
jb 0x4015f7
mov edi, dword [edi + 4]
jmp 0x4015fa
add edi, 4
push 0x104
lea edx, [esp + 0x10]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x40162e
cmp eax, 0x103
jae 0x40162e
cmp word [esp + 0x212], 0
jne 0x40162e
lea eax, [esp + 0xc]
mov ecx, esi
call fcn.004088f0
jmp 0x40164d
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov word [esi + 4], ax
push eax
mov eax, 0x415af0
call fcn.00409220
mov ecx, dword [esp + 0x214]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040a354
add esp, 0x210
ret
Function at 0x401d10
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x412080
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x41a050]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41a050]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x64]
mov edx, ebp
lea ecx, [esp + 0x18]
call fcn.004019f0
xor ebx, ebx
mov dword [esp + 0x5c], ebx
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x24]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
xor esi, esi
add eax, edx
je 0x401e29
xor edi, edi
lea ebx, [esi + 1]
cmp esi, eax
jb 0x401d88
call fcn.0040a80b
mov eax, dword [esp + 0x24]
add eax, edi
push eax
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebp
call fcn.00401850
add esp, 8
mov byte [esp + 0x5c], bl
cmp dword [esp + 0x48], 8
mov eax, dword [esp + 0x34]
jae 0x401db1
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401dd0
test al, 0x10
je 0x401dd0
lea edx, [esp + 0x30]
push edx
call fcn.00401d10
add esp, 4
jmp 0x401de6
cmp dword [esp + 0x48], 8
mov eax, dword [esp + 0x34]
jae 0x401ddf
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x5c], 0
cmp dword [esp + 0x48], 8
jb 0x401dff
mov eax, dword [esp + 0x34]
push eax
call fcn.0040a81b
add esp, 4
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x24]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add esi, ebx
add eax, edx
add edi, 0x1c
cmp esi, eax
jb 0x401d88
xor ebx, ebx
cmp dword [ebp + 0x18], 8
jb 0x401e34
mov ebp, dword [ebp + 4]
jmp 0x401e37
add ebp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x401e88
mov edi, dword [esp + 0x28]
cmp eax, edi
je 0x401e7f
lea esi, [eax + 0x18]
cmp dword [esi], 8
jb 0x401e62
mov ecx, dword [esi - 0x14]
push ecx
call fcn.0040a81b
add esp, 4
xor edx, edx
mov dword [esi], 7
mov dword [esi - 4], ebx
mov word [esi - 0x14], dx
add esi, 0x1c
lea eax, [esi - 0x18]
cmp eax, edi
jne 0x401e51
mov eax, dword [esp + 0x24]
push eax
call fcn.0040a81b
add esp, 4
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.0040a81b
add esp, 4
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0040a354
add esp, 0x4c
ret