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

Disassembly:
cmp ecx, dword [0x440a30]
jne 0x4071bd
repz ret
jmp fcn.00409f4f

Function at 0x409adf
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004058a8
and dword [ebp - 4], 0
cmp dword [0x4418e0], 0
mov ebx, eax
jne 0x409b90
push 0x402368
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x409c41
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40235c
push edi
call esi
test eax, eax
je 0x409c41
push eax
call fcn.00405836
mov dword [esp], 0x40234c
push edi
mov dword [0x4418e0], eax
call esi
push eax
call fcn.00405836
mov dword [esp], 0x402338
push edi
mov dword [0x4418e4], eax
call esi
push eax
call fcn.00405836
mov dword [esp], 0x40231c
push edi
mov dword [0x4418e8], eax
call esi
push eax
call fcn.00405836
pop ecx
mov dword [0x4418f0], eax
test eax, eax
je 0x409b90
push 0x402304
push edi
call esi
push eax
call fcn.00405836
pop ecx
mov dword [0x4418ec], eax
mov eax, dword [0x4418ec]
cmp eax, ebx
je 0x409be8
cmp dword [0x4418f0], ebx
je 0x409be8
push eax
call fcn.004058b1
push dword [0x4418f0]
mov esi, eax
call fcn.004058b1
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409be8
test edi, edi
je 0x409be8
call esi
test eax, eax
je 0x409bdf
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409bdf
test byte [ebp - 0xc], 1
jne 0x409be8
or dword [ebp + 0x10], 0x200000
jmp 0x409c21
mov eax, dword [0x4418e4]
cmp eax, ebx
je 0x409c21
push eax
call fcn.004058b1
pop ecx
test eax, eax
je 0x409c21
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409c21
mov eax, dword [0x4418e8]
cmp eax, ebx
je 0x409c21
push eax
call fcn.004058b1
pop ecx
test eax, eax
je 0x409c21
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4418e0]
call fcn.004058b1
pop ecx
test eax, eax
je 0x409c41
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409c43
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a301
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x417354]
jne 0x40a30b
repz ret
jmp fcn.0040eeec

Function at 0x412be4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417354]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040ce8d
and dword [ebp - 0x14], 0
cmp dword [0x439f88], 0
mov dword [ebp - 0x18], eax
jne 0x412c97
push 0x40374c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x412d3f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403740
push ebx
call edi
test eax, eax
je 0x412d3f
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403730
push ebx
mov dword [0x439f88], eax
call edi
push eax
call esi
push 0x40371c
push ebx
mov dword [0x439f8c], eax
call edi
push eax
call esi
push 0x403700
push ebx
mov dword [0x439f90], eax
call edi
push eax
call esi
mov dword [0x439f98], eax
test eax, eax
je 0x412c97
push 0x4036e8
push ebx
call edi
push eax
call esi
mov dword [0x439f94], eax
mov eax, dword [0x439f94]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x412cf0
cmp dword [0x439f98], ecx
je 0x412cf0
push eax
call esi
push dword [0x439f98]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x412cf0
test ebx, ebx
je 0x412cf0
call edi
test eax, eax
je 0x412ce7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x412ce7
test byte [ebp - 8], 1
jne 0x412cf0
or dword [ebp + 0x10], 0x200000
jmp 0x412d23
mov eax, dword [0x439f8c]
cmp eax, dword [ebp - 0x18]
je 0x412d23
push eax
call esi
test eax, eax
je 0x412d23
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x412d23
mov eax, dword [0x439f90]
cmp eax, dword [ebp - 0x18]
je 0x412d23
push eax
call esi
test eax, eax
je 0x412d23
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x439f88]
call esi
test eax, eax
je 0x412d3f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x412d41
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a301
leave
ret
Function at 0x414b20
Capabilities:
Delete directory
Delete file
Get disk information
Read .ini file

