joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008996
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0xfffffffffffffff6
xor edi, edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov eax, dword [ebp - 0x14]
and eax, 0xfffffff9
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
and eax, 0xffff7fff
push edi
cmp eax, 2
lea eax, [ebp - 0x10]
push eax
push 1
je 0x1008a3a
lea eax, [ebp - 1]
push eax
push dword [ebp - 8]
call ebx
cmp dword [ebp - 0x10], edi
je 0x1008a31
cmp eax, edi
je 0x1008a31
push 1
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push edi
call fcn.0100c35a
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp word [ebp - 0xc], 0xd
jne 0x1008a47
push edi
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 8]
call ebx
jmp 0x1008a47
mov dword [ebp - 0xc], 0xa
jmp 0x1008a47
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
mov edx, dword [ebp - 0xc]
movzx ecx, dx
mov eax, ecx
sub eax, 3
je 0x1008af3
sub eax, 5
je 0x1008a9f
dec eax
dec eax
je 0x1008ac8
sub eax, 3
je 0x1008ac8
mov eax, dword [ebp + 0xc]
dec eax
cmp esi, eax
jae 0x10089d3
mov eax, dword [ebp + 8]
mov word [eax + esi*2], dx
inc esi
cmp dword [ebp + 0x10], edi
je 0x10089d3
xor eax, eax
mov ax, word [0x1026ed0]
push ecx
push 0x10014d4
push eax
call fcn.01007d8e
add esp, 0xc
jmp 0x10089d3
cmp esi, edi
jbe 0x10089d3
mov eax, dword [ebp + 8]
mov word [eax + esi*2], di
dec esi
cmp dword [ebp + 0x10], edi
je 0x10089d3
push 8
push 8
push 0x10014fc
call fcn.0100bf33
jmp 0x1008a97
xor eax, eax
mov ax, word [0x1026ed0]
push 0x1001380
push eax
call fcn.01007d8e
pop ecx
pop ecx
push dword [ebp - 0x14]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
cmp esi, dword [ebp + 0xc]
jbe 0x1008b0a
push 0x7a
pop eax
jmp 0x1008b13
call fcn.01006d66
push dword [ebp - 0x14]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
push edi
call fcn.0100becc
mov eax, dword [ebp + 8]
mov word [eax + esi*2], di
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1009244
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x10253cc]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x14], 0x2f
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov esi, dword [ebp + 0xc]
and dword [ebp - 0x82c], 0
and dword [ebp - 0x828], 0
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x24], 0x3a
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, 0x400
push edi
lea eax, [ebp - 0x824]
push eax
push 0x21
push edi
call ebx
test eax, eax
jle 0x10092b8
lea eax, [ebp - 0x824]
push eax
call fcn.0100bafe
pop ecx
mov dword [ebp - 0x82c], eax
push 8
lea eax, [ebp - 0x824]
push eax
push 0x1e
push edi
call ebx
test eax, eax
jle 0x10092dc
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0100b525
pop ecx
pop ecx
push 8
lea eax, [ebp - 0x824]
push eax
push 0x1d
push edi
call ebx
test eax, eax
jle 0x1009300
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0100b525
pop ecx
pop ecx
mov ax, word [esi + 2]
test ax, ax
mov edi, dword [ebp + 8]
je 0x1009370
mov ecx, dword [ebp - 0x82c]
sub ecx, 0
je 0x1009347
dec ecx
je 0x1009332
dec ecx
jne 0x1009370
movzx ecx, word [esi + 6]
push ecx
movzx eax, ax
lea ecx, [ebp - 0x14]
push ecx
push eax
mov eax, ecx
push eax
movzx eax, word [esi]
jmp 0x100935b
movzx ecx, word [esi]
push ecx
movzx eax, ax
lea ecx, [ebp - 0x14]
push ecx
push eax
mov eax, ecx
push eax
movzx eax, word [esi + 6]
jmp 0x100935b
movzx ecx, word [esi]
push ecx
lea ecx, [ebp - 0x14]
push ecx
movzx ecx, word [esi + 6]
push ecx
lea ecx, [ebp - 0x14]
push ecx
movzx eax, ax
push eax
push 0x1001570
push edi
call fcn.01007d8e
add esp, 0x1c
mov dword [ebp - 0x828], eax
movzx eax, word [esi + 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
movzx eax, word [esi + 0xa]
push eax
lea eax, [ebp - 0x24]
push eax
movzx eax, word [esi + 8]
push eax
push 0x1001534
push edi
call fcn.01007d8e
mov ecx, dword [ebp - 4]
add eax, dword [ebp - 0x828]
add esp, 0x1c
pop edi
pop esi
pop ebx
call fcn.0100ae9f
leave
ret 8
Function at 0x100afe6
Capabilities:
Parse pe header

Disassembly:
push 0x18
push 0x1001790
call fcn.0100bb10
mov edi, 0x94
mov eax, edi
call fcn.0100b6c0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esi + 0x10]
mov dword [0x1026070], eax
mov ecx, dword [esi + 4]
mov dword [0x102607c], ecx
mov edx, dword [esi + 8]
mov dword [0x1026080], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x1026074], esi
cmp eax, 2
je 0x100b046
or esi, 0x8000
mov dword [0x1026074], esi
shl ecx, 8
add ecx, edx
mov dword [0x1026078], ecx
cmp word [0x1000000], 0x5a4d
jne 0x100b084
mov eax, dword [0x100003c]
cmp dword [eax + 0x1000000], 0x4550
jne 0x100b084
movzx ecx, word [eax + 0x1000018]
cmp ecx, 0x10b
je 0x100b09d
cmp ecx, 0x20b
je 0x100b08a
and dword [ebp - 0x1c], 0
jmp 0x100b0b4
cmp dword [eax + 0x1000084], 0xe
jbe 0x100b084
xor ecx, ecx
cmp dword [eax + 0x10000f8], ecx
jmp 0x100b0ae
cmp dword [eax + 0x1000074], 0xe
jbe 0x100b084
xor ecx, ecx
cmp dword [eax + 0x10000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
push 0
call fcn.0100cfaf
pop ecx
test eax, eax
jne 0x100b0e1
cmp dword [0x1026054], 2
je 0x100b0ce
call fcn.0100c6fc
push 0x1c
call fcn.0100c50f
push 0xff
call fcn.0100bd92
pop ecx
pop ecx
and dword [ebp - 4], 0
call fcn.0100cddf
test eax, eax
jge 0x100b0f6
push 0x1b
call fcn.0100afb7
pop ecx
call fcn.0100cd2f
mov dword [0x1028290], eax
call fcn.0100cb90
mov dword [0x1026050], eax
call fcn.0100caf3
test eax, eax
jge 0x100b11b
push 8
call fcn.0100afb7
pop ecx
call fcn.0100c8b2
test eax, eax
jge 0x100b12c
push 9
call fcn.0100afb7
pop ecx
call fcn.0100bdec
mov dword [ebp - 0x24], eax
test eax, eax
je 0x100b13f
push eax
call fcn.0100afb7
pop ecx
mov eax, dword [0x1026098]
mov dword [0x102609c], eax
push eax
push dword [0x102608c]
push dword [0x1026084]
call fcn.0100a85d
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], 0
jne 0x100b16f
push esi
call fcn.0100becc
call fcn.0100bf04
jmp 0x100b1a1
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.0100bb4b
ret
Function at 0x100c50f
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x10253cc]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x10254e8]
je 0x100c539
inc eax
cmp eax, 0x12
jb 0x100c52a
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x10254e8]
mov dword [ebp - 0x110], esi
jne 0x100c6e4
mov eax, dword [0x1026054]
cmp eax, 1
je 0x100c6b2
test eax, eax
jne 0x100c56f
cmp dword [0x10253d4], 1
je 0x100c6b2
cmp ecx, 0xfc
je 0x100c6e4
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
mov byte [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100c5aa
push 5
pop ecx
mov esi, 0x1001b84
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebx, [ebp - 0x10c]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100c5b5
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x100c5ed
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100c5cd
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x1001b80
push ebx
call fcn.010106b0
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100c5f2
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 0x10254ec]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100c60c
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.0100b6c0
mov edx, esp
push 6
pop ecx
mov esi, 0x1001b64
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100c638
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100c644
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100c65d
mov eax, dword [ebp - 0x110]
mov esi, 0x1001b60
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x10254ec]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100c67b
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100c687
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1001b38
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.010105ac
add esp, 0xc
jmp 0x100c6e4
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x100c6e4
mov esi, dword [esi + 0x10254ec]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x100c6c9
push 0
sub ecx, edx
lea edx, [ebp - 0x114]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x120]
mov ecx, dword [ebp - 4]
call fcn.0100ae9f
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100cb90
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10262cc]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
cmp eax, ebx
push 2
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
pop edi
jne 0x100cbe3
call esi
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100cbca
mov dword [0x10262cc], 1
jmp 0x100cbe8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x100cbde
mov eax, edi
mov dword [0x10262cc], eax
jmp 0x100cbe3
mov eax, dword [0x10262cc]
cmp eax, 1
jne 0x100cc4f
cmp dword [ebp - 4], ebx
jne 0x100cbfd
call esi
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x100cbfd
xor eax, eax
jmp 0x100cd0e
mov ecx, dword [ebp - 4]
cmp word [ecx], bx
mov eax, ecx
je 0x100cc15
add eax, edi
cmp word [eax], bx
jne 0x100cc07
add eax, edi
cmp word [eax], bx
jne 0x100cc07
sub eax, ecx
add eax, edi
mov esi, eax
push esi
call fcn.0100de69
cmp eax, ebx
pop ecx
jne 0x100cc36
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
jmp 0x100cd0e
mov ecx, esi
mov esi, dword [ebp - 4]
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebx, eax
jmp 0x100cc26
cmp eax, edi
je 0x100cc57
cmp eax, ebx
jne 0x100cbf6
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x100cbf6
cmp byte [esi], bl
je 0x100cc9c
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x100cbf6
add dword [ebp - 8], eax
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100cc88
sub eax, edi
lea esi, [esi + eax + 1]
cmp byte [esi], bl
jne 0x100cc6a
mov esi, dword [ebp - 4]
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add eax, eax
push eax
call fcn.0100de69
cmp eax, ebx
pop ecx
mov dword [ebp - 0xc], eax
jne 0x100ccb5
push esi
jmp 0x100cd1f
mov edi, esi
mov esi, eax
mov eax, dword [ebp - 4]
cmp byte [eax], bl
je 0x100ccff
mov ecx, dword [ebp - 8]
mov eax, esi
sub eax, dword [ebp - 0xc]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x100cd13
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100cce3
sub eax, edx
push esi
lea edi, [edi + eax + 1]
call fcn.0100b244
cmp byte [edi], bl
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x100ccc0
push dword [ebp - 4]
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 0xc]
call fcn.0100dc95
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x100cbf6
Function at 0x100cd2f
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x10262d0]
test eax, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x100cd73
call esi
test eax, eax
je 0x100cd58
mov dword [0x10262d0], 1
jmp 0x100cd78
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x100cd6f
mov dword [0x10262d0], 2
jmp 0x100cd81
xor eax, eax
jmp 0x100cdd7
cmp eax, 1
jne 0x100cd7c
call esi
jmp 0x100cdd7
cmp eax, 2
jne 0x100cd6f
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push eax
push 1
push 0
mov dword [ebp - 8], eax
call esi
mov edi, eax
test edi, edi
je 0x100cdd4
lea eax, [edi + edi]
push eax
call fcn.0100de69
test eax, eax
pop ecx
mov dword [ebp - 4], eax
je 0x100cdd4
push edi
push eax
push 0xffffffffffffffff
push dword [ebp - 8]
push 1
push 0
call esi
test eax, eax
je 0x100cdcb
mov eax, dword [ebp - 4]
jmp 0x100cdd6
push dword [ebp - 4]
call fcn.0100dc95
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x100de85
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 4
pop eax
call fcn.0100b6c0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100deeb
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x1026070]
mov esi, dword [ebp - 0x40]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
lea edx, [esi - 1]
and ecx, 0x103
not edx
and edx, ebx
inc ecx
sub edx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffff1
add eax, 0x11
imul eax, esi
add eax, edi
cmp edx, eax
jae 0x100deef
xor eax, eax
jmp 0x100defc
lea eax, [ebp - 4]
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100e8d6
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x100e907
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x100e90e
cmp ebx, dword [ebp + 8]
jae 0x100e90e
xor eax, eax
jmp 0x100eafe
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x100e91f
xor eax, eax
inc eax
jmp 0x100eafd
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x100e935
cmp ecx, edx
jae 0x100ea7a
cmp dword [eax + 4], 0
je 0x100e93e
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x100e926
cmp dword [ebp + 8], 0
je 0x100e960
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x100ea7a
cmp eax, esi
jae 0x100ea7a
mov eax, dword [0x1026328]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x100e985
cmp dword [esi*4 + 0x1026330], edi
je 0x100ea7e
inc esi
cmp esi, eax
jl 0x100e973
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100eafa
cmp dword [ebp - 8], 0x1000000
jne 0x100eafa
test byte [ebp - 0xc], 0xcc
je 0x100ea03
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x100eafa
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x100eafa
cmp word [eax + 0x18], 0x10b
jne 0x100eafa
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x100eafa
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x100ea03
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x100ea03
test byte [ecx + 0x27], 0x80
jne 0x100ea7a
push 1
push 0x1026370
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x100e917
mov ecx, dword [0x1026328]
test ecx, ecx
mov edx, ecx
jle 0x100ea37
lea eax, [ecx*4 + 0x102632c]
cmp dword [eax], edi
je 0x100ea37
dec edx
sub eax, 4
test edx, edx
jg 0x100ea2b
test edx, edx
jne 0x100ea68
push 0xf
pop ebx
cmp ecx, ebx
jg 0x100ea44
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x100ea5c
lea eax, [edx*4 + 0x1026330]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x100ea4a
cmp ecx, 0x10
jge 0x100ea68
inc ecx
mov dword [0x1026328], ecx
push 0
push 0x1026370
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x100e917
xor eax, eax
jmp 0x100eafd
test esi, esi
jle 0x100e917
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x1026370
call ebx
test eax, eax
jne 0x100e917
cmp dword [esi*4 + 0x1026330], edi
je 0x100ead4
mov eax, dword [0x1026328]
lea esi, [eax - 1]
test esi, esi
jl 0x100eac2
cmp dword [esi*4 + 0x1026330], edi
je 0x100eabe
dec esi
jns 0x100eab2
test esi, esi
jge 0x100ead2
cmp eax, 0x10
jge 0x100eacd
inc eax
mov dword [0x1026328], eax
lea esi, [eax - 1]
jmp 0x100ead4
je 0x100eaec
xor ecx, ecx
test esi, esi
jl 0x100eaec
lea eax, [ecx*4 + 0x1026330]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x100eada
push 0
push 0x1026370
call ebx
jmp 0x100e917
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10105ac
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1026388], ebx
push esi
push edi
jne 0x101062e
push 0x1001da0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1010669
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001d94
push edi
call esi
test eax, eax
mov dword [0x1026388], eax
je 0x1010669
push 0x1001d84
push edi
call esi
push 0x1001d70
push edi
mov dword [0x102638c], eax
call esi
cmp dword [0x1026070], 2
mov dword [0x1026390], eax
jne 0x101062e
push 0x1001d54
push edi
call esi
test eax, eax
mov dword [0x1026398], eax
je 0x101062e
push 0x1001d3c
push edi
call esi
mov dword [0x1026394], eax
mov eax, dword [0x1026394]
test eax, eax
je 0x1010673
call eax
test eax, eax
je 0x101065a
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1026398]
test eax, eax
je 0x101065a
test byte [ebp - 8], 1
jne 0x1010673
cmp dword [0x102607c], 4
jb 0x101066d
or byte [ebp + 0x12], 0x20
jmp 0x1010692
xor eax, eax
jmp 0x10106a2
or byte [ebp + 0x12], 4
jmp 0x1010692
mov eax, dword [0x102638c]
test eax, eax
je 0x1010692
call eax
mov ebx, eax
test ebx, ebx
je 0x1010692
mov eax, dword [0x1026390]
test eax, eax
je 0x1010692
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1026388]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10113a0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x1027f34]
mov eax, dword [0x10253cc]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x41c], edi
jae 0x1011586
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x1027f40]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x424], ebx
je 0x1011586
and dword [ebp - 0x414], 0
and dword [ebp - 0x420], 0
cmp dword [ebp + 0x10], 0
jne 0x1011411
xor eax, eax
jmp 0x101159a
test al, 0x20
je 0x1011424
push 2
push 0
push 0
push ecx
call fcn.0101419e
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x10114e4
and dword [ebp - 0x40c], 0
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0x410], edi
jbe 0x1011560
mov ecx, dword [ebp - 0x410]
xor edi, edi
sub ecx, dword [ebp - 0x41c]
lea eax, [ebp - 0x408]
cmp ecx, dword [ebp + 0x10]
jae 0x1011493
mov edx, dword [ebp - 0x410]
inc dword [ebp - 0x410]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x1011481
inc dword [ebp - 0x420]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x424]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x101145d
mov edi, eax
lea eax, [ebp - 0x408]
sub edi, eax
push 0
lea eax, [ebp - 0x418]
push eax
push edi
lea eax, [ebp - 0x408]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1011512
mov eax, dword [ebp - 0x418]
add dword [ebp - 0x414], eax
cmp eax, edi
jl 0x101151e
mov eax, dword [ebp - 0x410]
sub eax, dword [ebp - 0x41c]
cmp eax, dword [ebp + 0x10]
jb 0x1011449
jmp 0x101151e
push 0
lea ecx, [ebp - 0x418]
push ecx
push dword [ebp + 0x10]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1011512
mov eax, dword [ebp - 0x418]
and dword [ebp - 0x40c], 0
mov dword [ebp - 0x414], eax
jmp 0x101151e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x414]
test eax, eax
jne 0x101157e
cmp dword [ebp - 0x40c], eax
je 0x101155a
push 5
pop eax
cmp dword [ebp - 0x40c], eax
jne 0x101154c
mov dword [0x1026064], 9
mov dword [0x1026068], eax
jmp 0x1011597
push dword [ebp - 0x40c]
call fcn.010139b4
pop ecx
jmp 0x1011597
mov edi, dword [ebp - 0x41c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x1011572
cmp byte [edi], 0x1a
je 0x101140a
mov dword [0x1026064], 0x1c
jmp 0x1011590
sub eax, dword [ebp - 0x420]
jmp 0x101159a
mov dword [0x1026064], 9
and dword [0x1026068], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100ae9f
leave
ret