joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402710
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41fc6d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x148
push esi
push edi
mov edi, dword [edx]
lea esi, [edx + 4]
mov dword [ebp - 0x10], edx
cmp edi, dword [esi]
je 0x40274b
mov edx, dword [esi]
push ecx
mov ecx, edi
call fcn.00405390
add esp, 4
mov dword [esi], edi
push 0
push 0xf
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, 0xffffffff
jne 0x402771
pop edi
or eax, eax
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x124
lea eax, [ebp - 0x150]
push 0
push eax
call fcn.00408b30
add esp, 0xc
mov dword [ebp - 0x154], 0x128
lea eax, [ebp - 0x154]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x402890
nop word [eax + eax]
lea eax, [ebp - 0x130]
push eax
push str.ldcore.exe
call fcn.00410bbf
add esp, 8
test eax, eax
jne 0x402870
mov dword [ebp - 0x1c], eax
xorps xmm0, xmm0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x130]
movups xmmword [ebp - 0x2c], xmm0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4027e2
sub eax, edx
lea ecx, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.004052b0
mov edi, dword [ebp - 0x10]
mov dword [ebp - 4], 0
mov eax, dword [esi]
cmp eax, dword [edi + 8]
je 0x40282b
movups xmm0, xmmword [ebp - 0x2c]
mov ecx, 0xf
mov byte [ebp - 0x2c], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [eax + 0x10], xmm0
add dword [esi], 0x18
jmp 0x40283a
lea ecx, [ebp - 0x2c]
push ecx
push eax
mov ecx, edi
call fcn.00405e20
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 0xf
jbe 0x402873
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402864
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4028c1
push ecx
push edx
call fcn.0040703d
add esp, 8
jmp 0x402873
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 0x154]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x4027b0
lea esi, [edi + 4]
jmp 0x402893
mov edi, dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi]
mov eax, 0x2aaaaaab
sub ecx, dword [edi]
imul ecx
mov ecx, dword [ebp - 0xc]
sar edx, 2
mov eax, edx
mov dword fs:[0], ecx
shr eax, 0x1f
pop edi
add eax, edx
pop esi
mov esp, ebp
pop ebp
ret
call fcn.0040d3a1
int3
Function at 0x403140
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0x14], ecx
je 0x403238
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x403227
jg 0x40317d
test edx, edx
je 0x403227
lea edx, [ecx + 0x30]
mov eax, dword [ecx + 0x20]
mov dword [esp + 0x20], edx
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x403197
mov eax, dword [edx]
mov eax, dword [eax]
jmp 0x403199
xor eax, eax
cdq
mov esi, eax
mov eax, edx
mov dword [esp + 0x18], eax
test eax, eax
jl 0x4031e7
jg 0x4031ac
test esi, esi
je 0x4031e7
cmp ebx, eax
jg 0x4031bc
jl 0x4031b6
cmp edi, esi
jae 0x4031bc
mov esi, edi
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x10]
push esi
push eax
push dword [esp + 0x24]
call fcn.004085a0
mov edx, dword [esp + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x14]
sub edi, esi
sbb ebx, dword [esp + 0x18]
mov eax, dword [edx]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x40320b
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x403221
mov ecx, dword [esp + 0x14]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
lea edx, [ecx + 0x30]
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x403180
jl 0x403221
test edi, edi
jne 0x403180
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x1c], esi
mov edx, dword [eax]
lea eax, [ecx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], eax
test edx, edx
je 0x403260
mov eax, dword [eax]
mov edx, dword [eax]
jmp 0x403266
xor edx, edx
mov dword [esp + 0x10], eax
mov eax, edx
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x18], eax
test edi, edi
jl 0x4032e9
jg 0x40327b
test esi, esi
je 0x4032e9
test eax, eax
jl 0x4032cd
jg 0x403285
test ebx, ebx
je 0x4032cd
cmp edi, eax
jg 0x403295
jl 0x40328f
cmp esi, ebx
jae 0x403295
mov ebx, esi
mov dword [esp + 0x18], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x28]
call fcn.004085a0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 0x14]
add edx, ebx
sub esi, ebx
mov eax, dword [eax]
sbb edi, dword [esp + 0x18]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x4032e9
jg 0x4032d0
test esi, esi
je 0x4032e9
jmp 0x4032d0
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x4032e9
push eax
push esi
push 1
push edx
call fcn.0040c7a4
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403860
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x40387c
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4038ae
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x4038ae
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x40398b
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x4038d6
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4038ff
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0040b97c
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp + 8]
mov byte [ebp - 1], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 1]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x403955
sub eax, 1
je 0x403955
sub eax, 2
jne 0x40398b
push dword [esi + 0x4c]
movsx eax, byte [ebp - 1]
push eax
call fcn.0040b97c
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x28]
sub edi, eax
je 0x403972
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0040c7a4
add esp, 0x10
cmp edi, eax
jne 0x40398b
lea ecx, [ebp - 1]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 8], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404790
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41fd40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
lea eax, [ecx + 4]
mov dword [ebp - 0x10], ecx
lea ebx, [ecx + 0x24]
mov dword [ecx], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
lea edi, [ecx + 0x28]
mov dword [ebp - 0x14], eax
push 8
mov dword [eax], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
call fcn.0040700d
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.004066f5
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
mov ecx, eax
mov dword [eax + 0x34], esi
call fcn.00404930
mov eax, dword [ebp - 0x10]
lea edx, [eax + 8]
lea ecx, [eax + 0x14]
lea esi, [eax + 4]
mov dword [eax + 0x1c], ecx
mov dword [eax + 0xc], esi
mov esi, eax
mov dword [eax + 0x10], edx
mov dword [eax], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [eax + 0x48], 0
mov byte [eax + 0x3d], 0
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], edi
mov esi, dword [ebp - 0x14]
mov dword [edx], 0
mov edx, dword [ebp - 0x10]
mov dword [eax], 0
mov eax, dword [0x42bcf4]
mov dword [edi], 0
mov dword [esi], 0
mov dword [ecx], 0
mov ecx, dword [0x42bcf8]
mov dword [ebx], 0
pop edi
mov dword [edx + 0x44], ecx
mov ecx, dword [ebp - 0xc]
mov dword [edx + 0x40], eax
mov eax, edx
pop esi
mov dword [edx + 0x4c], 0
mov dword [edx + 0x38], 0
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x407b86
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407bc5
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x407bc5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407bc5
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x407bc5
cmp dword [ecx + 0x74], 0xe
jbe 0x407bc5
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x413719
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041358f

