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

Disassembly:
sub esp, 0x90
mov eax, dword [0x1010d170]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebx
push ebp
mov ebp, dword [esp + 0xa4]
push esi
xor eax, eax
push edi
mov edi, dword [esp + 0xa4]
mov ebx, ecx
mov dword [esp + 0x14], edx
test ebp, ebp
je 0x10080c1b
mov eax, 1
mov dword [ebx], ebp
jmp 0x10080c1d
mov ebp, dword [ebx]
test edi, edi
je 0x10080cf1
mov eax, dword [ebp + 0x40]
cmp eax, 0x80
jg 0x10080cdd
mov ecx, dword [esp + 0xa8]
cmp eax, ecx
jge 0x10080c84
lea esi, [ebx + 4]
push ebp
push esi
mov eax, edx
call fcn.1002b980
add esp, 8
test eax, eax
je 0x10080d92
mov eax, dword [esp + 0xa8]
mov ecx, dword [esi + 0x14]
push eax
push edi
push esi
call ecx
add esp, 0xc
test eax, eax
je 0x10080d92
lea edi, [ebx + 0x4c]
lea ecx, [ebx + 0x50]
call fcn.1002bbf0
test eax, eax
je 0x10080d92
jmp 0x10080ca6
cmp ecx, 0x80
ja 0x10080cc9
push ecx
lea edx, [ebx + 0x50]
push edi
push edx
call fcn.100b3140
mov eax, dword [esp + 0xb4]
lea edi, [ebx + 0x4c]
add esp, 0xc
mov dword [edi], eax
mov edi, dword [edi]
cmp edi, 0x80
je 0x10080cf9
mov ecx, 0x80
sub ecx, edi
push ecx
lea edx, [edi + ebx + 0x50]
push 0
push edx
call fcn.100b34b0
add esp, 0xc
jmp 0x10080cf9
mov eax, str.len_0__len__int_sizeof_ctx__key_
mov ecx, 0x75
mov edx, str...cryptohmachmac.c
call fcn.10031f90
mov eax, str.j____int_sizeof_ctx__key_
mov ecx, 0x68
mov edx, str...cryptohmachmac.c
call fcn.10031f90
test eax, eax
je 0x10080d7e
xor eax, eax
jmp 0x10080d00
mov cl, byte [ebx + eax + 0x50]
xor cl, 0x36
mov byte [esp + eax + 0x18], cl
inc eax
cmp eax, 0x80
jl 0x10080d00
mov eax, dword [esp + 0x14]
lea esi, [ebx + 0x1c]
push ebp
push esi
call fcn.1002b980
add esp, 8
test eax, eax
je 0x10080d92
mov eax, dword [ebp + 0x40]
push eax
mov eax, dword [esi + 0x14]
lea edx, [esp + 0x1c]
push edx
push esi
call eax
add esp, 0xc
test eax, eax
je 0x10080d92
xor eax, eax
mov cl, byte [ebx + eax + 0x50]
xor cl, 0x5c
mov byte [esp + eax + 0x18], cl
inc eax
cmp eax, 0x80
jl 0x10080d40
mov eax, dword [esp + 0x14]
lea esi, [ebx + 0x34]
push ebp
push esi
call fcn.1002b980
add esp, 8
test eax, eax
je 0x10080d92
mov ebp, dword [ebp + 0x40]
mov eax, dword [esi + 0x14]
push ebp
lea edx, [esp + 0x1c]
push edx
push esi
call eax
add esp, 0xc
test eax, eax
je 0x10080d92
lea ecx, [ebx + 0x1c]
push ecx
add ebx, 4
push ebx
call fcn.1002bc50
add esp, 8
test eax, eax
jne 0x10080d96
xor eax, eax
jmp 0x10080d9b
mov eax, 1
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100ae60d
add esp, 0x90
ret
Function at 0x10095020
Capabilities:
Encode data using base64