Disassembly:
mov eax, 0x1000
call fcn.004141b0
cmp dword [0x46b25c], 0x37
jne 0x414b96
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push 0x403f68
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea eax, [esp + 0x404]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x403f88
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
push 0x403fa0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea edx, [esp + 0x804]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
mov eax, dword [0x46be40]
mov edx, dword [0x4682bc]
mov cl, byte [eax + esi + 0x38d6]
mov byte [edx + esi], cl
add esp, 0x1000
ret
Function at 0x414c30
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
sub esp, 0x824
cmp dword [0x46b25c], 0x60b
mov ecx, dword [esp + 0x828]
mov eax, dword [ecx]
mov edx, dword [0x43704c]
push ebx
push ebp
mov ebp, dword [0x437054]
push esi
mov esi, dword [ecx + 4]
mov ecx, dword [0x437048]
mov dword [esp + 0x20], ecx
mov ecx, dword [0x437050]
mov ebx, 0xc6ef3720
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ecx
jne 0x414ca1
push 0
lea edx, [esp + 0x20]
push edx
push 0
lea eax, [esp + 0x40]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeW]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], 0x20
jmp 0x414cb4
mov eax, dword [esp + 0x18]
mov ecx, eax
shl ecx, 4
cmp dword [0x46b25c], 5
mov dword [esp + 0x10], ecx
jne 0x414cde
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadIdealProcessor]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
add ecx, dword [esp + 0x2c]
lea edi, [ebx + eax]
shr eax, 5
cmp dword [0x46b25c], 0x1b
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jne 0x414d1e
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
push 0x403ef0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLocaleInfoW]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add eax, ebp
xor eax, edi
xor eax, ecx
sub esi, eax
mov dword [esp + 0x14], eax
mov eax, esi
shl eax, 4
cmp dword [0x46b25c], 0x78c
mov dword [0x4682c0], 0
mov dword [esp + 0x10], eax
jne 0x414d63
push 0
lea ecx, [esp + 0x34]
push ecx
push 0
lea edx, [esp + 0x40]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
mov eax, dword [esp + 0x24]
add dword [esp + 0x10], eax
mov eax, esi
shr eax, 5
mov dword [0x4682c8], 0xff6b3619
mov dword [0x4682cc], 0xffffffff
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
add dword [esp + 0x14], eax
lea ecx, [ebx + esi]
xor dword [esp + 0x10], ecx
mov eax, dword [esp + 0x14]
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sub dword [esp + 0x18], eax
cmp dword [0x46b25c], 0x93
jne 0x414dc5
push 0x403f18
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x414dd2
lea eax, [esp + 0x20]
call fcn.00414bc0
mov ebx, dword [esp + 0x20]
dec dword [esp + 0x1c]
jne 0x414cb0
mov eax, dword [esp + 0x838]
mov ecx, dword [esp + 0x18]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x824
ret 4
Function at 0x100c07c6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov eax, dword [ebp + 8]
mov dword [0x100cbbb4], 0x1baf
mov dword [ebp - 0x10], eax
call fcn.100c11b6
mov ecx, eax
mov dword [0x100cbbb4], 0x1202
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x3c]
mov esi, dword [ebp - 0x18]
add esi, edx
mov edi, dword [0x100cbbb8]
mov ebx, edi
add ebx, 0xffffe1a3
mov dword [0x100cbbb8], ebx
mov ebx, dword [ebp - 0x18]
cmp dword [ebx + edx], 0x4550
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], eax
jne 0x100c0841
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
add ecx, 0xffffce46
mov dword [0x100cbbb4], ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov dword [0x100cbbb8], 0x219f
mov eax, dword [eax + 0x78]
mov dword [0x100cbbb4], 0xe0a
mov edx, dword [ebp - 0x18]
add edx, dword [edx + eax + 0x20]
mov esi, dword [ebp - 0x18]
mov edi, dword [esi + eax + 0x18]
cmp edi, 0
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], ecx
je 0x100c0960
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
xor edx, edx
mov esi, dword [ebp - 0x30]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
mov ecx, eax
mov edx, dword [ebp - 0x48]
add ecx, edx
mov esi, dword [ebp - 0x18]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x51], bh
mov byte [ebp - 0x52], cl
je 0x100c0900
mov eax, dword [ebp - 0x50]
add eax, 1
mov cl, byte [ebp - 0x51]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x52]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x4c], eax
jne 0x100c08af
mov al, byte [ebp - 0x52]
test al, 1
jne 0x100c093d
jmp 0x100c0909
xor eax, eax
mov dword [0x100cbbb4], 0x2122
mov ecx, dword [ebp - 0x44]
add ecx, 2
mov edx, dword [ebp - 0x40]
add edx, 1
mov esi, dword [ebp - 0x28]
cmp edx, esi
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], eax
jb 0x100c0895
jmp 0x100c0960
mov eax, dword [ebp - 0x44]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x2c]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x18]
add edi, dword [edx + ecx*4]
mov dword [0x100cbbb4], 0x12b1
mov dword [ebp - 0x34], edi
mov eax, dword [ebp - 0x34]
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100c096b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, 1
lea esi, [ebp - 0x24]
mov dword [0x100cbbb8], 0x2139
mov dword [0x100cbbb4], 0xad4
mov byte [ebp - 0x24], 0x56
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
mov cl, byte [eax + 0x100c40ec]
mov dl, byte [eax + 0x100c40bd]
sub dl, cl
mov byte [ebp + eax - 0x24], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x34], eax
jne 0x100c09a4
mov dword [0x100cbbb4], 0x1396
call fcn.100c0f02
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
call fcn.100c04d4
mov dword [0x100cbbb4], 0xb56
cmp eax, 0
mov dword [ebp - 0x38], eax
je 0x100c0aba
mov eax, dword [ebp - 0x38]
mov dword [0x100cbbb4], 0x22a
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [0x100cbbb8], 0xc23
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x3c], eax
call fcn.100c0b65
xor eax, eax
mov ecx, dword [ebp - 0x3c]
mov word [ecx], 0x5a4d
mov dword [0x100cbbb4], 0x2dce
mov dword [ecx + 0x3c], 0xc0
mov edx, dword [0x100cbbb8]
add edx, 0x39b
mov dword [0x100cbbb8], edx
mov dword [ecx + 0xc0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 8], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [edx + 0x18], ecx
add ecx, 0x146e
mov esi, dword [ebp - 0x3c]
cmp esi, 0
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], eax
je 0x100c0ab1
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
add esp, 0x50
pop esi
pop ebp
ret
xor eax, eax
add esp, 0x50
pop esi
pop ebp
ret
Function at 0x100c14e3
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov eax, dword [0x100cbbb4]
add eax, 0xfffff426
mov dword [0x100cbbb4], eax
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x100cbbb8], 0xb46
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x100c156d
mov eax, dword [ebp - 0x14]
mov ecx, dword [0x100cbbb4]
mov edx, ecx
add edx, 0xfffffe97
mov dword [0x100cbbb8], edx
mov edx, dword [ebp - 0xc]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
je 0x100c1585
jmp 0x100c1601
mov eax, dword [ebp - 0x20]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
jge 0x100c1528
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], edx
je 0x100c1528
jmp 0x100c1556
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x100c1601
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x16], 0x61
sete dl
mov byte [ebp - 0x21], dl
mov al, byte [ebp - 0x21]
test al, 1
jne 0x100c15b0
jmp 0x100c1601
mov eax, dword [ebp - 0x1c]
add eax, 0x25fa
mov dword [0x100cbbb4], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x100c1601
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x100c1601
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x100c1601
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x28], eax
je 0x100c1608
xor eax, eax
mov dword [ebp - 0x28], eax
jmp 0x100c1608
mov eax, dword [ebp - 0x28]
add esp, 0x28
pop ebp
ret
Function at 0x100c19ca
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x100cbbc0], 0
mov byte [0x100cbbc4], 0
mov dword [0x100cbbb4], 0xb4
mov dword [0x100cbbbc], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x100c1a2a
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [0x100cbbbc], 0
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x100c1a5c
mov eax, dword [ebp - 0x1c]
mov dword [0x100cbbb4], 0x14fa
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x100cbbbc]
add eax, 1
mov dword [0x100cbbbc], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x100c1a2a
jmp 0x100c1a19
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x100cbbc8], 0
mov edx, dword [0x100cbbc0]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + eax]
add edi, edx
mov dword [ebp - 0x24], eax
xor edx, edx
mov ebx, dword [ebp - 0x10]
div ebx
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov dword [0x100cbbc8], edi
mov eax, edi
cdq
idiv ecx
mov dword [0x100cbbc0], edx
mov dword [0x100cbbb8], 0x1128
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov cl, byte [ecx + edi]
mov byte [0x100cbbc4], cl
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov cl, byte [0x100cbbc4]
mov edx, dword [0x100cbbc0]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov dword [0x100cbbb8], 0x1c9
mov edx, dword [0x100cbbbc]
add edx, 1
mov dword [0x100cbbbc], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x100c1a5c
jmp 0x100c1a11
Function at 0x100c1bb9
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x100cbbbc], 0
mov dword [0x100cbbc0], 0
mov dword [0x100cbbcc], 0
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
jne 0x100c1c16
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov dword [0x100cbbb4], 0x25d2
add ecx, 1
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x100cbbbc], edx
mov ecx, dword [ebp - 0x20]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x30]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x100cbbc0], edx
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x100cbbc4], cl
mov dword [0x100cbbb4], 0x1914
mov edi, dword [ebp - 0x20]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov dword [0x100cbbb4], 0x1987
mov dword [0x100cbbb8], 0x18d0
mov cl, byte [0x100cbbc4]
mov edx, dword [0x100cbbc0]
mov byte [edi + edx], cl
mov edx, dword [0x100cbbbc]
movzx edx, byte [edi + edx]
mov ebx, dword [0x100cbbc0]
movzx ebx, byte [edi + ebx]
add ebx, edx
and ebx, 0xff
mov dword [0x100cbbcc], ebx
mov dword [0x100cbbb4], 0x1f44
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
mov cl, byte [edx + ecx]
xor cl, byte [edi + ebx]
mov ebx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
mov byte [ebx + edx], cl
add edx, 1
mov ecx, dword [ebp - 0x10]
cmp edx, ecx
mov dword [ebp - 0x38], edx
je 0x100c1c0e
mov eax, dword [0x100cbbbc]
mov ecx, dword [0x100cbbc0]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], edx
jmp 0x100c1c16

Function at 0x100c1d12
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [fcn.100c1d12]
mov ecx, dword [0x100cbbb8]
add ecx, 0x1573
mov dword [0x100cbbb8], ecx
mov ecx, dword [0x100cbbb4]
add ecx, 0x7e9
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
jmp 0x100c1d55
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
je 0x100c1d6a
jmp 0x100c1d7a
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
cmp word [eax], 0x5a4d
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
je 0x100c1d44
jmp 0x100c1d7a
mov eax, dword [ebp - 0x10]
mov dword [0x100cbbb4], eax
mov eax, dword [ebp - 0xc]
add esp, 0x10
pop ebp
ret
mov eax, 0x27b1
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffff000
and ecx, 0xfffff000
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
jmp 0x100c1d55
Function at 0x40aa5b
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x41a004]
xor eax, esp
mov dword [esp + 0x38], eax
push esi
mov esi, dword [ebp + 8]
push 0x4074dc
push 0x4074f8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40aa95
push 0x800
call eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0xc]
call fcn.00409cb0
push esi
lea ecx, [esp + 0x24]
call fcn.0040921b
lea ecx, [esp + 0x20]
call fcn.004095c7
mov esi, eax
test esi, esi
jns 0x40aae9
lea ecx, [esp + 8]
call fcn.0040a9d0
test al, al
je 0x40ab33
cmp esi, 0x80040b00
jne 0x40ab33
lea ecx, [esp + 0x20]
call fcn.00409683
mov esi, eax
test esi, esi
js 0x40ab33
mov esi, 0x80040b02
jmp 0x40ab33
cmp dword [esp + 0x1c], 8
lea esi, [esp + 8]
jb 0x40aaf8
mov esi, dword [esp + 8]
push 0x406f80
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40ab2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x40ab24
jle 0x40ab33
movzx esi, si
or esi, 0x80070000
jmp 0x40ab33
mov esi, 0x80004005
jmp 0x40ab33
push dword [ebp + 0x14]
push esi
call eax
mov esi, eax
lea ecx, [esp + 0x20]
call fcn.004092b7
lea ecx, [esp + 8]
call fcn.00409da9
mov ecx, dword [esp + 0x3c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040b187
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4119b0
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x4119eb
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4119d2
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x4119e3
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x4119ed
inc edi
add eax, 0x28
cmp edi, esi
jb 0x4119c8
xor eax, eax
pop edi
pop esi
ret
Function at 0x411fe3
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x412024
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x41201f
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x412009
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x412011
cmp edx, ebx
jne 0x41215f
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x411fe0
add eax, dword [eax + 4]
jmp 0x411fcd
mov dword [ebp + 0xc], ebx
jmp 0x41202f
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x412047
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x412065
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x4120c3
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x4120aa
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4120b3
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x4120bd
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x41209f
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x412029
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x412110
dec eax
je 0x412107
sub eax, 3
je 0x4120fe
mov dword [ebp - 4], 0x40
jmp 0x41212d
mov dword [ebp - 4], 4
jmp 0x412113
mov dword [ebp - 4], 0x20
jmp 0x412113
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x41215f
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x4120df
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00411970
salc
mov cl, 0xc9
mov eax, dword [0x6a1475ff]
add dword [esi - 1], edx
xlatb
mov eax, esi
jmp 0x41216b
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret