joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449da0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x477f68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0047041b
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00449740
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00470349
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0046cc0d
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0046cc0d
push 1
push 0
push 0
mov ecx, esi
call fcn.0046cbb5
push 1
push 0
push 1
mov ecx, esi
call fcn.0046cbb5
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0047048d
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x449f20
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x477f88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0047041b
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00449740
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00470349
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x449fe4
cmp dword [esp + 0x40], 1
jne 0x449fe2
cmp ecx, eax
jge 0x449fe4
mov eax, ecx
cmp eax, 0xc8
jge 0x449ff0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00449da0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0047048d
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x44a770
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x477ff3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046b02d
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004706c3
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00471d1c
test eax, eax
je 0x44a88c
mov ecx, dword [esp + 0x3c]
call fcn.004706f0
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x44a850
push edi
mov ecx, esi
call fcn.0046dd58
mov ecx, esi
call fcn.0044a9f0
cmp dword [esp + 0x38], 1
jne 0x44a885
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0046de93
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x44d2b0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44d2e3
push esi
call fcn.004503a0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44d2dc
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 0x44d369
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44d352
mov eax, dword [esi + 8]
test eax, eax
je 0x44d307
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 0x44d34e
cmp eax, 2
je 0x44d352
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44d2fa
cmp eax, 3
je 0x44d32d
cmp eax, 1
jne 0x44d2fa
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 0x44d2fa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44d2fa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044d390
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44d378
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044d390
add esp, 4
pop esi
ret

Function at 0x46be23
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46be5b
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.00469ead
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00469e85
jmp 0x46be67
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46d515
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 0x46d557
call fcn.0047310d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46d557
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46d54e
xor eax, eax
jmp 0x46d55f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046d565
pop edi
pop esi
pop ebx
ret 4