Function at 0x41f610
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41f63d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41f63d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x402c00
pop dword [ebp - 0x4c]
mov eax, 0x5d0beccb
sub eax, 0x5ccbc0cb
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x7706dc82
sub dword [ebp - 0x5c], 0x28b49737
mov dword [ebp - 0x58], 0xdb2c6701
sub dword [ebp - 0x58], 0xa8f91abc
mov dword [ebp - 0x54], 0x707be8b0
sub dword [ebp - 0x54], 0x242fa482
mov dword [ebp - 0x50], 0x5222652e
add dword [ebp - 0x50], 0xaddd9ad2
lea eax, [ebp - 0x5c]
push eax
mov eax, 0x62780759
sub eax, 0x623796f5
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0x1dd45c11
sub dword [ebp - 0x5c], 0xa961f2bb
mov dword [ebp - 0x58], 0xaf439778
add dword [ebp - 0x58], 0x9228c9fd
mov dword [ebp - 0x54], 0xb60344ab
add dword [ebp - 0x54], 0xad6c27c1
mov dword [ebp - 0x50], 0xa0baea8
add dword [ebp - 0x50], 0xf5f45158
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x3c2ee
push 0
call eax
mov ecx, 0x5dfa
mov esi, eax
mov edx, 0x91f04189
add edx, 0x6e50be77
add edx, dword [ebp - 0x4c]
mov ebx, 0xcf8f0f02
sub ebx, 0x488cf8a7
mov edi, dword [edx]
sub dword [ebp - 4], eax
xor edi, ebx
add dword [ebp - 0x14], 0x92b2a1d2
mov dword [esi], edi
add dword [ebp - 0x14], 0x7e5c93a1
add esi, 4
add edx, 4
loop 0x402d17
add eax, 0x16abb
xor ebx, ebx
add ebx, eax
add eax, 0xf4348eae
add eax, 0xbcb7157
mov ecx, 0x7b3cd547
add ecx, 0x85032ab9
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x10008340
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.100252c0