Disassembly:
push ebp
push esi
push edi
mov edi, eax
xor ebp, ebp
mov esi, edx
test edi, edi
jle 0x100950f3
cmp edi, 3
movzx edx, byte [esi]
jl 0x1009508f
movzx eax, byte [esi + 1]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 2]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
inc ecx
mov eax, edx
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
jmp 0x100950e1
shl edx, 0x10
cmp edi, 2
jne 0x100950a0
movzx eax, byte [esi + 1]
shl eax, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
cmp edi, 1
jne 0x100950ce
lea edx, [edi + 0x3c]
jmp 0x100950db
shr edx, 6
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
inc ecx
mov byte [ecx], 0x3d
sub edi, 3
inc ecx
add ebp, 4
add esi, 3
test edi, edi
jg 0x10095031
pop edi
pop esi
mov eax, ebp
mov byte [ecx], 0
pop ebp
ret
Function at 0x1009e031
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x1010d170]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x11c], eax
mov esi, ecx
lea eax, [ebp - 0x120]
jne 0x1009e0cf
push 0x100d2fe4
push 4
push eax
call fcn.100b3de6
push eax
call fcn.10003cf0
add esp, 0x10
push ebx
push edi
call fcn.100b2963
mov edi, dword [eax]
call fcn.100b2963
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.100ae892
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.100b2963
cmp dword [eax], ebx
je 0x1009e0e6
call fcn.100b2963
push dword [eax]
call fcn.1009df8c
pop ecx
jmp 0x1009e0ed
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x1009e077
jmp 0x1009e174
call fcn.100b2963
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
je 0x1009e170
cmp dword [ebp - 0x11c], esi
jae 0x1009e170
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x15c]
push ebx
push eax
mov dword [ebp - 0x160], 0x40
call fcn.100b34b0
add esp, 0xc
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x1009e15f
push str.FindActCtxSectionStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x1009e15f
lea ecx, [ebp - 0x160]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x1009e15f
push ebx
push ebx
push esi
jmp 0x1009e168
push ebx
push ebx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x1009e172
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100ae60d
leave
ret

Function at 0x100a0f97
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x100a0fc2
call fcn.100a299e
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 8], eax
test eax, eax
jne 0x100a0fe5
push eax
push dword [esi + 4]
call fcn.100a0f00
push esi
push eax
mov ecx, 0x1010f710
call fcn.100a0b2c
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x100a1a4e
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x100cb428
call fcn.100b3cdc
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.100a1a0e
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.10004420
push dword [esi + 8]
mov edi, dword [edi + 8]
push 0
push 3
push dword [ebp + 0x18]
mov byte [ebp - 4], 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 4], eax
test eax, eax
jne 0x100a1ab4
push eax
push dword [esi + 8]
call fcn.100a0f00
push dword [esi + 0xc]
mov ecx, 0x1010f710
push eax
call fcn.100a0b2c
mov eax, esi
call fcn.100b3db4
ret 0x18

