joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003c21
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100e004]
jne 0x1003c32
test ecx, 0xffff0000
jne 0x1003c32
ret
jmp fcn.01003c3c

Function at 0x1003d21
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1001620
call fcn.01003f14
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or edi, 0xffffffff
mov dword [ebp - 4], edi
cmp word [0x1000000], 0x5a4d
jne 0x1003d75
mov eax, dword [0x100003c]
cmp dword [eax + 0x1000000], 0x4550
jne 0x1003d75
movzx ecx, word [eax + 0x1000018]
cmp ecx, 0x10b
je 0x1003d8d
cmp ecx, 0x20b
je 0x1003d7a
mov dword [ebp - 0x1c], ebx
jmp 0x1003da4
cmp dword [eax + 0x1000084], 0xe
jbe 0x1003d75
xor ecx, ecx
cmp dword [eax + 0x10000f8], ebx
jmp 0x1003d9e
cmp dword [eax + 0x1000074], 0xe
jbe 0x1003d75
xor ecx, ecx
cmp dword [eax + 0x10000e8], ebx
setne cl
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 1
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
mov dword [0x100f454], edi
mov dword [0x100f458], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x100f258]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100f254]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100f45c], eax
call fcn.01003fa0
cmp dword [0x100e008], ebx
jne 0x1003e01
push fcn.01003fa0
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01003f89
push 0x1001284
push 0x1001280
call sub.msvcrt.dll__initterm
mov eax, dword [0x100f250]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x100f24c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x100127c
push 0x1001268
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp byte [eax], 0x22
jne 0x1003e8c
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x1003e6c
cmp cl, 0x22
jne 0x1003e5d
cmp byte [eax], 0x22
jne 0x1003e75
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x1003e80
cmp cl, 0x20
jbe 0x1003e71
test byte [ebp - 0x54], 1
je 0x1003e97
movzx ecx, word [ebp - 0x50]
jmp 0x1003e9a
cmp byte [eax], 0x20
jbe 0x1003e75
inc eax
mov dword [ebp - 0x20], eax
jmp 0x1003e8c
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call fcn.010039de
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x1003eb8
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x1003ef4
mov eax, esi
jmp 0x1003f08
call fcn.01003f4f
ret
Function at 0x1004155
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x100e004]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
je 0x10041db
cmp dword [ecx + 8], 0
je 0x10041db
lea edx, [ebp - 0x214]
push edx
lea edx, [ebp - 0x210]
push edx
lea edx, [ebp - 0x218]
push edx
push 0
push eax
push dword [ecx + 0xc]
mov dword [ebp - 0x214], 0x106
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10041db
mov eax, dword [ebp - 0x214]
shr eax, 1
cmp eax, dword [esi]
ja 0x10041d9
test edi, edi
je 0x10041d9
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 0x214]
shr eax, 1
mov dword [esi], eax
xor eax, eax
inc eax
jmp 0x10041dd
mov dword [esi], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01003c21
leave
ret 0xc

Function at 0x10041f0
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
xor eax, eax
cmp dword [ebp + 8], eax
je 0x1004222
cmp dword [ecx + 8], eax
je 0x1004222
cmp dword [ecx + 4], eax
jne 0x1004222
push 4
lea edx, [ebp + 0xc]
push edx
push 4
push eax
push dword [ebp + 8]
push dword [ecx + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
inc eax
jmp 0x1004224
xor eax, eax
pop ebp
ret 8

Function at 0x100422d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
xor eax, eax
cmp dword [ebp + 8], eax
je 0x1004283
cmp dword [ecx + 8], eax
je 0x1004283
lea edx, [ebp - 4]
push edx
lea edx, [ebp - 8]
push edx
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
mov dword [ebp - 4], 4
push dword [ecx + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1004283
cmp dword [ebp + 8], 4
je 0x1004270
cmp dword [ebp + 8], 3
jne 0x1004283
cmp dword [ebp - 4], 4
jne 0x1004283
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
xor eax, eax
inc eax
jmp 0x1004285
xor eax, eax
leave
ret 8
Function at 0x1004dc9
Capabilities:
Terminate thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
lea eax, [esi + 0x250]
push edi
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x168]
xor ebx, ebx
cmp eax, ebx
mov edi, 0x80004005
jne 0x1004e05
push 0x1001964
push ebx
call fcn.0100be32
pop ecx
pop ecx
jmp 0x1004e80
push dword [0x10031b8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
je 0x1004e40
cmp eax, 0x102
je 0x1004e24
push 0x1001910
jmp 0x1004e29
push 0x10018c0
push ebx
call fcn.0100be32
pop ecx
pop ecx
push edi
push dword [esi + 0x168]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x1004e80
lea eax, [ebp - 8]
push eax
push dword [esi + 0x168]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x1004e5b
push 0x1001884
jmp 0x1004dfb
push dword [esi + 0x168]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1004e8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001864
push ebx
call fcn.0100be32
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
jmp 0x1004e9f
push dword [ebp - 4]
mov dword [esi + 0x168], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1004f8f
Capabilities:
Terminate thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
lea eax, [esi + 0x250]
push edi
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
cmp dword [esi + 0x170], ebx
mov edi, 0x80004005
jne 0x1004fcc
push 0x1001a34
push ebx
call fcn.0100be32
pop ecx
pop ecx
jmp 0x10050bb
push dword [esi + 0x178]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x1004ff3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001a18
push ebx
call fcn.0100be32
jmp 0x10050b8
mov eax, dword [esi + 0x174]
push dword [ebp - 8]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [0x10031d0]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
push dword [ebp - 8]
jne 0x100504b
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [esi + 0x170]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x100505a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001864
push ebx
call fcn.0100be32
mov dword [esi + 0x170], ebx
jmp 0x10050b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0x80150175
jmp 0x10050be
push dword [esi + 0x174]
mov dword [esi + 0x170], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x100508a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001864
push ebx
call fcn.0100be32
mov dword [esi + 0x174], ebx
jmp 0x10050b8
push dword [esi + 0x178]
mov dword [esi + 0x174], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1005111
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001864
push ebx
call fcn.0100be32
mov dword [esi + 0x178], ebx
add esp, 0xc
mov dword [ebp - 4], edi
mov eax, dword [esi + 0x170]
cmp eax, ebx
je 0x10050e2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x170]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x170], ebx
lea edi, [esi + 0x174]
mov eax, dword [edi]
cmp eax, ebx
je 0x10050f7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], ebx
add esi, 0x178
mov eax, dword [esi]
cmp eax, ebx
je 0x100510c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], ebx
mov ebx, dword [ebp - 4]
jmp 0x1005117
mov dword [esi + 0x178], ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x1006ebb
Capabilities:
Terminate thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
push 0x1002148
push ebx
mov esi, ecx
mov dword [ebp - 4], ebx
call fcn.0100be32
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
pop ecx
lea eax, [esi + 0x250]
pop ecx
push eax
mov dword [ebp - 8], eax
call edi
cmp dword [esi + 0x168], ebx
je 0x100703f
push dword [ebp - 8]
mov dword [esi + 0x16c], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [0x10031d0]
lea eax, [esi + 0x168]
push ebx
push eax
push 1
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, ebx
push dword [ebp - 8]
mov dword [ebp - 0xc], eax
je 0x1006ffe
cmp eax, 0x102
je 0x1006fc3
call edi
cmp dword [ebp - 0xc], 0x80
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x1006f5a
push 0x1001980
push ebx
call fcn.0100be32
pop ecx
pop ecx
jmp 0x1006f6b
call edi
push eax
push 0x1002120
push ebx
call fcn.0100be32
add esp, 0xc
lea ecx, [esi + 0x1c]
mov dword [ebp - 4], 0x80004005
call fcn.0100a930
cmp eax, ebx
mov dword [ebp - 0xc], eax
jge 0x1006f96
push eax
push 0x10020f4
push ebx
call fcn.0100be32
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov dword [ebp - 4], eax
push dword [ebp - 0xc]
push dword [esi + 0x168]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x1007000
call edi
push eax
push 0x10020d0
push ebx
call fcn.0100be32
add esp, 0xc
mov dword [ebp - 4], 0x80004005
jmp 0x1007000
call edi
lea ecx, [esi + 0x1c]
call fcn.0100a930
mov edi, eax
cmp edi, ebx
jge 0x1006fe5
push edi
push 0x10020f4
push ebx
call fcn.0100be32
add esp, 0xc
mov dword [ebp - 4], edi
push edi
push dword [esi + 0x168]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x1007000
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1006fab
call edi
mov ecx, esi
call fcn.01004dc9
mov edi, eax
cmp edi, ebx
jge 0x100701f
push edi
push 0x100209c
push ebx
call fcn.0100be32
add esp, 0xc
mov dword [ebp - 4], edi
lea ecx, [esi + 0x1c]
call fcn.0100a66b
mov esi, eax
cmp esi, ebx
jge 0x100703f
push esi
push 0x100207c
push ebx
call fcn.0100be32
add esp, 0xc
mov dword [ebp - 4], esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1007236
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
lea eax, [esi + 0x250]
push edi
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edi, edi
cmp dword [esi + 0x170], edi
mov dword [esi + 0x178], edi
je 0x100726c
mov dword [ebp - 4], 0x150010
jmp 0x10072d9
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
push edi
push edi
push edi
call ebx
cmp eax, edi
mov dword [esi + 0x174], eax
je 0x1007292
push edi
push edi
push edi
push edi
call ebx
cmp eax, edi
mov dword [esi + 0x178], eax
jne 0x10072a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1002244
jmp 0x10072c9
lea eax, [ebp - 0xc]
push eax
push edi
push esi
push 0x1006aaa
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x170], eax
jne 0x1007308
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1002224
push edi
call fcn.0100be32
add esp, 0xc
mov dword [ebp - 4], 0x80004005
lea ebx, [esi + 0x174]
mov eax, dword [ebx]
cmp eax, edi
je 0x10072ee
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], edi
mov eax, dword [esi + 0x178]
cmp eax, edi
je 0x1007305
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x178], edi
mov edi, dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1008fb6
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x250]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edi, edi
cmp dword [esi + 0x168], edi
mov dword [esi + 0x1b0], edi
je 0x1008fed
push 0x1002610
push edi
call fcn.0100be32
pop ecx
pop ecx
jmp 0x100901f
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x1008f55
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x168], eax
jne 0x1009024
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1002224
push edi
call fcn.0100be32
add esp, 0xc
mov edi, 0x80004005
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100aa4a
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
cmp word [esi + eax*2 - 2], 0x5c
pop ecx
je 0x100aa76
mov word [esi + eax*2], 0x5c
inc eax
and word [esi + eax*2], 0
mov ecx, 0x103
sub ecx, eax
push ecx
push 0x1002d10
push esi
call dword [sym.imp.msvcrt.dll_wcsncat]
add esp, 0xc
pop esi
pop ebp
ret 4
Function at 0x100ae5c
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x358
mov eax, dword [0x100e004]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], eax
lea eax, [esi + 0x48]
push edi
push eax
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x358]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x310]
push eax
mov dword [ebp - 0x358], 0x44
call fcn.0100aa4a
push 0x7f
lea eax, [ebp - 0x104]
push 0x1002d2c
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
add esp, 0xc
xor edi, edi
lea ebx, [esi + 0x28]
push ebx
lea eax, [ebp - 0x358]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x310]
push eax
mov word [ebp - 6], di
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x100aef1
mov dword [ebx], edi
jmp 0x100aefe
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x100af06
mov dword [esi + 0x2c], edi
mov edi, 0x80004005
push dword [ebp - 0x314]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.01003c21
leave
ret

Function at 0x100af26
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x358
mov eax, dword [0x100e004]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], eax
lea eax, [esi + 0x48]
push edi
push eax
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x358]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x310]
push eax
mov dword [ebp - 0x358], 0x44
call fcn.0100aa4a
push 0x1002d4c
push 0x80
lea eax, [ebp - 0x104]
push eax
call fcn.0100a38e
xor edi, edi
lea ebx, [esi + 0x38]
push ebx
lea eax, [ebp - 0x358]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x100afb6
mov dword [ebx], edi
jmp 0x100afc3
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x100afcb
mov dword [esi + 0x3c], edi
mov edi, 0x80004005
push dword [ebp - 0x314]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.01003c21
leave
ret
Function at 0x46201f
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xb14b4e97
movsd dword es:[edi], dword [esi]
fcmovb st(0), st(1)
invalid
fnsave dword [ebx + 0x60974337]
mov cl, 0xa6
add byte [esi - 0x63a922fd], cl
call 0x7248d91d
mov ecx, ebp
jne 0x461fc3
int 0xba
ret
cmp bl, byte [edx + 0x37]
and eax, 0x77e8471d
imul ecx, dword [edi + 0x4f], 0xffffffc7
cmp al, 0
cmp dword [eax], 0xe7c3ad92
loopne 0x461fdc
in eax, 0x27
push ecx
jne 0x462084
outsd dx, dword [esi]
mov eax, dword [0xa5a9cece]
cmp byte [ebp + 0x2168e987], cl
div dh
add eax, 0x4b65d603
stc
invalid
inc edi
or dword [eax - 0x69], ebp
xchg esi, eax
imul byte [edx]
lahf
in eax, 0x26
adc eax, edx
loopne 0x46201c
test byte [esp + edx*8 + 0x50], dh
mov esp, 0x43879a3
adc ebp, eax
jg 0x4620bb
push ebp
pushfd
neg dword [0xf6f7c1c]
out dx, al
dec ebx
mov bh, 0xe6
fcomp dword [edx]
popfd
adc dl, bh
mov edx, 0xf66a3bfe
sub dword [ebx], edi
inc edx
out dx, eax
mov dh, 0xb4
cmp ah, ch
adc al, 0xd6
or eax, 0x4a432168
mov dh, 0xa5
or dword [edi], edi
cmc
pop es
out 0x96, al
and al, 0x50
dec ecx
lds ebp, [ecx]
ja 0x462111
lcall 0x3c0b, 0x77609732
or al, 0xe
dec ebp
xor al, 0x63
div byte [edx - 0x5cea8c49]
int3
lodsb al, byte [esi]
xchg edx, eax
out 0x3f, eax
aas
cmp esp, dword [esi]
rcr dword [esi + 0x2fa35a27], 0xeb
add al, 0xc0
lds edx, [edx + edx*8 + 0x1318cd73]
sub byte [0x44aa99d7], bh
mov al, 0x9b
xor dh, 0x3f
cld
pop edi
jl 0x46210e
push ecx
in eax, 0x55
insd dword es:[edi], dx
mov esp, 0x9e30627
and byte [ebp + 0x61], 0xfd
out 0x42, al
sar byte [ebx - 0x2d5f87e], 0x49
xor eax, dword [edx + 0x57d04025]
ljmp 0x5302
Function at 0x4053c1
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x800
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp dword [esi + 0x5c], ebx
jne 0x40540e
push ebx
push ebx
push 1
push ebx
call edi
cmp eax, ebx
mov dword [esi + 0x5c], eax
jne 0x40540e
call ebp
push eax
lea eax, [esp + 0x14]
push str.GameWrapper:_Create_Pause_Event_Failed__last_error__x_n
push eax
call fcn.0041c368
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [esi + 0x60], ebx
jne 0x405441
push ebx
push ebx
push 1
push ebx
call edi
cmp eax, ebx
mov dword [esi + 0x60], eax
jne 0x405441
call ebp
push eax
lea eax, [esp + 0x14]
push str.GameWrapper:_Create_Timeout_Event_Failed__last_error__x_n
push eax
call fcn.0041c368
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x814]
mov eax, dword [esi + 0x5c]
pop edi
mov dword [ecx], eax
mov eax, dword [esi + 0x60]
mov ecx, dword [esp + 0x814]
pop esi
pop ebp
pop ebx
mov dword [ecx], eax
add esp, 0x800
ret 8

Function at 0x405489
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x4054f8
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0x224
push eax
push edi
call sub.KERNEL32.dll_Module32First
jmp 0x4054ed
push dword [ebp + 8]
lea eax, [ebp - 0x204]
push eax
call fcn.00427740
pop ecx
test eax, eax
pop ecx
je 0x4054ff
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0x224
push eax
push edi
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x4054c1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
leave
ret 4
mov al, 1
jmp 0x4054fa

Function at 0x405bec
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push edi
push esi
push esi
push 3
push esi
push esi
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x405c57
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x405c29
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x405c57
push ebx
call fcn.0041ca22
cmp eax, esi
pop ecx
mov dword [ebp + 8], eax
je 0x405c20
lea ecx, [ebp - 4]
push esi
push ecx
push ebx
push eax
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], esi
jne 0x405c5b
xor al, al
jmp 0x405c76
push ebx
push dword [ebp + 8]
call fcn.00405a8b
mov ecx, dword [ebp + 0xc]
push dword [ebp + 8]
mov dword [ecx], eax
call fcn.0041c939
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4066f4
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
push ebx
push esi
push edi
push 0x42d26c
push dword [ebp + 8]
call fcn.0041cc44
mov esi, eax
xor edi, edi
pop ecx
cmp esi, edi
pop ecx
je 0x4067af
push 2
push edi
push esi
call fcn.0041d07c
xor ebx, ebx
inc ebx
push ebx
push 0xfffffffffffffffa
push esi
call fcn.0041d07c
push esi
push ebx
lea eax, [ebp - 2]
push 2
push eax
call fcn.0041cf65
movzx eax, word [ebp - 2]
push ebx
push 0xfffffffffffffffe
pop ecx
sub ecx, eax
push ecx
push esi
call fcn.0041d07c
push esi
call fcn.0041cde3
mov dword [ebp + 8], eax
push esi
movzx eax, word [ebp - 2]
push eax
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.0041cf65
add esp, 0x48
push edi
push edi
push esi
call fcn.0041d07c
add esp, 0xc
lea eax, [ebp - 8]
push 0xf0000000
push ebx
mov ebx, str.Microsoft_Base_Cryptographic_Provider_v1.0
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push eax
call edi
test eax, eax
jne 0x4067b6
push 0xf0000008
push 1
push ebx
push eax
lea eax, [ebp - 8]
push eax
call edi
test eax, eax
jne 0x4067b6
push esi
call fcn.0041cb5a
pop ecx
xor al, al
jmp 0x40689e
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4067de
push esi
call fcn.0041cb5a
pop ecx
xor bl, bl
jmp 0x406891
mov ebx, dword [ebp + 8]
and byte [ebp + 0xb], 0
mov edi, 0x400
cmp ebx, edi
jge 0x4067f4
mov edi, ebx
mov byte [ebp + 0xb], 1
push esi
push edi
lea eax, [ebp - 0x410]
push 1
push eax
call fcn.0041cf65
add esp, 0x10
lea eax, [ebp - 0x410]
push 0
push edi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x406872
sub ebx, edi
cmp byte [ebp + 0xb], 0
je 0x4067e5
push esi
call fcn.0041cb5a
pop ecx
lea eax, [ebp - 0xc]
xor esi, esi
push eax
push esi
push esi
push 0x54
push 0x42d1b0
push dword [ebp - 8]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x406879
movzx eax, word [ebp - 2]
push esi
push str.ReflexiveArcade_DLL_Signature
push dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x810]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureA]
test eax, eax
jmp 0x40687d
push esi
call fcn.0041cb5a
pop ecx
xor bl, bl
jmp 0x406888
mov bl, 1
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4068c6
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0x80
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne al
ret