Function at 0x10033e2b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x10033e3a
pop dword [ebp - 0x1c]
mov eax, 0xd8ba3676
add eax, 0x374907c4
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x66b98923
sub dword [ebp - 0x2c], 0x186743d8
mov dword [ebp - 0x28], 0xe3fb3710
sub dword [ebp - 0x28], 0xb1c7eacb
mov dword [ebp - 0x24], 0x667183ee
add dword [ebp - 0x24], 0xe5dac040
mov dword [ebp - 0x20], 0x502014a3
add dword [ebp - 0x20], 0xafdfeb5d
lea eax, [ebp - 0x2c]
push eax
mov eax, 0xa7950d9c
sub eax, 0x978e0c90
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x7429f107
add dword [ebp - 0x2c], 0x48784f
mov dword [ebp - 0x28], 0x18f074f4
sub dword [ebp - 0x28], 0xd784137f
mov dword [ebp - 0x24], 0xdb83fe58
add dword [ebp - 0x24], 0x87eb6e14
mov dword [ebp - 0x20], 0x75aea1cc
add dword [ebp - 0x20], 0x8a515e34
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0x27c4730e
add eax, 0xe8428d32
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x6363b
push 0
call eax
mov ecx, 0x5cdcc21
add ecx, 0xfa326c82
xor edx, edx
add edx, eax
mov edi, 0x18749f1
add edi, 0xe81020f
add edi, dword [ebp - 0x1c]
mov esi, 0x7c6ab6fd
sub esi, 0x635f4bab
sub dword [ebp - 8], 0xe0670f57
mov ebx, dword [edi]
xor dword [ebp - 4], esi
add ebx, esi
xor dword [ebp - 8], 0x276484f8
mov dword [edx], ebx
xor dword [ebp - 0xc], esi
add edx, 4
add edi, 4
loop 0x10033f5e
add eax, 0xd55f
mov ebx, eax
add eax, 0xe8034b4d
add eax, 0x17fcb4b8
mov ecx, 0x10000000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x101e69b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 4], 0xc00000e5
je 0x101e6cb
push dword [ebp + 8]
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x101e6f9
call fcn.0104b39a
mov esi, eax
cmp esi, edi
jl 0x101e6ea
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], 0x10024d0
call fcn.0101d3f6
jmp 0x101e6fc
push esi
push 1
push edi
push edi
call fcn.0103cbc6
mov dword [ebp - 4], esi
jmp 0x101e6fc
mov dword [ebp - 4], edi
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 4

