joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43b8e0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43b913
push esi
call fcn.0043e9e0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43b90c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43b999
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43b982
mov eax, dword [esi + 8]
test eax, eax
je 0x43b937
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43b97e
cmp eax, 2
je 0x43b982
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43b92a
cmp eax, 3
je 0x43b95d
cmp eax, 1
jne 0x43b92a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43b92a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43b92a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043b9c0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43b9a8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043b9c0
add esp, 4
pop esi
ret

Function at 0x45a88a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45a8c2
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00458941
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00458919
jmp 0x45a8ce
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45bf80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x45bfc2
call fcn.00461a39
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45bfc2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45bfb9
xor eax, eax
jmp 0x45bfca
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045bfd0
pop edi
pop esi
pop ebx
ret 4

Function at 0x461f69
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x461f97
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x461fb5
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00461ecf
jmp 0x461fb5
mov eax, dword [esi + 0x14]
test eax, eax
je 0x461fb5
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00461ecf
test edi, edi
mov eax, edi
jne 0x461f9f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40fd7c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp byte [0x416786], 0
jne 0x40fdb5
xor ecx, ecx
push 8
mov eax, ecx
pop edx
test al, 1
je 0x40fd99
shr eax, 1
xor eax, 0xedb88320
jmp 0x40fd9b
shr eax, 1
dec edx
jne 0x40fd8c
mov dword [ecx*4 + 0x417028], eax
inc ecx
cmp ecx, 0x100
jb 0x40fd87
mov byte [0x416786], 1
xor ecx, ecx
or eax, 0xffffffff
cmp dword [esp + 8], ecx
jbe 0x40fde1
mov edx, dword [esp + 4]
movzx edx, byte [ecx + edx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x417028]
inc ecx
cmp ecx, dword [esp + 8]
jb 0x40fdc0
not eax
ret 8

Function at 0x40fde6
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov cl, byte [eax + 0x100]
push edi
mov byte [ebp - 1], cl
mov cl, byte [eax + 0x101]
xor edi, edi
mov byte [ebp - 2], cl
cmp dword [ebp + 0xc], edi
jbe 0x40fe41
push ebx
push esi
inc byte [ebp - 1]
movzx ecx, byte [ebp - 1]
lea esi, [ecx + eax]
mov dl, byte [esi]
add byte [ebp - 2], dl
movzx ecx, byte [ebp - 2]
add ecx, eax
mov bl, byte [ecx]
mov byte [esi], bl
mov byte [ecx], dl
movzx esi, byte [esi]
mov ecx, dword [ebp + 8]
movzx edx, dl
add esi, edx
and esi, 0xff
mov dl, byte [esi + eax]
add ecx, edi
xor byte [ecx], dl
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x40fe06
pop esi
pop ebx
mov cl, byte [ebp - 1]
mov byte [eax + 0x100], cl
mov cl, byte [ebp - 2]
mov byte [eax + 0x101], cl
pop edi
leave
ret 8
Function at 0x1001897
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x1001d20
call fcn.01001a44
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x1003398
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x100164e
cmp eax, esi
jne 0x1001641
xor esi, esi
inc esi
mov ebx, esi
jmp 0x1001651
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1001628
xor esi, esi
inc esi
mov eax, dword [0x1003394]
cmp eax, esi
jne 0x1001664
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1001693
mov eax, dword [0x1003394]
test eax, eax
jne 0x100168d
mov dword [0x1003394], esi
push 0x10010d8
push 0x10010cc
call fcn.0100158d
pop ecx
pop ecx
test eax, eax
je 0x1001693
jmp 0x10017bb
mov dword [0x1003058], esi
mov eax, dword [0x1003394]
cmp eax, esi
jne 0x10016b7
push 0x10010c8
push 0x10010c0
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1003394], 2
test ebx, ebx
jne 0x10016c3
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100339c], 0
je 0x10016e7
push 0x100339c
call fcn.010019b9
pop ecx
test eax, eax
je 0x10016e7
push 0
push 2
push 0
call dword [0x100339c]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x1001743
test al, al
je 0x1001701
cmp dword [ebp - 0x1c], 0
jne 0x1001743
mov al, byte [esi]
test al, al
je 0x1001711
cmp al, 0x20
ja 0x1001711
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1001701
test byte [ebp - 0x3c], 1
je 0x100171d
movzx eax, word [ebp - 0x38]
jmp 0x1001720
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x1003054], eax
cmp dword [0x1003048], 0
jne 0x1001797
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x1001752
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x1001765
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x10016ee
cmp dword [0x1003058], 0
jne 0x10017a6
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1003054]
jmp 0x10017c7
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01001a89
ret
call fcn.01001b91
jmp 0x10015ee

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x401000
Capabilities:
Accept command line arguments
Enumerate files on windows

Disassembly:
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x40252c], eax
call sub.kernel32.dll_GetCommandLineA
mov dword [0x402530], eax
push dword [0x402530]
push 0x402104
call sub.kernel32.dll_lstrcpyA
push 0x402104
call sub.kernel32.dll_lstrlenA
dec eax
cmp byte [eax + 0x402104], 0x5c
je 0x401126
push 0x402208
push 0x402104
call sub.kernel32.dll_lstrcatA
push ebp
mov ebp, esp
add esp, 0xfffffebc
push 0x40220a
push dword [ebp + 8]
call sub.kernel32.dll_lstrcatA
lea eax, [ebp - 0x13e]
push eax
push dword [ebp + 8]
call sub.kernel32.dll_FindFirstFileA
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 0xffffffff
je 0x401122
mov eax, dword [ebp - 0x112]
cmp eax, 0x2e
je 0x401106
cmp dword [ebp - 0x111], 0x2e
je 0x401106
lea eax, [ebp - 0x112]
push eax
push 0x40220e
call sub.kernel32.dll_lstrcpyA
push 0x40240e
push 0x40220e
call sub.kernel32.dll_lstrcatA
push 0x40220e
call fcn.00401140
test dword [ebp - 0x13e], 0x10
je 0x401106
push dword [ebp + 8]
push 0x402534
call sub.kernel32.dll_lstrcpyA
lea eax, [ebp - 0x112]
push eax
push 0x402534
call sub.kernel32.dll_lstrcatA
push 0x402208
push 0x402534
call sub.kernel32.dll_lstrcatA
push 0x402534
call 0x40104d
lea eax, [ebp - 0x13e]
push eax
push dword [ebp - 0x144]
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x401085
jmp 0x401122
leave
ret 4
push 0x402104
push section..data
call sub.kernel32.dll_lstrcpyA
push section..data
call 0x40104d
int3

Function at 0x401140
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
mov dword [ebp - 4], eax
push dword [ebp + 8]
call fcn.00401180
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
mov eax, dword [ebp - 8]
leave
ret 4
Function at 0x468e80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lea eax, [ebp - 0x40]
push eax
call fcn.00468b4e
push eax
push esi
push dword [ebp + 8]
call fcn.00468b03
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.00468b3e
sub edi, dword [ecx + 0x45]
in eax, 0x8d
inc ebp
call 0x512eec34
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.00468b4e
push eax
push esi
push dword [ebp + 8]
call fcn.00468b03
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.00468b4e
push eax
push esi
push dword [ebp + 8]
call fcn.00468b03
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00468b4e
push eax
push esi
push dword [ebp + 8]
call fcn.00468b03
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00468b3e
mov ecx, 0x88a3dd15
popfd
jl 0x468fc3
invalid
invalid
Function at 0x469220
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x469215
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x469233
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
add byte [eax], al
add byte [eax], al
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x469291
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x469278
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x469281
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x46928b
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x46926d
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x4691f7
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x4692de
dec eax
je 0x4692d5
sub eax, 3
je 0x4692cc
mov dword [ebp - 4], 0x40
jmp 0x4692fb
mov dword [ebp - 4], 4
jmp 0x4692e1
mov dword [ebp - 4], 0x20
jmp 0x4692e1
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x46932d
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x4692ad
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00468b3e
out dx, eax
dec esp
fbstp tbyte [edi - 1]
jne 0x469338
push 1
push esi
call edi
mov eax, esi
jmp 0x469339
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret

Function at 0x46a750
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
call fcn.00468aaf
add esp, 0xc
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x3a0], eax
jmp 0x46aab6

Function at 0x46d400
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x4bc1dc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 0x4c36e8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x4c3678], esi
je 0x46d479
cmp dword [0x4c3684], esi
je 0x46d479
push 0x12237
call dword [0x4c368c]
push esi
push esi
push edi
call dword [0x4c3678]
cmp dword [0x4c36d0], 0
mov esi, eax
je 0x46d479
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0x4aa26c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x804]
push eax
push edi
call dword [0x4c36d0]
push 0x4c36e8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
pop edi
setne al
xor ecx, ebp
pop esi
call fcn.00470e77
mov esp, ebp
pop ebp
ret
Function at 0x46d4a0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [ebp + 8]
xor bl, bl
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
push esi
call fcn.00471b44
add esp, 4
mov dword [ebp - 4], eax
push eax
push esi
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
mov eax, dword [ebp - 4]
je 0x46d4f0
cmp dword [eax + 0x30], 0x60000
mov ecx, 1
movzx ebx, bl
cmovae ebx, ecx
push eax
call fcn.00471b0c
add esp, 4
mov al, bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401570
Capabilities:
Check mutex on windows

Disassembly:
push esi
push ebx
sub esp, 0x24
mov ebx, dword [esp + 0x38]
mov dword [esp + 8], str.nopggmsg
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
sub esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4015ab
cmp byte [ebx], 0
jne 0x4015b5
add esp, 0x24
xor eax, eax
pop ebx
pop esi
ret 0x10
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [esp], str.user32.dll
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
sub esp, 4
mov dword [esp + 4], str.MessageBoxTimeoutA
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
test eax, eax
je 0x4015ab
mov dword [esp + 4], ebx
mov dword [esp], esi
mov dword [esp + 0x14], 0x2710
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x40010
mov dword [esp + 8], str.Nop_GameGuard_Error
call eax
sub esp, 0x18
xor eax, eax
add esp, 0x24
pop ebx
pop esi
ret 0x10

Function at 0x401a80
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.00401ae0
Function at 0x401ae0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x405050]
test esi, esi
jle 0x401bcd
mov edi, dword [0x405054]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x401b14
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x401bc6
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x401b00
mov dword [esp], eax
mov ebx, eax
call fcn.00402420
test eax, eax
mov edi, eax
je 0x401c0a
lea ebx, [esi + esi*2]
mov esi, dword [0x405054]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call fcn.00402520
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x405054]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401bea
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x401bbf
sub eax, 0x40
and eax, 0xffffffbf
je 0x401bbf
mov eax, dword [esp + 0x20]
add ebx, dword [0x405054]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x401bd4
add dword [0x405050], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x401b1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00401a80
mov eax, dword [0x405054]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00401a80
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00401a80
lea esi, [esi]

Function at 0x4020d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x405408
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x405400]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x402125
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40211e
test esi, esi
je 0x40211e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402100
mov dword [esp], 0x405408
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402340
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x402378
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x40236e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40237a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402360
xor eax, eax
pop ebx
pop esi
ret
Function at 0x4145d0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x48931b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0047dd23
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x414652
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0047bbfd
mov eax, dword [eax]
push 0x4e6cb8
push eax
call fcn.0046e864
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0047dfae
test bl, bl
je 0x414652
push 0x4e6cb8
lea ecx, [esp + 0xc]
call fcn.0047e33e
push 0x4e6cc4
lea ecx, [esp + 0xc]
call fcn.0047e33e
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x41468e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0047dfae
jmp 0x414759
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x414712
lea edx, [esp + 0x7c]
push 0x4e6cc0
push edx
call fcn.0046e864
add esp, 8
test eax, eax
je 0x414712
lea eax, [esp + 0x7c]
push 0x4e6cbc
push eax
call fcn.0046e864
add esp, 8
test eax, eax
je 0x414712
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4146a2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0047dfae
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x414f50
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x414fb2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc