joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1759210
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xdd5000]
push edi
or ebp, 0xffffffff
jmp 0x1759232
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1759239
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1759228
mov eax, 1
add ebx, ebx
jne 0x175924b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x175925c
jne 0x175927b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x175927b
dec eax
add ebx, ebx
jne 0x1759268
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1759240
add ebx, ebx
jne 0x1759277
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x17592cd
xor ecx, ecx
sub eax, 3
jb 0x1759293
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1759302
sar eax, 1
mov ebp, eax
jmp 0x175929e
add ebx, ebx
jne 0x175929e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x175926c
inc ecx
add ebx, ebx
jne 0x17592ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x175926c
add ebx, ebx
jne 0x17592b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x17592ae
jne 0x17592ca
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x17592ae
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x17592ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x17592de
jmp 0x175922e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x17592ec
add edi, ecx
jmp 0x175922e
pop esi
mov edi, esi
mov ecx, 0xa977
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x175930a
cmp byte [edi], 0x23
jne 0x175930a
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 0x175930f
lea edi, [esi + 0x1355000]
mov eax, dword [edi]
or eax, eax
je 0x175937e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1366b1c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1366c54]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x175933c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1366c5c]
or eax, eax
je 0x1759378
mov dword [ebx], eax
add ebx, 4
jmp 0x1759359
call dword [esi + 0x1366c58]
mov ebp, dword [esi + 0x1366c60]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x17593b2
sub esp, 0xffffff80
jmp 0x6447bc
Function at 0x401058
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x445060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x234], edx
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov ebx, 0x22c
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x401116
mov dword [ebp - 0x230], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x4010ff
mov ecx, 0x426640
lea eax, [ebp - 0x20c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4010dd
test dx, dx
je 0x4010d9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4010dd
add eax, 4
add ecx, 4
test dx, dx
jne 0x4010b7
xor eax, eax
jmp 0x4010e2
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4010f5
mov ecx, dword [ebp - 0x234]
inc edi
mov eax, dword [ebp - 0x218]
mov dword [ecx], eax
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push esi
call ebx
test eax, eax
jne 0x4010ac
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c1f3
mov esp, ebp
pop ebp
ret

Function at 0x401127
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa28
mov eax, dword [0x445060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push edi
push 0x208
push eax
mov word [ebp - 0x420], ax
mov esi, edx
lea eax, [ebp - 0x41e]
mov edi, ecx
push eax
call fcn.00413ea0
add esp, 0xc
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4011a6
lea eax, [ebp - 0xa28]
push eax
push 4
lea eax, [ebp - 0xa24]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x4011a6
push 0x105
lea eax, [ebp - 0x420]
push eax
push 0
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
mov ecx, 0x100
lea eax, [ebp - 0x820]
push ecx
push eax
push ecx
lea eax, [ebp - 0x620]
push eax
push ecx
lea eax, [ebp - 0xa20]
push eax
push 3
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.0040cb8d
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x620]
push eax
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 0xff
lea eax, [ebp - 0x213]
mov byte [ebp - 0x214], 0
push 0
push eax
call fcn.00413ea0
add esp, 0x40
mov byte [ebp - 0x114], 0
lea eax, [ebp - 0x113]
push 0x104
push 0
push eax
call fcn.00413ea0
lea edx, [ebp - 0x114]
lea ecx, [ebp - 0x420]
call fcn.0040a501
lea edx, [ebp - 0x214]
lea ecx, [ebp - 0x620]
call fcn.0040a501
lea eax, [ebp - 0x114]
push eax
call fcn.00401f22
add esp, 0x10
mov ecx, ebx
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00401ea9
lea eax, [ebp - 0x214]
mov ecx, edi
push eax
call fcn.00401f3f
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c1f3
mov esp, ebp
pop ebp
ret
Function at 0x402cb1
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
test eax, eax
je 0x402dec
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x402dec
mov esi, dword [ebp + 0x10]
lea ecx, [edi - 3]
xor ebx, ebx
mov dword [ebp - 4], ecx
xor edx, edx
test ecx, ecx
js 0x402d5e
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
add eax, 0xfffffffc
mov dword [ebp - 8], eax
cmp edx, eax
jg 0x402d58
movzx ecx, byte [ebx + edi]
movzx eax, byte [ebx + edi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + edi + 2]
shl ecx, 8
add ebx, 3
or ecx, eax
mov eax, ecx
shr ecx, 6
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + esi + 3], al
mov eax, ecx
and eax, 0x3f
shr ecx, 6
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + esi + 2], al
mov eax, ecx
and eax, 0x3f
shr ecx, 6
and ecx, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + esi + 1], al
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + esi], al
add edx, 4
mov eax, dword [ebp - 8]
cmp ebx, dword [ebp - 4]
jle 0x402cec
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
cmp edi, ebx
jne 0x402d72
mov ecx, dword [ebp + 0x14]
dec ecx
cmp edx, ecx
jge 0x402d6e
mov byte [edx + esi], 0
mov eax, edx
jmp 0x402dee
sub edi, ebx
cmp edi, 1
jne 0x402d91
movzx ecx, byte [ebx + eax]
mov eax, ecx
mov word [edx + esi + 2], 0x3d3d
and eax, 3
shl eax, 4
shr ecx, 2
jmp 0x402dc4
cmp edi, 2
jne 0x402dec
movzx ecx, byte [ebx + eax]
movzx eax, byte [ebx + eax + 1]
shl ecx, 8
or ecx, eax
mov byte [edx + esi + 3], 0x3d
mov eax, ecx
shr ecx, 4
and eax, 0xf
mov al, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + esi + 2], al
mov eax, ecx
and eax, 0x3f
shr ecx, 6
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and ecx, 0x3f
mov byte [edx + esi + 1], al
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ecx, dword [ebp + 0x14]
mov byte [edx + esi], al
dec ecx
lea eax, [edx + 4]
cmp eax, ecx
jge 0x402dee
mov byte [edx + esi + 4], 0
jmp 0x402dee
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402e40
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 0xc
push ebx
push esi
push edi
test edx, edx
je 0x402f2b
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x402f2b
xor ecx, ecx
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
xor esi, esi
test eax, eax
jle 0x402ee0
mov eax, dword [ebp + 0x14]
add eax, 0xfffffffe
mov dword [ebp - 0xc], eax
cmp edi, eax
jge 0x402ee0
mov al, byte [ecx + edx]
push eax
mov dword [ebp - 8], eax
call sym.FBAs.exe_private:_static_int___cdecl_Base64::IndexOfTAB_unsigned_char_
pop ecx
cmp eax, 0x3f
jg 0x402ec0
or ebx, eax
inc esi
mov eax, esi
and eax, 0x80000003
jns 0x402e9e
dec eax
or eax, 0xfffffffc
inc eax
jne 0x402ebb
mov ecx, dword [ebp + 0x10]
mov eax, ebx
shr eax, 8
mov byte [edi + ecx + 2], bl
shr ebx, 0x10
mov byte [edi + ecx], bl
mov byte [edi + ecx + 1], al
add edi, 3
xor ebx, ebx
shl ebx, 6
jmp 0x402ec6
cmp byte [ebp - 8], 0x3d
je 0x402eda
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
inc ecx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
cmp ecx, dword [ebp + 0xc]
jl 0x402e77
jmp 0x402ee0
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
and esi, 0x80000003
jns 0x402eed
dec esi
or esi, 0xfffffffc
inc esi
sub esi, 0
je 0x402f27
dec esi
je 0x402f2b
dec esi
je 0x402f12
dec esi
jne 0x402f2b
mov ecx, dword [ebp + 0x10]
mov eax, ebx
shr eax, 8
shr ebx, 0x10
mov byte [edi + ecx + 1], al
lea eax, [edi + 2]
mov byte [edi + ecx], bl
jmp 0x402f2d
cmp byte [ecx + edx + 1], 0x3d
jne 0x402f2b
mov ecx, dword [ebp + 0x10]
lea eax, [edi + 1]
shr ebx, 0xa
mov byte [edi + ecx], bl
jmp 0x402f2d
mov eax, edi
jmp 0x402f2d
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40359c
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4202f2
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2078
call fcn.0041d320
mov eax, dword [0x445060]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x207c], esi
xor eax, eax
mov word [ebp - 0x2018], ax
push 0x1ffe
xor edi, edi
push edi
lea eax, [ebp - 0x2016]
push eax
call fcn.00413ea0
add esp, 0xc
mov dword [ebp - 0x2080], 0x1000
mov dword [ebp - 0x2074], edi
mov dword [ebp - 4], edi
wait
mov dword [ebp - 0x2078], 4
push edi
lea eax, [ebp - 0x2078]
push eax
lea eax, [ebp - 0x206c]
push eax
push 0x20000013
push dword [esi + 0x70]
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
call edi
test eax, eax
jne 0x40366e
push str.HttpQueryInfo
lea ecx, [ebp - 0x2030]
call fcn.00401f3f
lea eax, [ebp - 0x2030]
push eax
lea ecx, [ebp - 0x2048]
call fcn.00408924
push 0x429298
lea eax, [ebp - 0x2048]
push eax
call fcn.0040f3c8
cmp dword [ebp - 0x206c], 0xc8
je 0x403683
or eax, 0xffffffff
wait
jmp 0x403729
lea eax, [ebp - 0x2074]
push eax
lea eax, [ebp - 0x2080]
push eax
lea eax, [ebp - 0x2018]
push eax
push 5
push dword [esi + 0x70]
call edi
test eax, eax
jne 0x4036d2
push str.HttpQueryInfo
lea ecx, [ebp - 0x2030]
call fcn.00401f3f
lea eax, [ebp - 0x2030]
push eax
lea ecx, [ebp - 0x2060]
call fcn.00408924
push 0x429298
lea eax, [ebp - 0x2060]
jmp 0x403668
lea eax, [ebp - 0x2018]
push eax
call fcn.0040d44b
pop ecx
fstp qword [ebp - 0x2070]
cvttsd2si eax, qword [ebp - 0x2070]
mov dword [ebp - 0x2084], eax
wait
or dword [ebp - 4], 0xffffffff
jmp 0x403729
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040c1f3
mov esp, ebp
pop ebp
ret
Function at 0x4038db
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420342
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x10b8
call fcn.0041d320
mov eax, dword [0x445060]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x10bc], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.00403745
mov edi, eax
mov dword [ebp - 0x10c0], edi
cmp edi, 0xffffffff
jne 0x403963
push str.openOutFile
lea ecx, [ebp - 0x1038]
call fcn.00401f3f
lea eax, [ebp - 0x1038]
push eax
lea ecx, [ebp - 0x1050]
call fcn.00408924
push 0x429298
lea eax, [ebp - 0x1050]
push eax
call fcn.0040f3c8
mov ecx, esi
call fcn.0040359c
mov dword [esi + 0x48], eax
cmp eax, 0xffffffff
jne 0x4039a1
push str.getHttpFileSize
lea ecx, [ebp - 0x1038]
call fcn.00401f3f
lea eax, [ebp - 0x1038]
push eax
lea ecx, [ebp - 0x1068]
call fcn.00408924
push 0x429298
lea eax, [ebp - 0x1068]
jmp 0x40395d
mov byte [ebp - 0x1020], bl
push 0x1000
push ebx
lea eax, [ebp - 0x101f]
push eax
call fcn.00413ea0
add esp, 0xc
mov dword [ebp - 0x10b8], ebx
lea eax, [ebp - 0x10b4]
push eax
push 0x1000
lea eax, [ebp - 0x1020]
push eax
push dword [esi + 0x70]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x403a14
push 0x426bc4
lea ecx, [ebp - 0x1038]
call fcn.00401f3f
lea eax, [ebp - 0x1038]
push eax
lea ecx, [ebp - 0x1098]
call fcn.00408924
push 0x429298
lea eax, [ebp - 0x1098]
jmp 0x40395d
mov eax, dword [ebp - 0x10b4]
test eax, eax
jne 0x403a67
cmp edi, dword [esi + 0x48]
je 0x403a55
push str.Download_file_error_
lea ecx, [ebp - 0x1038]
call fcn.00401f3f
lea eax, [ebp - 0x1038]
push eax
lea ecx, [ebp - 0x10b0]
call fcn.00408924
push 0x429298
lea eax, [ebp - 0x10b0]
jmp 0x40395d
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00403b28
mov al, 1
jmp 0x403b0c
cmp eax, 0x1001
jae 0x403ad8
mov byte [ebp + eax - 0x1020], 0
push 0
lea ecx, [ebp - 0x10c8]
push ecx
push eax
lea eax, [ebp - 0x1020]
push eax
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x403ac6
push 0x426bf0
lea ecx, [ebp - 0x1038]
call fcn.00401f3f
lea eax, [ebp - 0x1038]
push eax
lea ecx, [ebp - 0x1080]
call fcn.00408924
push 0x429298
lea eax, [ebp - 0x1080]
jmp 0x40395d
add edi, dword [ebp - 0x10b4]
mov dword [ebp - 0x10c0], edi
inc ebx
jmp 0x4039bc
call fcn.0040d60f
mov ecx, dword [ebp - 0x10bc]
add ecx, 0xbc
cmp ecx, dword [ebp - 0x10c4]
je 0x403b00
push 0xffffffffffffffff
push 0
push dword [ebp - 0x10c4]
call fcn.004021fa
mov eax, 0x403b06
ret
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040c1f3
mov esp, ebp
pop ebp
ret
Function at 0x408749
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x445060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
sub esp, 0x18
mov dword [0x4484c8], 0x67452301
mov edi, ecx
mov dword [0x4484c4], 0xefcdab89
lea eax, [ebp + 8]
mov dword [ebp - 0xb0], edi
mov ecx, esp
mov dword [0x4484c0], 0x98badcfe
push eax
mov dword [0x4484bc], 0x10325476
call fcn.0040228e
call fcn.004085c6
mov ebx, dword [0x4484cc]
add esp, 0x18
shr ebx, 4
mov dword [ebp - 0xac], eax
test ebx, ebx
je 0x4087e2
push 0x10
pop ecx
mov esi, eax
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x48]
call fcn.004084d9
mov eax, dword [ebp - 0xac]
add eax, 0x40
mov dword [ebp - 0xac], eax
dec ebx
jne 0x4087b8
mov edi, dword [ebp - 0xb0]
mov edx, dword [0x4484c4]
lea ecx, [ebp - 0x60]
call fcn.00408674
mov edx, dword [0x4484c8]
lea ecx, [ebp - 0x90]
mov esi, eax
call fcn.00408674
push 0xffffffffffffffff
xor ebx, ebx
mov ecx, eax
push ebx
push esi
call fcn.00401d57
mov edx, dword [0x4484c0]
lea ecx, [ebp - 0x78]
mov esi, eax
call fcn.00408674
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
call fcn.00401d57
mov edx, dword [0x4484bc]
lea ecx, [ebp - 0xa8]
mov esi, eax
call fcn.00408674
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
call fcn.00401d57
push eax
mov ecx, edi
call fcn.0040228e
xor esi, esi
lea ecx, [ebp - 0x90]
push ebx
inc esi
push esi
call fcn.00402153
push ebx
push esi
lea ecx, [ebp - 0x60]
call fcn.00402153
push ebx
push esi
lea ecx, [ebp - 0x78]
call fcn.00402153
push ebx
push esi
lea ecx, [ebp - 0xa8]
call fcn.00402153
push ebx
push esi
lea ecx, [ebp + 8]
call fcn.00402153
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c1f3
mov esp, ebp
pop ebp
ret
Function at 0x408c8a
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
mov eax, dword [0x445060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0xe0
lea eax, [ebp - 0xe7]
mov byte [ebp - 0xe8], 0
push 0
push eax
mov esi, ecx
call fcn.00413ea0
add esp, 0xc
lea eax, [ebp - 0xe8]
push 0xe1
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x408cd8
xor eax, eax
jmp 0x408d12
lea eax, [ebp - 0xe8]
push eax
call fcn.00401f22
pop ecx
push eax
lea eax, [ebp - 0xe8]
mov ecx, esi
push eax
call fcn.00401ea9
lea eax, [ebp - 0xe8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x408cd4
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040c1f3
mov esp, ebp
pop ebp
ret
Function at 0x4094d7
Capabilities:
Create process on windows
Terminate process

Disassembly:
push 0x300
push 0x428bd0
call fcn.00420230
mov esi, ecx
mov dword [ebp - 0x268], 0xf
xor ebx, ebx
mov dword [ebp - 0x26c], ebx
mov byte [ebp - 0x27c], bl
lea edx, [ebp - 0x27c]
lea ecx, [ebp - 0x24c]
call fcn.0040a57e
push ebx
push 1
lea ecx, [ebp - 0x24c]
call fcn.00402153
push str.FBAs01.exe
lea edx, [ebp - 0x27c]
lea ecx, [ebp - 0x24c]
call fcn.00401c2d
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x40953e
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x294]
call fcn.00401f3f
push ebx
push 1
lea ecx, [ebp - 0x24c]
call fcn.00402153
xor eax, eax
mov word [ebp - 0x234], ax
push 0x208
push ebx
lea eax, [ebp - 0x232]
push eax
call fcn.00413ea0
add esp, 0xc
lea ecx, [ebp - 0x294]
cmp dword [ebp - 0x280], 0x10
cmovae ecx, dword [ebp - 0x294]
lea edx, [ebp - 0x234]
call fcn.0040a52c
xor eax, eax
lea edi, [ebp - 0x244]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esi + 0x48]
push eax
mov ecx, 0x4270dc
push ecx
lea eax, [esi + 0x18]
push eax
push ecx
push esi
push ecx
lea edx, [esi + 0x30]
lea ecx, [ebp - 0x2f4]
call fcn.00401c2d
pop ecx
mov edx, eax
lea ecx, [ebp - 0x2c4]
call fcn.004082ae
pop ecx
mov edx, eax
lea ecx, [ebp - 0x30c]
call fcn.00408283
pop ecx
mov edx, eax
lea ecx, [ebp - 0x2dc]
call fcn.004082ae
pop ecx
mov edx, eax
lea ecx, [ebp - 0x2ac]
call fcn.00408283
pop ecx
mov edx, eax
lea ecx, [ebp - 0x264]
call fcn.004082ae
pop ecx
push ebx
xor esi, esi
inc esi
push esi
lea ecx, [ebp - 0x2ac]
call fcn.00402153
push ebx
push esi
lea ecx, [ebp - 0x2dc]
call fcn.00402153
push ebx
push esi
lea ecx, [ebp - 0x30c]
call fcn.00402153
push ebx
push esi
lea ecx, [ebp - 0x2c4]
call fcn.00402153
push ebx
push esi
lea ecx, [ebp - 0x2f4]
call fcn.00402153
mov eax, dword [ebp - 0x254]
inc eax
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040c015
mov edi, eax
mov dword [ebp - 0x310], edi
mov ecx, dword [ebp - 0x254]
lea ecx, [ecx*2 + 2]
push ecx
push ebx
push edi
call fcn.00413ea0
add esp, 0x10
lea ecx, [ebp - 0x264]
cmp dword [ebp - 0x250], 0x10
cmovae ecx, dword [ebp - 0x264]
mov edx, edi
call fcn.0040a52c
mov dword [ebp - 4], ebx
push ebx
push ebx
push edi
lea eax, [ebp - 0x234]
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 4], 0xfffffffe
call 0x4096d0
push ebx
call fcn.0040e062
xor ebx, ebx
mov edi, dword [ebp - 0x310]
push dword [ebp - 0x244]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x240]
call esi
push edi
call fcn.0040c8a4
pop ecx
ret
Function at 0x40a6c6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x445060]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x2c], edx
cmp dword [eax + 0x14], 0x10
push edi
jb 0x40a6e9
mov eax, dword [eax]
cmp dword [ecx + 0x14], 0x10
jb 0x40a6f1
mov ecx, dword [ecx]
push eax
push ecx
call fcn.0040e2e5
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x40a779
push edi
call fcn.0040e8dd
push eax
call fcn.0040e076
mov dword [ebp - 0x24], eax
lea esi, [eax + 1]
push esi
call fcn.0040c015
push esi
mov esi, eax
mov dword [ebp - 0x28], eax
push ebx
push esi
call fcn.00413ea0
push edi
push dword [ebp - 0x24]
push 1
push esi
call fcn.0040e4bf
mov ecx, dword [ebp - 0x24]
add esp, 0x28
cmp ecx, eax
jne 0x40a76b
push ecx
push esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x20], bl
call fcn.00401ea9
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x20]
push eax
call fcn.00401b7b
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.00402153
mov bl, 1
push esi
call fcn.0040c8a4
push edi
call fcn.0040eb48
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c1f3
mov esp, ebp
pop ebp
ret

Function at 0x40a78c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x445060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor bl, bl
mov esi, edx
cmp dword [ecx + 0x14], 0x10
push edi
jb 0x40a7ab
mov ecx, dword [ecx]
push 0x4271a8
push ecx
call fcn.0040e2e5
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x40a814
push 0x426bfa
lea ecx, [ebp - 0x1c]
call fcn.00401f3f
lea eax, [ebp - 0x1c]
cmp eax, esi
je 0x40a7de
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.004021fa
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
push edi
cmovae eax, dword [ebp - 0x1c]
xor esi, esi
push dword [ebp - 0xc]
inc esi
push esi
push eax
call fcn.0040ea5a
cmp eax, dword [ebp - 0xc]
movzx ebx, bl
push edi
cmove ebx, esi
call fcn.0040eb48
add esp, 0x14
lea ecx, [ebp - 0x1c]
push 0
push esi
call fcn.00402153
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c1f3
mov esp, ebp
pop ebp
ret
Function at 0x40af4f
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x445060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x31
lea eax, [ebp - 0x37]
mov byte [ebp - 0x38], 0
push 0
push eax
mov ebx, ecx
call fcn.00413ea0
add esp, 0xc
lea eax, [ebp - 0x240]
xor esi, esi
push 0x208
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x244]
mov dword [ebp - 0x244], esi
push eax
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x24c], eax
test eax, eax
je 0x40b04c
push edi
push eax
push 2
mov dword [ebp - 0x248], esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
lea eax, [ebp - 0x240]
push esi
push dword [ebp - 0x24c]
push dword [ebp - 0x244]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x250]
push eax
push 0x4275a8
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov eax, dword [ebp - 0x250]
mov si, word [eax + 0x12]
mov dx, word [eax + 0x10]
mov cx, word [eax + 0x16]
mov ax, word [eax + 0x14]
movzx eax, ax
push eax
movzx eax, cx
push eax
movzx eax, dx
push eax
movzx eax, si
push eax
lea eax, [ebp - 0x38]
push str._d._d._d._d
push eax
call fcn.0040dc3c
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
lea eax, [ebp - 0x38]
mov ecx, ebx
push eax
call fcn.00401f3f
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c1f3
mov esp, ebp
pop ebp
ret