Function at 0x47363d
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 0x47366b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x473689
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004735a3
jmp 0x473689
mov eax, dword [esi + 0x14]
test eax, eax
je 0x473689
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004735a3
test edi, edi
mov eax, edi
jne 0x473673
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10001050
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
cmp dword [ebp + 0xc], 1
jne 0x10001077
push 0
push 0
push 0
push 0x100010f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc
Function at 0x10002662
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x1c]
cmp ecx, 1
jle 0x1000273d
add eax, 0x32
push esi
dec ecx
movzx edx, byte [eax + 1]
movzx esi, byte [eax - 1]
mov edx, dword [edx*4 + 0x10026ed0]
xor edx, dword [esi*4 + 0x100266d0]
movzx esi, byte [eax]
add eax, 0x10
xor edx, dword [esi*4 + 0x10026ad0]
movzx esi, byte [eax - 0x12]
xor edx, dword [esi*4 + 0x100262d0]
mov dword [eax - 0x12], edx
movzx edx, byte [eax - 0xb]
movzx esi, byte [eax - 0xc]
mov edx, dword [edx*4 + 0x10026ed0]
xor edx, dword [esi*4 + 0x10026ad0]
movzx esi, byte [eax - 0xd]
xor edx, dword [esi*4 + 0x100266d0]
movzx esi, byte [eax - 0xe]
xor edx, dword [esi*4 + 0x100262d0]
mov dword [eax - 0xe], edx
movzx edx, byte [eax - 7]
movzx esi, byte [eax - 8]
mov edx, dword [edx*4 + 0x10026ed0]
xor edx, dword [esi*4 + 0x10026ad0]
movzx esi, byte [eax - 9]
xor edx, dword [esi*4 + 0x100266d0]
movzx esi, byte [eax - 0xa]
xor edx, dword [esi*4 + 0x100262d0]
mov dword [eax - 0xa], edx
movzx edx, byte [eax - 3]
movzx esi, byte [eax - 4]
mov edx, dword [edx*4 + 0x10026ed0]
xor edx, dword [esi*4 + 0x10026ad0]
movzx esi, byte [eax - 5]
xor edx, dword [esi*4 + 0x100266d0]
movzx esi, byte [eax - 6]
xor edx, dword [esi*4 + 0x100262d0]
dec ecx
mov dword [eax - 6], edx
jne 0x10002677
pop esi
ret
Function at 0x10002e6c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push 4
lea eax, [ebp - 4]
push 0x10027500
push eax
call fcn.10001e2c
mov esi, dword [ebp - 4]
push 4
lea eax, [ebp - 4]
push 0x100274fc
push eax
call fcn.10001e2c
mov edi, dword [ebp - 4]
add esp, 0x18
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x475f4352
push eax
push 0
push 0
mov dword [ebp - 0x10], 0x646e6172
mov dword [ebp - 0xc], 0x6e65704f
mov dword [ebp - 8], 0x676f44
call esi
mov esi, eax
test esi, esi
je 0x10002ed0
push 0xffffffffffffffff
push esi
call edi
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x10002ed4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x100274ac]
push esi
mov esi, dword [ebp + 8]
and eax, 3
sub eax, 0
je 0x10002f5e
dec eax
je 0x10002f3b
dec eax
je 0x10002f18
dec eax
jne 0x10002f7f
mov eax, dword [0x100274bc]
mov dword [ebp + 8], eax
lea eax, [esi + 2]
push eax
lea eax, [ebp + 8]
push eax
call fcn.10002fbf
add dword [0x100274bc], 0x3f2
pop ecx
pop ecx
jmp 0x10002f7f
mov eax, dword [0x100274b8]
mov dword [ebp + 8], eax
lea eax, [esi + 2]
push eax
lea eax, [ebp + 8]
push eax
call fcn.10002fbf
add dword [0x100274b8], 0x3f2
pop ecx
pop ecx
jmp 0x10002f7f
mov eax, dword [0x100274b4]
mov dword [ebp + 8], eax
lea eax, [esi + 2]
push eax
lea eax, [ebp + 8]
push eax
call fcn.10002fbf
add dword [0x100274b4], 0x3f2
pop ecx
pop ecx
jmp 0x10002f7f
mov eax, dword [0x100274b0]
mov dword [ebp + 8], eax
lea eax, [esi + 2]
push eax
lea eax, [ebp + 8]
push eax
call fcn.10002fbf
add dword [0x100274b0], 0x3f2
pop ecx
pop ecx
mov ax, word [esi + 2]
add dword [0x100274ac], 0x3eb
xor word [esi], ax
xor ecx, ecx
lea eax, [esi + 0x12]
mov edx, ecx
and edx, 3
mov edx, dword [esi + edx*4 + 2]
xor dword [eax], edx
inc ecx
add eax, 4
cmp ecx, 0xa
jb 0x10002f95
mov al, byte [esi + 0x10]
push esi
xor byte [esi + 0x3a], al
mov al, byte [esi + 0x11]
xor byte [esi + 0x3b], al
call fcn.10003053
pop ecx
pop esi
pop ebp
ret
Function at 0x10003600
Capabilities:
Encrypt data using rc6

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor ebx, ebx
push 0x2b
mov byte [esi], 0x52
mov byte [esi + 1], 0x43
mov byte [esi + 2], 0x36
mov byte [esi + 3], bl
mov dword [esi + 4], 0xb8
mov dword [esi + 8], 0xb7e15163
lea eax, [esi + 0xc]
pop ecx
mov edx, dword [eax - 4]
sub edx, 0x61c88647
mov dword [eax], edx
add eax, 4
dec ecx
jne 0x10003630
mov dword [ebp + 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], 0x84
mov eax, dword [ebp - 4]
push 3
lea edi, [esi + eax*4 + 8]
mov eax, dword [ebp + 0xc]
add eax, ebx
add eax, dword [edi]
push eax
call fcn.100037ae
mov ecx, dword [ebp - 8]
mov dword [edi], eax
mov ebx, eax
mov eax, dword [ebp + 8]
lea edi, [eax + ecx*4]
mov eax, dword [ebp + 0xc]
lea ecx, [ebx + eax]
push ecx
mov ecx, dword [edi]
add ecx, eax
add ecx, ebx
push ecx
call fcn.100037ae
mov dword [edi], eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 4]
add esp, 0x10
inc eax
push 0x2c
cdq
pop ecx
idiv ecx
mov eax, dword [ebp - 8]
push 4
inc eax
pop ecx
mov dword [ebp - 4], edx
cdq
idiv ecx
dec dword [ebp - 0xc]
mov dword [ebp - 8], edx
jne 0x10003651
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100036b3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
test byte [ebp + 0x10], 0xf
je 0x100036c4
push 1
pop eax
leave
ret
cmp dword [ebp + 0x10], 0
je 0x100037aa
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov eax, dword [ebx]
push 4
mov dword [ebp - 4], eax
pop eax
add ebx, eax
sub dword [ebp + 0x10], 0x10
mov dword [ebp - 0x10], 0x14
mov esi, dword [ebx]
mov ecx, dword [eax + ebx]
add ebx, eax
mov dword [ebp - 8], ecx
add ebx, eax
mov edi, dword [ebx]
add ebx, eax
mov eax, dword [ebp + 8]
add esi, dword [eax + 8]
add edi, dword [eax + 0xc]
add eax, 0x14
mov dword [ebp + 0xc], eax
lea eax, [esi + esi + 1]
push 5
imul eax, esi
push eax
call fcn.100037ae
mov dword [ebp - 0xc], eax
lea eax, [edi + edi + 1]
imul eax, edi
push 5
push eax
call fcn.100037ae
mov dword [ebp - 0x18], eax
push eax
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 4]
push eax
call fcn.100037ae
mov ecx, dword [ebp + 0xc]
push dword [ebp - 0xc]
mov dword [ebp - 4], esi
add eax, dword [ecx - 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
xor eax, dword [ebp - 8]
push eax
call fcn.100037ae
mov ecx, dword [ebp + 0xc]
add dword [ebp + 0xc], 8
add esp, 0x20
mov dword [ebp - 8], edi
add eax, dword [ecx]
dec dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov esi, eax
jne 0x10003708
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
push 4
mov edx, dword [ecx + 0xb0]
mov ecx, dword [ecx + 0xb4]
add edx, dword [ebp - 4]
add ecx, dword [ebp - 8]
mov dword [eax], edx
pop edx
add eax, edx
mov dword [eax], esi
add eax, edx
mov dword [eax], ecx
add eax, edx
mov ecx, edi
mov dword [eax], ecx
add eax, edx
cmp dword [ebp + 0x10], 0
mov dword [ebp + 0x14], eax
jne 0x100036d4
pop edi
pop esi
pop ebx
xor eax, eax
leave
ret
Function at 0x1000382c
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x1000430d
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.10004347
mov ax, word [esi + 2]
pop ecx
xor word [esi], ax
xor ecx, ecx
lea eax, [esi + 0x12]
mov edx, ecx
and edx, 3
mov edx, dword [esi + edx*4 + 2]
xor dword [eax], edx
inc ecx
add eax, 4
cmp ecx, 0xa
jb 0x10004325
mov al, byte [esi + 0x10]
xor byte [esi + 0x3a], al
mov al, byte [esi + 0x11]
xor byte [esi + 0x3b], al
pop esi
ret

Function at 0x1000526a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
push ebx
push esi
push edi
push 4
pop edi
lea eax, [ebp - 4]
push edi
push 0x10027520
push eax
call fcn.10001e2c
mov esi, dword [ebp - 4]
push edi
lea eax, [ebp - 4]
push 0x10027508
push eax
call fcn.10001e2c
mov eax, dword [ebp - 4]
push edi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push 0x10027524
push eax
call fcn.10001e2c
mov eax, dword [ebp - 4]
push 0x14
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x24]
push 0
push eax
call fcn.100042de
add esp, 0x30
push 1
pop ebx
cmp dword [ebp + 8], ebx
push 0x10
jne 0x100052f6
lea eax, [ebp - 0x24]
push 0x100274d0
push eax
call fcn.10001e2c
add esp, 0xc
lea eax, [ebp - 0x24]
mov ecx, edi
xor dword [eax], 0x3dd17ea6
add eax, edi
dec ecx
jne 0x100052e5
mov byte [ebp - 0x14], 0x6c
jmp 0x1000531f
lea eax, [ebp - 0x24]
push 0x100274e0
push eax
call fcn.10001e2c
add esp, 0xc
lea eax, [ebp - 0x24]
mov ecx, edi
xor dword [eax], 0x3dd17ea6
add eax, edi
dec ecx
jne 0x1000530c
mov byte [ebp - 0x14], 0x6c
mov byte [ebp - 0x13], 0x6c
lea eax, [ebp - 0x24]
push eax
call esi
test eax, eax
mov dword [ebp - 8], eax
je 0x1000535d
lea esi, [ebp - 0x9c]
push ebx
push dword [ebp - 8]
call dword [ebp - 0xc]
test eax, eax
mov dword [esi], eax
je 0x10005357
inc ebx
add esi, edi
cmp ebx, 0x1f
jb 0x10005332
cmp dword [ebp + 8], 1
mov eax, dword [ebp - 0x30]
jne 0x10005364
mov dword [0x100274a4], eax
jmp 0x10005369
push dword [ebp - 8]
call dword [ebp - 0x10]
mov eax, 0xa8160005
jmp 0x100053b6
mov dword [0x100274a8], eax
push dword [ebp - 0x8c]
call fcn.100053bb
test eax, eax
pop ecx
je 0x10005380
mov eax, 0xa8160006
jmp 0x100053b6
push dword [ebp - 0x4c]
push dword [ebp - 0x44]
call fcn.10005488
pop ecx
test eax, eax
pop ecx
je 0x10005398
mov eax, 0xa8160007
jmp 0x100053b6
cmp dword [ebp + 8], 1
jne 0x100053aa
mov dword [0x1002749c], 2
jmp 0x100053b4
mov dword [0x100274a0], 2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100076a0
Capabilities:
Write file on windows

