joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000537f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x1000538e
pop dword [ebp - 0x3c]
mov eax, 0x3fb2ca00
add eax, 0xd04d898e
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x1177eb9e
add dword [ebp - 0x4c], 0x3cda59ad
mov dword [ebp - 0x48], 0xece51dfa
add dword [ebp - 0x48], 0x454e2e4b
mov dword [ebp - 0x44], 0xdf59e289
sub dword [ebp - 0x44], 0x930d9e5b
mov dword [ebp - 0x40], 0xd1cb6251
add dword [ebp - 0x40], 0x2e349daf
lea eax, [ebp - 0x4c]
push eax
mov eax, 0xcd781c3f
sub eax, 0xbd780be7
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x5e64c1b4
sub dword [ebp - 0x4c], 0xe9f2585e
mov dword [ebp - 0x48], 0x27beba19
add dword [ebp - 0x48], 0x19ada75c
mov dword [ebp - 0x44], 0xd9a4bd0d
sub dword [ebp - 0x44], 0x763550a1
mov dword [ebp - 0x40], 0x6cf81a73
add dword [ebp - 0x40], 0x9307e58d
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0x3650e9c8
add eax, 0xd9af2640
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x3ab78
push 0
call eax
mov ecx, 0x1e2bea0c
sub ecx, 0x1e2b9a02
mov ebx, eax
mov esi, 0x8ac72311
sub esi, 0x7ac50111
add esi, dword [ebp - 0x3c]
mov edi, 0x9c5832a8
sub edi, 0xc90f0a9a
add dword [ebp - 0x24], esi
mov edx, dword [esi]
sub edx, edi
xor dword [ebp - 0x18], edx
mov dword [ebx], edx
mov dword [ebp - 0x1c], 0x2e0a41d0
add ebx, 4
add esi, 4
loop 0x100054b0
add eax, 0xdcffefba
sub eax, 0xdcfebcbf
xor ebx, ebx
add ebx, eax
add eax, 0x8b2e4a43
sub eax, 0x8b2e4a3e
mov ecx, 0x90dd4728
add ecx, 0x7f22b8d8
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x1000cdef
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100024d0]
jne 0x1000d4b4
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x10011e48], eax
mov dword [0x10011e44], ecx
mov dword [0x10011e40], edx
mov dword [0x10011e3c], ebx
mov dword [0x10011e38], esi
mov dword [0x10011e34], edi
mov word [0x10011e60], ss
mov word [0x10011e54], cs
mov word [0x10011e30], ds
mov word [0x10011e2c], es
mov word [0x10011e28], fs
mov word [0x10011e24], gs
pushfd
pop dword [0x10011e58]
mov eax, dword [ebp]
mov dword [0x10011e4c], eax
mov eax, dword [ebp + 4]
mov dword [0x10011e50], eax
lea eax, [ebp + 8]
mov dword [0x10011e5c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x10011d98], 0x10001
mov eax, dword [0x10011e50]
mov dword [0x10011d4c], eax
mov dword [0x10011d40], 0xc0000409
mov dword [0x10011d44], 1
mov eax, dword [0x100024d0]
mov dword [ebp - 0x328], eax
mov eax, dword [0x10011c40]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x10011d90], eax
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x100024e0
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x10011d90], 0
jne 0x1000d5a0
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x409760
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x408015
lea edi, [esi - 0x7015]
push edi
or ebp, 0xffffffff
jmp 0x409782
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x409789
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x409778
mov eax, 1
add ebx, ebx
jne 0x40979b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x409790
jne 0x4097ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x409790
xor ecx, ecx
sub eax, 3
jb 0x4097c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x409832
mov ebp, eax
add ebx, ebx
jne 0x4097cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4097d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4097fc
inc ecx
add ebx, ebx
jne 0x4097e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4097dd
jne 0x4097f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4097dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40981c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40980d
jmp 0x40977e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40981c
add edi, ecx
jmp 0x40977e
pop esi
mov edi, esi
mov ecx, 0x52
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40983a
cmp byte [edi], 0
jne 0x40983a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40983f
lea edi, [esi + 0x7000]
mov eax, dword [edi]
or eax, eax
je 0x4098ae
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x92c0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x92fc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40986c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x9304]
or eax, eax
je 0x4098a8
mov dword [ebx], eax
add ebx, 4
jmp 0x409889
call dword [esi + 0x9300]
mov ebp, dword [esi + 0x9308]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4098e2
sub esp, 0xffffff80
jmp section.UPX0

Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d
Function at 0x10006807
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x10006816
pop dword [ebp - 0x2c]
mov eax, 0x9f809c2e
add eax, 0x707fcbe8
sub dword [ebp - 0x2c], eax
push 0x40
push 0x1000
push 0x389a6
push 0
mov eax, 0xdafa99fc
add eax, 0x3506c744
add eax, dword [ebp - 0x2c]
call dword [eax]
mov ecx, 0x1abce939
add ecx, 0xe543598e
xor edx, edx
add edx, eax
mov ebx, 0xb6dbd54d
sub ebx, 0xa6d9914d
add ebx, dword [ebp - 0x2c]
mov esi, 0x4faa7f55
add dword [ebp - 0x20], edi
mov edi, dword [ebx]
sub dword [ebp - 0x24], edi
xor edi, esi
mov dword [edx], edi
mov dword [ebp - 0x10], 0xee421595
add edx, 0x8f0197e3
add edx, 0x70fe6821
add ebx, 0xf0b6d980
add ebx, 0xf492684
loop 0x10006871
add eax, 0x887fdf08
add eax, 0x77811ee7
mov ebx, eax
add eax, 0x7c577f2f
sub eax, 0x7c577f2a
mov ecx, 0x6a907dc0
add ecx, 0xa56f8240
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x1001bea
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
push 1
push 0x30
push dword [ebp + 0xc]
call fcn.01001ba5
mov esi, eax
test esi, esi
je 0x1001c3a
cmp word [esi], 0
je 0x1001c3a
push 0
dec esi
push 0x20
dec esi
push esi
call fcn.01001ba5
push dword [ebp + 8]
mov edi, eax
sub eax, esi
push 0x100115c
sar eax, 1
push eax
push esi
call fcn.01002219
add esp, 0x10
cmp eax, 1
jne 0x1001c3a
mov eax, edi
pop edi
pop esi
pop ebp
ret 8
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1001ccb
Capabilities:
Accept command line arguments
Create thread
Terminate process

Disassembly:
push 0x40
push 0x1001168
call fcn.01002254
mov eax, dword [0x1008004]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x44], 8
mov dword [ebp - 0x48], 0x401
mov ebx, 0x100114c
mov esi, ebx
lea edi, [ebp - 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, ebx
lea edi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor edi, edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x4c], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
push 0x2f
push esi
call fcn.01001ba5
mov esi, eax
cmp esi, edi
je 0x1001e55
mov ax, word [esi]
cmp ax, di
je 0x1001e55
movzx eax, ax
cmp eax, 0x43
je 0x1001d7b
cmp eax, 0x49
je 0x1001d76
cmp eax, 0x4d
je 0x1001d72
cmp eax, 0x53
je 0x1001d6e
cmp eax, 0x58
jne 0x1001e55
add esi, 2
push esi
lea eax, [ebp - 0x48]
push eax
call fcn.01001bea
jmp 0x1001d88
or dword [ebp - 0x44], 2
inc esi
inc esi
jmp 0x1001d8a
lea eax, [ebp - 0x2c]
jmp 0x1001d7e
lea eax, [ebp - 0x3c]
add esi, 2
push esi
push eax
call fcn.01001c48
mov esi, eax
cmp esi, edi
je 0x1001d93
cmp word [esi], di
jne 0x1001d1f
push dword [ebp - 0x44]
push edi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jge 0x1001da8
push 2
jmp 0x1001e57
mov dword [ebp - 4], edi
push edi
push edi
push edi
push 0x1001ca9
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x50], eax
cmp eax, edi
jne 0x1001dca
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x1001da1
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x48]
push edi
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x1001de9
cmp dword [ebp - 0x40], edi
jne 0x1001df8
push 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
lea edx, [ebp - 0x4c]
push edx
push ebx
push eax
call dword [ecx]
test eax, eax
jl 0x1001e18
push 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x1001e3f
or dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x1c]
call fcn.01001ed6
call fcn.0100228f
ret 0x10
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1001ed6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1008004]
jne 0x1001ee7
test ecx, 0xffff0000
jne 0x1001ee7
ret
jmp fcn.01001ef1
Function at 0x100254f
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp ecx, dword [esi*8 + 0x1008010]
je 0x1002571
inc esi
cmp esi, 0x13
mov dword [ebp - 4], esi
jb 0x100255f
cmp esi, 0x13
je 0x10026ad
mov eax, dword [0x10088a4]
cmp eax, 1
push ebx
je 0x100267c
test eax, eax
jne 0x100259a
cmp dword [0x100800c], 1
je 0x100267c
cmp ecx, 0xfc
je 0x10026ac
push edi
push 6
pop ecx
mov esi, 0x1001510
mov edi, 0x10088f8
rep movsd dword es:[edi], dword [esi]
push 0x104
mov ebx, 0x1008912
push ebx
movsw word es:[edi], word [esi]
push 0
mov byte [0x1008a16], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10025e8
push 5
pop ecx
mov esi, 0x10014f8
mov edi, 0x1008912
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10025ed
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x1002620
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002601
sub eax, edx
push 3
lea eax, [eax + 0x10088d7]
push 0x10014f4
push eax
call fcn.010043b0
add esp, 0xc
mov edx, 0x10088f8
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1002628
mov eax, dword [ebp - 4]
mov eax, dword [eax*8 + 0x1008014]
mov esi, 0x10014f0
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002644
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1002650
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x10014c8
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.010042ab
add esp, 0xc
pop edi
jmp 0x10026ac
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x10026ac
mov edx, dword [esi*8 + 0x1008014]
mov ecx, edx
lea esi, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x1002694
push 0
sub ecx, esi
lea esi, [ebp - 8]
push esi
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
pop esi
leave
ret
Function at 0x1002b8f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1008e24]
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 0x1002be2
call esi
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1002bc9
mov dword [0x1008e24], 1
jmp 0x1002be7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1002bdd
mov eax, edi
mov dword [0x1008e24], eax
jmp 0x1002be2
mov eax, dword [0x1008e24]
cmp eax, 1
jne 0x1002c4e
cmp dword [ebp - 4], ebx
jne 0x1002bfc
call esi
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x1002bfc
xor eax, eax
jmp 0x1002d0b
mov ecx, dword [ebp - 4]
cmp word [ecx], bx
mov eax, ecx
je 0x1002c14
add eax, edi
cmp word [eax], bx
jne 0x1002c06
add eax, edi
cmp word [eax], bx
jne 0x1002c06
sub eax, ecx
add eax, edi
mov esi, eax
mov ecx, esi
call fcn.0100453f
cmp eax, ebx
jne 0x1002c35
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
jmp 0x1002d0b
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 0x1002c25
cmp eax, edi
je 0x1002c56
cmp eax, ebx
jne 0x1002bf5
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x1002bf5
cmp byte [esi], bl
je 0x1002c9b
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x1002bf5
add dword [ebp - 8], eax
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1002c87
sub eax, edi
lea esi, [esi + eax + 1]
cmp byte [esi], bl
jne 0x1002c69
mov esi, dword [ebp - 4]
inc dword [ebp - 8]
mov ecx, dword [ebp - 8]
add ecx, ecx
call fcn.0100453f
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x1002cb2
push esi
jmp 0x1002d1c
mov edi, esi
mov esi, eax
mov eax, dword [ebp - 4]
cmp byte [eax], bl
je 0x1002cfc
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 0x1002d10
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1002ce0
sub eax, edx
push esi
lea edi, [edi + eax + 1]
call fcn.010045c9
cmp byte [edi], bl
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x1002cbd
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.010044d9
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x1002bf5
Function at 0x1002d2c
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x1008e28]
test eax, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x1002d70
call esi
test eax, eax
je 0x1002d55
mov dword [0x1008e28], 1
jmp 0x1002d75
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1002d6c
mov dword [0x1008e28], 2
jmp 0x1002d7e
xor eax, eax
jmp 0x1002dd2
cmp eax, 1
jne 0x1002d79
call esi
jmp 0x1002dd2
cmp eax, 2
jne 0x1002d6c
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 0x1002dcf
lea ecx, [edi + edi]
call fcn.0100453f
test eax, eax
mov dword [ebp - 4], eax
je 0x1002dcf
push edi
push eax
push 0xffffffffffffffff
push dword [ebp - 8]
push 1
push 0
call esi
test eax, eax
je 0x1002dc6
mov eax, dword [ebp - 4]
jmp 0x1002dd1
push dword [ebp - 4]
call fcn.010044d9
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x100407a
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 0x10040ab
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 0x10040b2
cmp ebx, dword [ebp + 8]
jae 0x10040b2
xor eax, eax
jmp 0x10042a2
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x10040c3
xor eax, eax
inc eax
jmp 0x10042a1
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x10040d9
cmp ecx, edx
jae 0x100421e
cmp dword [eax + 4], 0
je 0x10040e2
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x10040ca
cmp dword [ebp + 8], 0
je 0x1004104
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x100421e
cmp eax, esi
jae 0x100421e
mov eax, dword [0x1008e30]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x1004129
cmp dword [esi*4 + 0x1008e38], edi
je 0x1004222
inc esi
cmp esi, eax
jl 0x1004117
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100429e
cmp dword [ebp - 8], 0x1000000
jne 0x100429e
test byte [ebp - 0xc], 0xcc
je 0x10041a7
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x100429e
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x100429e
cmp word [eax + 0x18], 0x10b
jne 0x100429e
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x100429e
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x10041a7
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x10041a7
test byte [ecx + 0x27], 0x80
jne 0x100421e
push 1
push 0x1008e78
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x10040bb
mov ecx, dword [0x1008e30]
test ecx, ecx
mov edx, ecx
jle 0x10041db
lea eax, [ecx*4 + 0x1008e34]
cmp dword [eax], edi
je 0x10041db
dec edx
sub eax, 4
test edx, edx
jg 0x10041cf
test edx, edx
jne 0x100420c
push 0xf
pop ebx
cmp ecx, ebx
jg 0x10041e8
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x1004200
lea eax, [edx*4 + 0x1008e38]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x10041ee
cmp ecx, 0x10
jge 0x100420c
inc ecx
mov dword [0x1008e30], ecx
push 0
push 0x1008e78
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x10040bb
xor eax, eax
jmp 0x10042a1
test esi, esi
jle 0x10040bb
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x1008e78
call ebx
test eax, eax
jne 0x10040bb
cmp dword [esi*4 + 0x1008e38], edi
je 0x1004278
mov eax, dword [0x1008e30]
lea esi, [eax - 1]
test esi, esi
jl 0x1004266
cmp dword [esi*4 + 0x1008e38], edi
je 0x1004262
dec esi
jns 0x1004256
test esi, esi
jge 0x1004276
cmp eax, 0x10
jge 0x1004271
inc eax
mov dword [0x1008e30], eax
lea esi, [eax - 1]
jmp 0x1004278
je 0x1004290
xor ecx, ecx
test esi, esi
jl 0x1004290
lea eax, [ecx*4 + 0x1008e38]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x100427e
push 0
push 0x1008e78
call ebx
jmp 0x10040bb
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10042ab
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 [0x1008e7c], ebx
push esi
push edi
jne 0x100432d
push 0x10015a0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1004368
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001594
push edi
call esi
test eax, eax
mov dword [0x1008e7c], eax
je 0x1004368
push 0x1001584
push edi
call esi
push 0x1001570
push edi
mov dword [0x1008e80], eax
call esi
cmp dword [0x10088b4], 2
mov dword [0x1008e84], eax
jne 0x100432d
push 0x1001554
push edi
call esi
test eax, eax
mov dword [0x1008e8c], eax
je 0x100432d
push 0x100153c
push edi
call esi
mov dword [0x1008e88], eax
mov eax, dword [0x1008e88]
test eax, eax
je 0x1004372
call eax
test eax, eax
je 0x1004359
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1008e8c]
test eax, eax
je 0x1004359
test byte [ebp - 8], 1
jne 0x1004372
cmp dword [0x10088c0], 4
jb 0x100436c
or byte [ebp + 0x12], 0x20
jmp 0x1004391
xor eax, eax
jmp 0x10043a1
or byte [ebp + 0x12], 4
jmp 0x1004391
mov eax, dword [0x1008e80]
test eax, eax
je 0x1004391
call eax
mov ebx, eax
test ebx, ebx
je 0x1004391
mov eax, dword [0x1008e84]
test eax, eax
je 0x1004391
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1008e7c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1006000
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
push 4
pop eax
call fcn.01006350
mov dword [ebp - 8], esp
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10060fc
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0x4c]
xor esi, esi
cmp dword [0x10088b4], 2
jne 0x1006081
push 0x1001af4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, esi
je 0x1006081
push 0x1001adc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x1006081
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], esi
call eax
cmp eax, 1
pop ecx
jne 0x1006081
cmp dword [ebp - 4], esi
jbe 0x1006081
mov esi, dword [ebp - 4]
mov edx, dword [0x10088b4]
mov ebx, edx
dec ebx
neg ebx
sbb ebx, ebx
and ebx, 0x103
lea ecx, [edi - 1]
lea eax, [esi + edi - 1]
not ecx
inc ebx
and eax, ecx
mov dword [ebp - 4], eax
je 0x10060aa
add eax, edi
mov dword [ebp - 4], eax
lea ecx, [edi + edi]
cmp eax, ecx
jae 0x10060b6
mov dword [ebp - 4], ecx
mov eax, ecx
lea esi, [edi - 1]
not esi
and esi, dword [ebp - 8]
sub esi, eax
cmp edx, 1
jne 0x10060c8
push 0x11
pop edi
mov ecx, dword [ebp - 0xc]
add edi, ecx
cmp esi, edi
jb 0x10060fc
push 4
push 0x1000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x10060fc
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10060fc
xor eax, eax
inc eax
jmp 0x10060fe
xor eax, eax
lea esp, [ebp - 0x5c]
pop edi
pop esi
pop ebx
leave
ret