joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404490
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x14]
push ebx
push ebp
xor ecx, ecx
mov ebp, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0
mov cx, word [eax + 0x14]
cmp word [eax + 6], 0
lea ebx, [ecx + eax + 0x18]
jbe 0x404573
push esi
push edi
add ebx, 0x10
cmp dword [ebx], 0
jne 0x404509
mov edx, dword [esp + 0x20]
mov esi, dword [edx + 0x38]
test esi, esi
jle 0x404551
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebx - 4]
push 4
push 0x1000
add eax, ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx - 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x404551
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call esi
mov ecx, dword [ebx - 4]
mov eax, dword [ebx]
push 4
push 0x1000
add ecx, ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0
mov ebp, eax
call esi
mov esi, dword [ebx + 4]
mov edx, dword [esp + 0x1c]
mov ecx, dword [ebx]
add esi, edx
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx - 8], ebp
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
inc eax
add ebx, 0x28
mov edx, dword [ecx]
xor ecx, ecx
mov dword [esp + 0x10], eax
mov cx, word [edx + 6]
cmp eax, ecx
jl 0x4044c4
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x404840
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, 0x8ca
and eax, 0xff
push ebx
cdq
idiv ecx
push ebp
mov ebp, dword [esp + 0x10]
mov ebx, edx
add bl, 0x58
test ebp, ebp
jbe 0x40489e
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call edi
mov al, byte [esi]
push 0
add al, bl
mov byte [esi], al
call edi
mov cl, byte [esi]
push 0
xor cl, bl
mov byte [esi], cl
call edi
mov dl, byte [esi]
push 0
add dl, bl
mov byte [esi], dl
call edi
mov al, byte [esi]
push 0
xor al, bl
mov byte [esi], al
call edi
inc esi
dec ebp
jne 0x40486c
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4048b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0xc
mov al, 0x73
push ebx
push ebp
mov byte [esp + 0x11], al
mov byte [esp + 0x12], al
push esi
lea eax, [esp + 0xc]
push edi
push eax
push str.KERNEL32.dll
mov byte [esp + 0x18], 0x45
mov byte [esp + 0x19], 0x78
mov byte [esp + 0x1a], 0x69
mov byte [esp + 0x1b], 0x74
mov byte [esp + 0x1c], 0x50
mov byte [esp + 0x1d], 0x72
mov byte [esp + 0x1e], 0x6f
mov byte [esp + 0x1f], 0x63
mov byte [esp + 0x20], 0x65
mov byte [esp + 0x23], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x7cf
push 0xa000
push 0x40b170
mov ebp, eax
call fcn.00404840
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0xc
push 0
call esi
push 0x40b170
call fcn.00404320
add esp, 4
mov ebx, eax
push 0
call esi
test ebx, ebx
je 0x40498a
mov ecx, dword [esp + 0x20]
push ecx
push ebx
call fcn.00404290
add esp, 8
test eax, eax
jne 0x404967
push ebx
call fcn.004041c0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
sub esp, 0x34c
mov ecx, 0xd3
mov esi, 0x415178
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call eax
push ebx
call fcn.004041c0
add esp, 4
push 0
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x700cd52
Capabilities:
Set current directory

Disassembly:
push 4
mov eax, 0x7010fd1
call fcn.07001bfd
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call fcn.0700cf67
xor ebx, ebx
mov dword [edi], vtable.FileSharedStream.0
mov dword [edi + 0xc], ebx
mov byte [edi + 0x10], bl
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
lea eax, [edi + 0x18]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0700d518
lea ecx, [ebp + 8]
call fcn.0700ccf6
mov eax, dword [edi + 0x14]
mov esi, dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
mov byte [ebp - 4], 2
push dword [eax + 0x14]
call esi
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x700cdc1
mov eax, dword [eax + 0x14]
jmp 0x700cdc6
mov eax, 0x701221a
push 0x7013b90
push eax
call dword [sym.imp.MSVCR120.dll_fopen]
mov dword [edi + 0xc], eax
pop ecx
pop ecx
test eax, eax
jne 0x700cde6
push str.file_does_not_exist
push ebx
call fcn.07002edb
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp + 8]
mov dword [edi + 8], eax
mov byte [ebp - 4], 1
call esi
push dword [ebp + 8]
mov ecx, 0x701a094
call fcn.07002edb
mov eax, edi
call fcn.07001d82
ret 4

Function at 0x700d620
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
je 0x700d684
cmp byte [esi + 0x10], 0
je 0x700d640
push dword [esi + 0xc]
call dword [sym.imp.MSVCR120.dll_fflush]
pop ecx
mov byte [esi + 0x10], 0
push edi
push dword [esi + 0xc]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [sym.imp.MSVCR120.dll_fread]
push dword [esi + 0xc]
mov edi, eax
call dword [sym.imp.MSVCR120.dll_ferror]
add esp, 0x14
test eax, eax
je 0x700d672
push dword [esi + 0xc]
call dword [sym.imp.MSVCR120.dll_feof]
pop ecx
test eax, eax
je 0x700d68b
push dword [esi + 0xc]
call dword [sym.imp.MSVCR120.dll_ftell]
pop ecx
mov dword [esi + 8], eax
mov eax, edi
pop edi
jmp 0x700d686
xor eax, eax
pop esi
pop ebp
ret 8
push str.stream_read_error
push 0
call fcn.07002edb
int3

Function at 0x700d8f2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
cmp byte [eax + 8], 0
jne 0x700d945
cmp dword [esi + 0xc], 0
je 0x700d940
push dword [esi + 0xc]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [sym.imp.MSVCR120.dll_fwrite]
push dword [esi + 0xc]
mov byte [esi + 0x10], 1
call dword [sym.imp.MSVCR120.dll_ferror]
add esp, 0x14
test eax, eax
je 0x700d933
push str.stream_write_error
jmp 0x700d94a
push dword [esi + 0xc]
call dword [sym.imp.MSVCR120.dll_ftell]
pop ecx
mov dword [esi + 8], eax
pop esi
pop ebp
ret 8
push str.Attempt_to_write_read_only_stream
push 0
call fcn.07002edb
int3
Function at 0x100ec115
Capabilities:
Resolve function by parsing pe exports

Disassembly:
lea esp, [esp + 0x44]
je 0x101ac59f
movsx edx, bl
push 0xee58a23a
jmp 0x10100486
sar si, cl
mov esi, dword [eax + 0x3c]
and dh, bh
not edx
not edx
xor dx, 0xfc8c
add esi, eax
lea edx, [ebx*2 - 0x1523241e]
bt ebp, 0xc
dec edx
mov edx, dword [esi + 0x78]
test si, ax
jmp 0x101a6dcd
call 0x101a7589
add byte [eax], al
inc edi
je 0x101a6e1d
outsb dx, byte [esi]
jbe 0x101a6e44
jb 0x101a6e4c
outsb dx, byte [esi]
insd dword es:[edi], dx
outsb dx, byte gs:[esi]
je 0x101a6e39
popal
jb 0x101a6e4f
popal
bound ebp, qword [ebp + 0x41]
add dh, al
add al, 0x24
pop eax
xchg esp, eax
pushal
pop eax
add byte [eax], al
hlt
leave

Function at 0x100edbda
Capabilities:
Encrypt data using rc4 prga

Disassembly:
call fcn.101004be
add byte [eax], al
inc edi
je 0x100edbf3
jne 0x100edc24
jb 0x100edc19
outsb dx, byte [esi]
je 0x100edc07
jb 0x100edc28
arpl word [ebp + 0x73], sp
jae 0x100edbbe
add byte [eax], al
dec ecx
jae 0x100edc05
popal
push edi
jb 0x100edc31
je 0x100edc2f
push eax
je 0x100edc3f
add byte [eax], al
add byte [edx + 0x74], dl
insb byte es:[edi], dx
push ebp
outsb dx, byte [esi]
ja 0x100edc40
outsb dx, byte [esi]
add byte fs:[ebp + 0xf2c2464], cl
lea esp, [esp + 0x2c]
jae 0x101ac59f
pushal
pushfd
invalid
lea esp, [esp + 0x18]
and al, 0x18
jmp 0x100efeb7
call fcn.100ed568
shr cl, 0x1e
jbe 0x100edc34
or eax, dword [eax]
add bh, al
add al, 0x24
or bl, 5
and eax, 0x72404c7
mov dword [esp], 0x2505cb82
add eax, 0x2404c725
mov dword [esp], 0x9db1a107
lea esp, [esp + 0x54]
pop es
mov eax, dword [0x648d9db1]
and al, 0x54
jne 0x101a9ec0
ret 0xb
or eax, dword [eax]
shr cx, 5
lea edx, [eax + 0x6454b736]
mov dword [ebp - 0x1c], edi
xchg di, dx
mov edi, dword [ebp + 0xc]
clc
call fcn.101ac234
Function at 0x101a6f7f
Capabilities:
Encode data using xor

Disassembly:
pushal
lea esp, [esp + 0x3c]
je 0x100f01e6
lea eax, [eax + 0x10feb715]
cwde
lea eax, [ebp*4 + 0x62820489]
jmp 0x101aa190
lea eax, [ebx + edx*4]
push eax
mov byte [esp], dh
jmp 0x100eff5d
Function at 0x101acb9b
Capabilities:
Encode data using xor

Disassembly:
xor dh, dl
pushal
test dh, 1
pushfd
mov dh, 0
push 0xae15f2c8
push eax
lea esp, [esp + 0x2c]
je 0x100f01e6
jmp 0x101ade1b
jmp 0x101003aa
push dword [esp]
setb dh
cwde
lea eax, [esi*8 + 0x17ea4f1e]
lea eax, [ebx + edx*4 + 0x400]
mov byte [esp + 4], cl
mov byte [esp + 4], dl
push dword [esp]
lea esp, [esp + 0xc]
call fcn.101a6c52
push esp
pushal
pushal
adc dl, dl
pushfd
push 0x5e9bb68
lea esp, [esp + 0x4c]
jb 0x101aa3a1
jmp 0x100efaf0
pushfd
setbe ah
lea eax, [ebx + edx*4]
push 0xc6f0e6b4
jmp 0x101aaa89
Function at 0x10007c1f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x10007c2e
pop dword [ebp - 0x3c]
mov eax, 0x6fad9302
sub eax, 0x5fad16d4
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x48698911
add dword [ebp - 0x4c], 0x5e8bc3a
mov dword [ebp - 0x48], 0xcf1a2120
add dword [ebp - 0x48], 0x63192b25
mov dword [ebp - 0x44], 0xb12de30e
sub dword [ebp - 0x44], 0x64e19ee0
mov dword [ebp - 0x40], 0x7cf44fd9
add dword [ebp - 0x40], 0x830bb027
lea eax, [ebp - 0x4c]
push eax
mov eax, 0xaceb34df
sub eax, 0x9ceab48b
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0xb63ec91
sub dword [ebp - 0x4c], 0x96f1833b
mov dword [ebp - 0x48], 0xafd3858d
add dword [ebp - 0x48], 0x9198dbe8
mov dword [ebp - 0x44], 0xd2b9981a
add dword [ebp - 0x44], 0x90b5d452
mov dword [ebp - 0x40], 0x87bb37bc
sub dword [ebp - 0x40], 0x87bb37bc
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0x4013a558
sub eax, 0x30132508
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x35bee
push 0
call eax
mov ecx, 0x4a60f654
sub ecx, 0x4a60b204
mov edx, eax
mov esi, 0x1000fa00
add esi, dword [ebp - 0x3c]
mov ebx, 0xdaa42670
sub dword [ebp - 0x14], ebx
mov edi, dword [esi]
xor dword [ebp - 0x38], 0x38f31ddd
sub edi, ebx
mov dword [edx], edi
add dword [ebp - 0x1c], esi
add edx, 0xfa06a05b
sub edx, 0xfa06a057
add esi, 4
loop 0x10007d44
add eax, 0xc280d2d1
add eax, 0x3d803142
xor ebx, ebx
add ebx, eax
add eax, 0x5e6f5411
sub eax, 0x5e6f540c
mov ecx, 0x2dec0134
add ecx, 0xe213fecc
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x4016e0
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_malloc]
push esi
push edi
mov edi, dword [esp + 0x14]
push 0x170
mov dword [edi], 0
call ebx
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push eax
push esi
push 0
push 0x10
push 2
mov dword [esp + 0x28], 0x170
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
cmp eax, 0x6f
je 0x401725
test eax, eax
jne 0x4017a6
push esi
call dword [sym.imp.MSVCR100.dll_free]
mov ecx, dword [esp + 0x18]
push ecx
call ebx
mov esi, eax
add esp, 8
test esi, esi
je 0x4017b4
lea edx, [esp + 0x14]
push edx
push esi
push 0
push 0x10
push 2
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
test eax, eax
jne 0x4017a6
mov edx, dword [esp + 0x10]
mov eax, esi
push ebp
mov ecx, dword [eax + 0x44]
cmp ecx, 1
je 0x401765
cmp ecx, 2
jne 0x40179e
movzx ebx, byte [eax + 0x2c]
movzx ebp, byte [eax + 0x2d]
mov ecx, dword [edi]
shl ebx, 8
or ebx, ebp
mov dword [edx + ecx*8 + 4], ebx
movzx ebx, byte [eax + 0x2e]
movzx ebp, byte [eax + 0x2f]
lea ecx, [edx + ecx*8]
shl ebx, 8
or ebx, ebp
movzx ebp, byte [eax + 0x30]
shl ebx, 8
or ebx, ebp
movzx ebp, byte [eax + 0x31]
shl ebx, 8
or ebx, ebp
mov dword [ecx], ebx
inc dword [edi]
mov eax, dword [eax + 8]
test eax, eax
jne 0x401758
pop ebp
test esi, esi
je 0x4017b4
push esi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x405a60
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c190]
jne 0x405a6a
repz ret
jmp fcn.00405ef8

Function at 0x4065f0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x18
lea eax, [esp + 4]
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.QtCore4.dll_public:_static_class_QString___cdecl_QString::fromWCharArray_unsigned_short_int_const___int_]
add esp, 0xc
mov ecx, eax
call dword [sym.imp.QtCore4.dll_public:_class_QByteArray___thiscall_QString::toLocal8Bit_void_]
mov edx, dword [esp + 8]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x406632
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.QtCore4.dll_private:_static_void___cdecl_QString::free_struct_QString::Data__]
add esp, 4
push esi
push 4
push 0x30
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 4
mov dword [esp + 0x20], 4
call dword [sym.imp.QtCore4.dll_public:_static_struct_QVectorData____cdecl_QVectorData::allocate_int__int_]
mov esi, eax
add esp, 8
test esi, esi
jne 0x406664
call dword [sym.imp.QtCore4.dll_void___cdecl_qBadAlloc_void_]
mov dword [esp + 4], esi
mov dword [esi], 1
mov edx, dword [esp + 4]
mov eax, 8
mov dword [edx + 8], eax
mov ecx, dword [esp + 4]
mov dword [ecx + 4], eax
mov eax, dword [esp + 4]
or dword [eax + 0xc], 1
mov eax, dword [esp + 4]
and dword [eax + 0xc], 0xfffffffd
mov edx, dword [esp + 4]
push 0x20
add edx, 0x10
push 0
push edx
call dword [sym.imp.QtCore4.dll_void____cdecl_qMemSet_void___int__unsigned_int_]
add esp, 0xc
lea ecx, [esp + 8]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QByteArray::detach_void_]
mov edx, dword [esp + 0x2c]
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [eax + 0xc]
mov eax, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x30]
push ecx
push edx
push eax
call sub.QtCore4.dll_void___cdecl_qWinMain_struct_HINSTANCE_____struct_HINSTANCE_____char___int__int___class_QVector_char____
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
add esp, 0x18
cmp edx, 1
je 0x4066f9
mov eax, dword [esp + 4]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
push ecx
push edx
lea ecx, [esp + 0xc]
call fcn.00406440
mov eax, dword [esp + 4]
add eax, 0x10
push eax
mov eax, dword [esp + 0x14]
push eax
call fcn.00403900
mov esi, eax
mov eax, dword [esp + 0xc]
add esp, 8
test eax, eax
je 0x406731
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x406731
mov edx, dword [esp + 4]
push 4
push edx
call dword [sym.imp.QtCore4.dll_public:_static_void___cdecl_QVectorData::free_struct_QVectorData___int_]
add esp, 8
mov eax, dword [esp + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x40674c
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.QtCore4.dll_void___cdecl_qFree_void__]
add esp, 4
mov eax, esi
pop esi
add esp, 0x18
ret 0x10
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x401c66
pop dword [ebp - 0x10]
mov eax, 0x401c66
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0xbd82f0a3
sub dword [ebp - 0x20], 0x6f30ab58
mov dword [ebp - 0x1c], 0x21a398c9
add dword [ebp - 0x1c], 0x108fb37c
mov dword [ebp - 0x18], 0x3a005136
sub dword [ebp - 0x18], 0xedb40d08
mov dword [ebp - 0x14], 0x75d0a094
add dword [ebp - 0x14], 0x8a2f5f6c
lea eax, [ebp - 0x20]
push eax
mov eax, 0x93f0433d
add eax, 0x6c4fed17
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x57dad28e
sub dword [ebp - 0x20], 0xe3686938
mov dword [ebp - 0x1c], 0x8481e3
sub dword [ebp - 0x1c], 0xbf18206e
mov dword [ebp - 0x18], 0x8301f98a
sub dword [ebp - 0x18], 0x1f928d1e
mov dword [ebp - 0x14], 0xedc93a56
add dword [ebp - 0x14], 0x1236c5aa
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x36582
push 0
call eax
mov ecx, 0x4774
mov edx, eax
mov ebx, 0x407000
add ebx, dword [ebp - 0x10]
mov edi, 0x91f750cc
xor dword [ebp - 0xc], 0x2872a153
mov esi, dword [ebx]
add esi, edi
xor dword [ebp - 4], 0x2bdbc0cb
mov dword [edx], esi
sub dword [ebp - 0xc], edx
add edx, 0x648f85cb
sub edx, 0x648f85c7
add ebx, 4
loop 0x401d6c
add eax, 0x722a83cc
sub eax, 0x72297329
xor ebx, ebx
add ebx, eax
add eax, 0x51579f4d
sub eax, 0x51579f48
mov ecx, 0x4816dccc
add ecx, 0xb8292334
add ecx, dword [ebp - 0x10]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret
Function at 0x401079
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x40f440]
push esi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov esi, ecx
call fcn.00404af0
pop ecx
mov edi, eax
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x114]
push eax
mov ecx, esi
call fcn.0040104d
push 0
push edi
lea eax, [ebp - 0x114]
push eax
push dword [esi + 4]
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
jne 0x4010de
push dword [esi + 4]
call sub.WSOCK32.dll_closesocket
push str.Error_when_send.
call sub.WSOCK32.dll_WSAGetLastError
push eax
push 1
mov ecx, esi
call fcn.00401014
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.00404bac
leave
ret 8
Function at 0x4019a3
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esi], 0x40c158
cmp dword [0x40fb00], edi
jne 0x401a1e
xor eax, eax
inc eax
mov byte [ebp - 1], 3
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 2
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov word [esi + 0x1bc], di
movzx ebx, byte [ebp - 1]
lea eax, [esi + 0x1bc]
push eax
xor eax, eax
lea ebx, [ebx + ebx*2]
shl ebx, 2
mov ah, byte [ebp + ebx - 0x30]
mov al, byte [ebp + ebx - 0x34]
push eax
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x401a1e
mov dword [ebp + ebx - 0x2c], edi
call sub.WSOCK32.dll_WSACleanup
dec byte [ebp - 1]
jne 0x4019eb
mov eax, 0x15f90
push 0x40
mov dword [esi + 0x350], eax
mov dword [esi + 0x354], eax
mov ebx, 0x40c53b
push ebx
lea eax, [esi + 0x28]
push eax
mov ecx, esi
mov dword [esi + 4], edi
mov word [esi + 0xa], di
mov word [esi + 0x1a], di
mov dword [esi + 0x34c], edi
call fcn.0040104d
push 0x10
push ebx
lea eax, [esi + 0x1a9]
push eax
mov ecx, esi
call fcn.0040104d
mov dword [esi + 0x35c], edi
mov dword [esi + 0x360], edi
mov dword [esi + 0x364], edi
mov dword [esi + 0x46c], edi
mov dword [esi + 0x468], edi
pop edi
mov dword [esi + 0x358], 0x50
inc dword [0x40fb00]
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x405af7
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x40c850
call fcn.00405f34
mov edi, 0x94
mov eax, edi
call fcn.004050f0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x40fb4c], ecx
mov eax, dword [esi + 4]
mov dword [0x40fb58], eax
mov edx, dword [esi + 8]
mov dword [0x40fb5c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40fb50], esi
cmp ecx, 2
je 0x405b57
or esi, 0x8000
mov dword [0x40fb50], esi
shl eax, 8
add eax, edx
mov dword [0x40fb54], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x405b92
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x405b92
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x405baa
cmp eax, 0x20b
je 0x405b97
mov dword [ebp - 0x1c], esi
jmp 0x405bbe
cmp dword [ecx + 0x84], 0xe
jbe 0x405b92
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x405bb8
cmp dword [ecx + 0x74], 0xe
jbe 0x405b92
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00408baf
pop ecx
test eax, eax
jne 0x405bea
cmp dword [0x40fb14], 1
jne 0x405bd7
call fcn.0040850f
push 0x1c
call fcn.00408398
push 0xff
call fcn.00407dec
pop ecx
pop ecx
call fcn.00408b0d
mov dword [ebp - 4], esi
call fcn.00407f87
test eax, eax
jge 0x405c03
push 0x1b
call fcn.00405ad2
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4110e4], eax
call fcn.004089eb
mov dword [0x40fb0c], eax
call fcn.00408949
test eax, eax
jge 0x405c29
push 8
call fcn.00405ad2
pop ecx
call fcn.00408716
test eax, eax
jge 0x405c3a
push 9
call fcn.00405ad2
pop ecx
push 1
call fcn.00407e1c
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x405c50
push eax
call fcn.00405ad2
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004086b9
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x405c71
movzx eax, word [ebp - 0x40]
jmp 0x405c74
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401c9e
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x405c92
push edi
call fcn.00407f47
call fcn.00407f69
jmp 0x405cc4
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00405f6f
ret
Function at 0x407744
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x40ffa4]
mov eax, dword [0x40f440]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x40790a
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x40ffc0]
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 - 0x80], ebx
je 0x40790a
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x4077ae
xor eax, eax
jmp 0x40791e
test al, 0x20
je 0x4077bf
push 2
push edi
push edi
push ecx
call fcn.0040a868
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x407894
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x4078db
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x407821
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x407812
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x4077f4
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407861
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x40786d
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x4077e8
jmp 0x40786f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x407905
cmp dword [ebp + 0x3a4], edi
je 0x4078db
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x4078cd
mov dword [0x40fb44], eax
jmp 0x407911
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4078bf
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x40786f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x40786f
push dword [ebp + 0x3a4]
call fcn.0040a809
pop ecx
jmp 0x40791b
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4078f3
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x4077a7
mov dword [0x40fb40], 0x1c
mov dword [0x40fb44], edi
jmp 0x40791b
sub eax, dword [ebp - 0x7c]
jmp 0x40791e
and dword [0x40fb44], 0
mov dword [0x40fb40], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.00404bac
add ebp, 0x39c
leave
ret