Function at 0x1021637
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
lea eax, [ebp - 4]
push eax
push 2
xor edi, edi
push 3
push ebx
mov dword [ebp - 0x18], 0xc00000e5
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
call fcn.0101e65e
cmp eax, edi
jl 0x102167c
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call fcn.0103ef28
cmp eax, edi
jge 0x1021683
mov esi, eax
jmp 0x1021765
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp + 0xc]
mov word [eax], 0x78
mov eax, dword [ebp - 0xc]
mov word [eax + 2], 0x20
mov edi, dword [ebp - 0xc]
mov ecx, ebx
add edi, 4
rep movsw word es:[edi], word [esi]
mov eax, dword [ebp - 0xc]
xor esi, esi
mov word [eax + ebx*2 + 4], si
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
mov dword [ebp + 0x10], esi
mov dword [ebp - 8], esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp eax, esi
jne 0x10216e8
call fcn.0104b39a
mov edi, eax
cmp edi, esi
jl 0x10216da
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], esi
jmp 0x102170e
push edi
push 1
push esi
push esi
call fcn.0103cbc6
mov esi, edi
jmp 0x1021765
push eax
lea ecx, [ebp + 0x10]
call fcn.0101d46f
mov eax, dword [ebp - 8]
xor ebx, ebx
inc ebx
cmp eax, ebx
jge 0x102172e
cmp dword [ebp + 0x10], esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], esi
je 0x102170e
push dword [ebp + 0x10]
call sub.KERNEL32.dll_GlobalFree
lea ecx, [ebp - 0x14]
call fcn.0101cd79
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0x1002660
call fcn.0101d3f6
mov esi, dword [ebp - 0x18]
jmp 0x102176d
cmp eax, ebx
mov edi, dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
je 0x102175b
lea esi, [edi + eax*4 - 4]
push dword [esi]
mov ecx, dword [ebp + 8]
call fcn.010215ab
test eax, eax
jl 0x1021759
dec dword [ebp + 0xc]
sub esi, 4
cmp dword [ebp + 0xc], ebx
jne 0x102173c
xor esi, esi
jmp 0x102175b
mov esi, eax
test edi, edi
je 0x1021765
push edi
call sub.KERNEL32.dll_GlobalFree
lea ecx, [ebp - 0x14]
call fcn.0101cd79
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10229b7
Capabilities:
Check for software breakpoints

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
lea eax, [ebp - 0x20]
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push edi
mov ebx, ecx
mov dword [ebp - 8], eax
xor esi, esi
mov ecx, dword [esi + section..data]
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10229dd
sub eax, edi
mov dword [ebp - 0xc], ecx
mov ecx, dword [esi + 0x10a00d0]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10229fa
sub eax, edi
push 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x18], ecx
push eax
mov ecx, ebx
call fcn.01022742
test eax, eax
jl 0x1022a30
add esi, 4
cmp esi, 0xcc
jb 0x10229d2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10298d1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [ebp + 0x18]
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 0x10], 0xc00000e5
je 0x1029975
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
lea esi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x1029975
cmp dword [ebp + 0x10], ebx
je 0x1029975
cmp dword [ebp + 0x14], ebx
je 0x1029975
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
call sub.KERNEL32.dll_FindResourceExW
mov esi, eax
cmp esi, ebx
jne 0x102993c
call fcn.0104b39a
mov esi, eax
cmp esi, ebx
jge 0x1029975
push esi
push 1
push ebx
push ebx
call fcn.0103cbc6
mov eax, esi
jmp 0x102996e
push esi
push edi
call sub.KERNEL32.dll_LoadResource
cmp eax, ebx
mov dword [ebp + 0x14], eax
je 0x1029923
push esi
push edi
call sub.KERNEL32.dll_SizeofResource
cmp eax, ebx
mov esi, dword [ebp + 0x18]
mov dword [esi + 4], eax
mov dword [esi], eax
je 0x1029923
push dword [ebp + 0x14]
call sub.KERNEL32.dll_LockResource
cmp eax, ebx
mov dword [esi + 8], eax
je 0x1029923
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x14
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], 0x1002d70
call fcn.0101d3f6
mov eax, dword [ebp - 0x10]
jmp 0x102996e
Function at 0x1035bf6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1035c50
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x1035c1d
xor eax, eax
jmp 0x1035c4f
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 0x1035c41
cmp esi, eax
jae 0x1035c19
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x1035c33
cmp esi, eax
jae 0x1035c19
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret 0xc
Function at 0x103be63
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 0xc], 0
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 0xc]
push edi
xor eax, eax
and dword [esi], eax
and dword [esi + 4], eax
lea edi, [ebp - 8]
stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x103bea9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x103bea9
push eax
call fcn.01035a25
jmp 0x103beb3
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov dword [esi], edi
xor eax, eax
pop edi
pop esi
leave
ret 8

Function at 0x103bebe
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
cmp edi, esi
mov dword [ebp - 4], esi
jne 0x103bed6
lea edi, [ebp - 4]
mov ebx, dword [ebp + 0x10]
push esi
push esi
push esi
push 2
push esi
push dword [ebp + 8]
mov dword [edi], esi
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, esi
mov dword [edi], eax
je 0x103bf04
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [ebx], eax
jne 0x103bf15
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01035a25
mov dword [ebp + 0xc], eax
jmp 0x103bf18
mov dword [ebp + 0xc], esi
cmp dword [ebp + 0xc], esi
jge 0x103bf29
push edi
call fcn.0103bdba
push ebx
call fcn.0103bde1
lea eax, [ebp - 4]
push eax
call fcn.0103bdba
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x103c07d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10a09bc]
jne 0x103c08e
test ecx, 0xffff0000
jne 0x103c08e
ret
jmp fcn.0103c098