Function at 0x100a88c6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x100a890d
call fcn.100a299e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x100a890d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x100a8929
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.100a8440
mov esi, eax
test edi, edi
je 0x100a8927
test ebx, ebx
je 0x100a8927
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x100ae60d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1010d170]
jne 0x100ae617
repz ret
jmp fcn.100b710a
Function at 0x100c32d1
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.100b7282
and dword [ebp - 4], 0
cmp dword [0x10111f68], 0
mov ebx, eax
jne 0x100c3382
push 0x100d60a0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100c3433
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100d6094
push edi
call esi
test eax, eax
je 0x100c3433
push eax
call fcn.100b7210
mov dword [esp], 0x100d6084
push edi
mov dword [0x10111f68], eax
call esi
push eax
call fcn.100b7210
mov dword [esp], 0x100d6070
push edi
mov dword [0x10111f6c], eax
call esi
push eax
call fcn.100b7210
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10111f70], eax
call esi
push eax
call fcn.100b7210
pop ecx
mov dword [0x10111f78], eax
test eax, eax
je 0x100c3382
push 0x100d603c
push edi
call esi
push eax
call fcn.100b7210
pop ecx
mov dword [0x10111f74], eax
mov eax, dword [0x10111f74]
cmp eax, ebx
je 0x100c33da
cmp dword [0x10111f78], ebx
je 0x100c33da
push eax
call fcn.100b728b
push dword [0x10111f78]
mov esi, eax
call fcn.100b728b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x100c33da
test edi, edi
je 0x100c33da
call esi
test eax, eax
je 0x100c33d1
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100c33d1
test byte [ebp - 0xc], 1
jne 0x100c33da
or dword [ebp + 0x10], 0x200000
jmp 0x100c3413
mov eax, dword [0x10111f6c]
cmp eax, ebx
je 0x100c3413
push eax
call fcn.100b728b
pop ecx
test eax, eax
je 0x100c3413
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x100c3413
mov eax, dword [0x10111f70]
cmp eax, ebx
je 0x100c3413
push eax
call fcn.100b728b
pop ecx
test eax, eax
je 0x100c3413
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10111f68]
call fcn.100b728b
pop ecx
test eax, eax
je 0x100c3433
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100c3435
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408c50
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x408dda
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1f8]
call fcn.004021dc
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00402164
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
invalid
invalid
Function at 0x40f2c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.0040e376
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040e32b
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.0040e366
in eax, 0x56
cmp eax, 0x10468
add byte [ebp - 0x12b7b], cl
call dword [eax - 1]
xchg ebp, eax
sub al, 0xfc
invalid
Function at 0x422a50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x15000]
push edi
jmp 0x422a6a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x422a71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x422a60
mov eax, 1
add ebx, ebx
jne 0x422a83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x422a78
jne 0x422a94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x422a78
xor ecx, ecx
sub eax, 3
jb 0x422aa8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x422b1a
mov ebp, eax
add ebx, ebx
jne 0x422ab3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x422ac0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x422ae4
inc ecx
add ebx, ebx
jne 0x422ad0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x422ac5
jne 0x422ae1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x422ac5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x422b04
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x422af5
jmp 0x422a66
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x422b04
add edi, ecx
jmp 0x422a66
pop esi
mov edi, esi
mov ecx, 0x547
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x422b22
cmp byte [edi], 7
jne 0x422b22
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 0x422b27
lea edi, [esi + 0x1f000]
mov eax, dword [edi]
or eax, eax
je 0x422b96
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x22c50]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x22cd8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x422b54
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x22ce0]
or eax, eax
je 0x422b90
mov dword [ebx], eax
add ebx, 4
jmp 0x422b71
call dword [esi + 0x22cdc]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x422bc7
cmp al, 0xef
ja 0x422bba
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x422b9c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x422ba9
mov ebp, dword [esi + 0x22ce4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x422bfb
sub esp, 0xffffff80
jmp 0x403213
Function at 0x408913
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
cmp edi, dword [esi*8 + 0x40d3c0]
je 0x408939
inc esi
cmp esi, 0x17
mov dword [ebp - 4], esi
jb 0x408927
cmp esi, 0x17
jae 0x408a93
push 3
call fcn.0040a2f2
cmp eax, 1
pop ecx
je 0x408a5d
push 3
call fcn.0040a2f2
test eax, eax
pop ecx
jne 0x40896c
cmp dword [0x40dd78], 1
je 0x408a5d
cmp edi, 0xfc
je 0x408a93
push 0x4019ec
mov edi, 0x314
push edi
mov esi, 0x40e368
push esi
call fcn.00407b44
add esp, 0xc
test eax, eax
je 0x4089a2
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00408adb
add esp, 0x14
mov byte [0x40e485], bl
push 0x104
mov ebx, 0x40e381
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4089e5
push 0x4019d4
push 0x2fb
push ebx
call fcn.00407b44
add esp, 0xc
test eax, eax
je 0x4089e5
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00408adb
add esp, 0x14
push ebx
push edi
push esi
call fcn.0040a279
add esp, 0xc
xor ebx, ebx
test eax, eax
je 0x408a03
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00408adb
add esp, 0x14
push 0x4019d0
push edi
push esi
call fcn.0040a279
add esp, 0xc
test eax, eax
je 0x408a23
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00408adb
add esp, 0x14
mov eax, dword [ebp - 4]
push dword [eax*8 + 0x40d3c4]
push edi
push esi
call fcn.0040a279
add esp, 0xc
test eax, eax
je 0x408a48
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00408adb
add esp, 0x14
push 0x12010
push 0x4019a8
push esi
call fcn.0040a0d4
add esp, 0xc
jmp 0x408a93
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, ebx
je 0x408a93
cmp edi, 0xffffffff
je 0x408a93
mov edx, dword [esi*8 + 0x40d3c4]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408a7c
push ebx
lea eax, [ebp - 8]
push eax
sub ecx, esi
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a0d4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004053ab
xor ebx, ebx
cmp dword [0x40e71c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40a1ab
push 0x402284
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x40a116
xor eax, eax
jmp 0x40a26f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402278
push edi
call esi
cmp eax, ebx
je 0x40a10f
push eax
call fcn.00405340
mov dword [esp], 0x402268
push edi
mov dword [0x40e71c], eax
call esi
push eax
call fcn.00405340
mov dword [esp], 0x402254
push edi
mov dword [0x40e720], eax
call esi
push eax
call fcn.00405340
mov dword [0x40e724], eax
lea eax, [ebp - 8]
push eax
call fcn.004050e3
test eax, eax
pop ecx
pop ecx
je 0x40a179
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00408adb
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40a1ab
push 0x402238
push edi
call esi
push eax
call fcn.00405340
cmp eax, ebx
pop ecx
mov dword [0x40e72c], eax
je 0x40a1ab
push 0x402220
push edi
call esi
push eax
call fcn.00405340
pop ecx
mov dword [0x40e728], eax
mov eax, dword [0x40e728]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40a224
cmp dword [0x40e72c], esi
je 0x40a224
push eax
call fcn.004053b9
pop ecx
call eax
cmp eax, ebx
je 0x40a1f1
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x40e72c]
call fcn.004053b9
pop ecx
call eax
test eax, eax
je 0x40a1f1
test byte [ebp - 0x18], 1
jne 0x40a224
lea eax, [ebp - 0xc]
push eax
call fcn.00405124
test eax, eax
pop ecx
je 0x40a20c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00408adb
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40a21b
or dword [ebp + 0x10], 0x200000
jmp 0x40a255
or dword [ebp + 0x10], 0x40000
jmp 0x40a255
mov eax, dword [0x40e720]
cmp eax, esi
je 0x40a255
push eax
call fcn.004053b9
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40a255
mov eax, dword [0x40e724]
cmp eax, esi
je 0x40a255
push dword [ebp - 4]
push eax
call fcn.004053b9
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x40e71c]
call fcn.004053b9
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b27e
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x40d0fc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
xor edi, edi
push eax
mov dword [ebp - 0xc], edi
call fcn.004050e3
test eax, eax
pop ecx
je 0x40b2b3
push edi
push edi
push edi
push edi
push edi
call fcn.00408adb
add esp, 0x14
push 4
pop eax
call fcn.0040b6b0
mov dword [ebp - 0x14], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40b3c1
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x58]
dec esi
neg esi
sbb esi, esi
and esi, 0x103
inc esi
cmp dword [ebp - 0xc], 2
mov dword [ebp - 8], edi
jne 0x40b33a
push 0x401a64
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, edi
je 0x40b33a
push 0x402c08
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x40b33a
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 0x10], edi
call eax
cmp eax, 1
jne 0x40b33a
mov eax, dword [ebp - 0x10]
cmp eax, edi
jbe 0x40b33a
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea edi, [ebx - 1]
push edi
push dword [ebp - 8]
call fcn.00405e79
add esp, 0xc
test eax, eax
jl 0x40b3c1
not edi
and dword [ebp - 8], edi
je 0x40b36c
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 8]
call fcn.00405e79
add esp, 0xc
test eax, eax
jl 0x40b3c1
lea eax, [ebx + ebx]
cmp dword [ebp - 8], eax
jae 0x40b377
mov dword [ebp - 8], eax
lea edi, [ebx - 1]
not edi
and edi, dword [ebp - 0x14]
sub edi, dword [ebp - 8]
cmp dword [ebp - 0xc], 1
jne 0x40b38b
push 0x11
pop ebx
mov eax, dword [ebp - 0x18]
add ebx, eax
cmp edi, ebx
jb 0x40b3c1
push 4
push 0x1000
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x40b3c1
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40b3c1
xor eax, eax
inc eax
jmp 0x40b3c3
xor eax, eax
lea esp, [ebp - 0x68]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404312
leave
ret
Function at 0x40150b
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xa4
mov dword [ebp - 0x88], 0
call fcn.0040144f
test eax, eax
jne 0x4015a5
lea eax, [ebp - 0x8c]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], eax
mov eax, 0x40203e
sub eax, 0x4015dc
mov dword [esp], 0x4015dc
mov dword [esp + 4], eax
mov dword [ebp - 0x8c], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x4015a5
lea ebx, [ebp - 0x88]
mov dword [esp], 0
call fcn.0040133e
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.004013c2
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1b600
mov dword [esp], 0x40300c
call fcn.00401d41
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
jmp fcn.00401219