Disassembly:
mov ecx, 0x10028fbc
jmp fcn.1001683c
Function at 0x100078c7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
jne 0x100078dc
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
jne 0x100078ee
xor eax, eax
jmp 0x10007920
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x10007912
cmp esi, eax
jae 0x100078ea
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10007904
cmp esi, eax
jae 0x100078ea
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret

Function at 0x10009851
Capabilities:
Accept command line arguments
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x1000993e
mov eax, 0x94
call fcn.1000a450
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
test eax, eax
je 0x100099b3
mov ecx, dword [esi + 0x10]
mov dword [0x1002b18c], ecx
mov eax, dword [esi + 4]
mov dword [0x1002b198], eax
mov edx, dword [esi + 8]
mov dword [0x1002b19c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x1002b190], esi
je 0x100098bc
or esi, 0x8000
mov dword [0x1002b190], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x1002b194], eax
call fcn.1000ef5a
test eax, eax
pop ecx
je 0x100099b3
call fcn.1000d025
test eax, eax
jne 0x100098e9
call fcn.1000efab
jmp 0x100099b3
call fcn.1000eeb8
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x1002c9f0], eax
call fcn.1000ed96
mov dword [0x1002b178], eax
call fcn.1000e877
test eax, eax
jl 0x10009937
call fcn.1000ecf4
test eax, eax
jl 0x10009932
call fcn.1000eac1
test eax, eax
jl 0x10009932
call fcn.1000ad86
test eax, eax
jne 0x10009932
inc dword [0x1002b174]
jmp 0x100099c4
call fcn.1000ea75
call fcn.1000ce18
jmp 0x100098df
test eax, eax
jne 0x1000996e
cmp dword [0x1002b174], eax
jle 0x100099b3
dec dword [0x1002b174]
cmp dword [0x1002b1c8], eax
jne 0x1000995d
call fcn.1000aecf
call fcn.1000ea75
call fcn.1000ce18
call fcn.1000efab
jmp 0x100099c4
cmp eax, 2
jne 0x100099b7
push 0x88
push 1
call fcn.1000e7bc
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x100099b3
push esi
push dword [0x100281b8]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
test eax, eax
push esi
je 0x100099ad
call fcn.1000ce36
pop ecx
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x100099c4
call fcn.10009b9d
pop ecx
xor eax, eax
jmp 0x100099c7
cmp eax, 3
jne 0x100099c4
push 0
call fcn.1000ceba
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
Function at 0x1000adeb
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.1000e73f
xor esi, esi
inc esi
cmp dword [0x1002b1cc], esi
pop ecx
jne 0x1000ae13
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x1002b1c8], esi
mov byte [0x1002b1c4], al
jne 0x1000ae79
mov ecx, dword [0x1002c9e8]
test ecx, ecx
je 0x1000ae5a
mov eax, dword [0x1002c9e4]
sub eax, 4
cmp eax, ecx
jmp 0x1000ae53
mov eax, dword [eax]
test eax, eax
je 0x1000ae45
call eax
mov eax, dword [0x1002c9e4]
sub eax, 4
cmp eax, dword [0x1002c9e8]
mov dword [0x1002c9e4], eax
jae 0x1000ae3d
mov eax, 0x10024074
mov esi, 0x1002407c
cmp eax, esi
mov edi, eax
jae 0x1000ae79
mov eax, dword [edi]
test eax, eax
je 0x1000ae72
call eax
add edi, 4
cmp edi, esi
jb 0x1000ae6a
mov eax, 0x10024080
mov esi, 0x10024088
cmp eax, esi
mov edi, eax
jae 0x1000ae98
mov eax, dword [edi]
test eax, eax
je 0x1000ae91
call eax
add edi, 4
cmp edi, esi
jb 0x1000ae89
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x1000aea9
push 8
call fcn.1000e6ab
jmp 0x1000aebb
push dword [ebp + 8]
mov dword [0x1002b1cc], 1
call fcn.1000ad44
pop ecx
pop ebp
ret
Function at 0x1000f02a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x10027e7c]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x10028310]
je 0x1000f057
inc eax
cmp eax, 0x12
jb 0x1000f048
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x10028310]
jne 0x1000f18b
mov eax, dword [0x1002b180]
cmp eax, 1
je 0x1000f166
cmp eax, edx
jne 0x1000f087
cmp dword [0x1002b184], 1
je 0x1000f166
cmp ecx, 0xfc
je 0x1000f18b
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x1000f0c0
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.10010d20
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.1000a6c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1000f102
lea eax, [ebp - 0x10c]
push eax
call fcn.1000a6c0
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x10020a48
push edi
call fcn.10012b70
add esp, 0x10
push edi
call fcn.1000a6c0
push dword [esi + 0x10028314]
mov ebx, eax
call fcn.1000a6c0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.1000a450
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.10010d20
push edi
push ebx
call fcn.10010d30
push 0x10020a28
push ebx
call fcn.10010d30
push dword [esi + 0x10028314]
push ebx
call fcn.10010d30
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.10012a6c
add esp, 0x2c
jmp 0x1000f18b
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x10028314]
push dword [esi]
call fcn.1000a6c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.10009c60
pop edi
pop esi
pop ebx
leave
ret