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

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x135000]
push edi
or ebp, 0xffffffff
jmp 0x5c3332
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5c3339
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5c3328
mov eax, 1
add ebx, ebx
jne 0x5c334b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5c335c
jne 0x5c337b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5c337b
dec eax
add ebx, ebx
jne 0x5c3368
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5c3340
add ebx, ebx
jne 0x5c3377
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5c33cd
xor ecx, ecx
sub eax, 3
jb 0x5c3393
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5c3402
sar eax, 1
mov ebp, eax
jmp 0x5c339e
add ebx, ebx
jne 0x5c339e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5c336c
inc ecx
add ebx, ebx
jne 0x5c33ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5c336c
add ebx, ebx
jne 0x5c33b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5c33ae
jne 0x5c33ca
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5c33ae
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5c33ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5c33de
jmp 0x5c332e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5c33ec
add edi, ecx
jmp 0x5c332e
pop esi
mov edi, esi
mov ecx, 0x37e4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5c340a
cmp byte [edi], 0x13
jne 0x5c340a
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 0x5c340f
lea edi, [esi + 0x1c0000]
mov eax, dword [edi]
or eax, eax
je 0x5c3487
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1cd6ec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1cd7b0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5c343c
mov ecx, edi
jns 0x5c346b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1cd7b8]
or eax, eax
je 0x5c3481
mov dword [ebx], eax
add ebx, 4
jmp 0x5c3459
call dword [esi + 0x1cd7b4]
mov ebp, dword [esi + 0x1cd7bc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x5c34bb
sub esp, 0xffffff80
jmp 0x46f1ee
Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0xb7e870
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x521000]
push edi
jmp 0xb7e88a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xb7e891
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb7e880
mov eax, 1
add ebx, ebx
jne 0xb7e8a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xb7e8b4
jne 0xb7e8d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb7e8d3
dec eax
add ebx, ebx
jne 0xb7e8c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xb7e898
add ebx, ebx
jne 0xb7e8cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xb7e925
xor ecx, ecx
sub eax, 3
jb 0xb7e8eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xb7e95a
sar eax, 1
mov ebp, eax
jmp 0xb7e8f6
add ebx, ebx
jne 0xb7e8f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb7e8c4
inc ecx
add ebx, ebx
jne 0xb7e904
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb7e8c4
add ebx, ebx
jne 0xb7e911
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xb7e906
jne 0xb7e922
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xb7e906
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xb7e944
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xb7e936
jmp 0xb7e886
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xb7e944
add edi, ecx
jmp 0xb7e886
pop esi
mov edi, esi
mov ecx, 0x1aada
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xb7e962
cmp byte [edi], 0x79
jne 0xb7e962
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 0xb7e967
lea edi, [esi + 0x760000]
mov eax, dword [edi]
or eax, eax
je 0xb7e9df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x78891c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x78896c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xb7e994
mov ecx, edi
jns 0xb7e9c3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x788970]
or eax, eax
je 0xb7e9d9
mov dword [ebx], eax
add ebx, 4
jmp 0xb7e9b1
call dword [esi + 0x788980]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0xb7ea10
cmp al, 0xef
ja 0xb7ea03
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0xb7e9e5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0xb7e9f2
mov ebp, dword [esi + 0x788974]
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 0xb7ea44
sub esp, 0xffffff80
jmp 0x67e157
Function at 0x41b0c0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x390
push ebx
push esi
push edi
lea edi, [ebp - 0x390]
mov ecx, 0xe4
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 4], 0xc8
mov esi, esp
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ole32.dll_CoFileTimeNow]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov esi, esp
mov ecx, dword [ebp + 8]
push ecx
push str._s.
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.MSVCRTD.dll_sprintf]
add esp, 0xc
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov esi, esp
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov dword [ebp - 0x250], eax
cmp dword [ebp - 0x250], 0xffffffff
je 0x41b243
mov esi, esp
lea edx, [ebp - 0x24c]
push edx
mov eax, dword [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
test eax, eax
je 0x41b22d
lea ecx, [ebp - 0x220]
push ecx
push 0x43d6e0
call sub.MSVCRTD.dll_strcmp
add esp, 8
test eax, eax
je 0x41b19f
lea edx, [ebp - 0x220]
push edx
push 0x43d6dc
call sub.MSVCRTD.dll_strcmp
add esp, 8
test eax, eax
jne 0x41b1a1
jmp 0x41b14a
mov esi, esp
lea eax, [ebp - 0x220]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str._s_s
lea edx, [ebp - 0x350]
push edx
call dword [sym.imp.MSVCRTD.dll_sprintf]
add esp, 0x10
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov eax, dword [ebp - 0x24c]
and eax, 0x10
test eax, eax
je 0x41b1ec
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x350]
push edx
call fcn.0040112c
add esp, 8
jmp 0x41b228
mov eax, dword [ebp - 0x234]
cmp eax, dword [ebp - 8]
jb 0x41b1fc
jmp 0x41b14a
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x234]
mov edx, dword [ebp + 0xc]
imul edx, edx, 0xc8
cmp ecx, edx
jbe 0x41b228
mov esi, esp
lea eax, [ebp - 0x350]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
jmp 0x41b14a
mov esi, esp
mov ecx, dword [ebp - 0x250]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
pop edi
pop esi
pop ebx
add esp, 0x390
cmp ebp, esp
call sub.MSVCRTD.dll__chkesp
mov esp, ebp
pop ebp
ret
Function at 0x41d560
Capabilities:
Initialize winsock library
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x426ba1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x194
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea eax, [esi + 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor ebx, ebx
mov byte [esi + 0x12c], 1
mov byte [esi + 0x8c], bl
mov dword [esi + 0x10c], ebx
mov byte [esi + 0x12f], bl
mov dword [esi + 0x110], ebx
mov byte [esi + 0x12d], bl
mov byte [esi + 0x12e], bl
push fcn.0041f6e0
push 0x41e250
lea edi, [esi + 0x130]
push 4
push 0x10d08
push edi
mov dword [esp + 0x1bc], ebx
call fcn.00423880
lea eax, [esp + 0x10]
mov dword [esi], 0x43d840
push eax
push 2
mov dword [esi + 0x88], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x41d605
push ebx
call sub.MSVCRTD.dll_exit
mov ax, word [esp + 0x10]
cmp al, 2
jne 0x41d64b
xor ecx, ecx
mov cl, ah
test cl, cl
jne 0x41d64b
lea eax, [esi + 0x43550]
mov ecx, edi
mov edx, 4
mov dword [eax], ecx
add eax, 4
add ecx, 0x10d08
dec edx
jne 0x41d623
mov ecx, dword [esp + 0x1a0]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1a0
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
push ebx
call sub.MSVCRTD.dll_exit
nop
nop
nop
nop
nop
nop
nop
nop
nop
push esi
mov esi, ecx
call fcn.0041d680
test byte [esp + 8], 1
je 0x41d678
push esi
call sub.MSVCRTD.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
pop esi
ret 4
Function at 0x41d730
Capabilities:
Create directory
Delete file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x80
push ebx
push ebp
mov ebp, ecx
push esi
mov ecx, dword [esp + 0x98]
push edi
mov dword [ebp + 0x88], eax
lea eax, [ebp + 8]
push ecx
push 0x43a874
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [esp + 0xac]
add esp, 0xc
test edi, edi
lea ebx, [ebp + 0x43560]
je 0x41d78b
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x41d7a8
mov edi, str..NetLog
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
call fcn.0041e0a0
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push eax
lea eax, [ebp + 8]
lea ecx, [esp + 0x14]
push eax
push ebx
push str._s_s_Sys_d.log
push ecx
call edi
mov al, byte [esp + 0x24]
add esp, 0x14
test al, al
lea esi, [ebp + 0x8c]
je 0x41d7fd
lea ecx, [esp + 0x10]
mov al, byte [ecx]
cmp al, 0x2f
je 0x41d7f2
cmp al, 0x3a
jne 0x41d7f5
mov byte [ecx], 0x5f
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x41d7e8
lea edx, [esp + 0x10]
mov byte [esi], 0
push edx
push 0x43a874
push esi
call edi
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [esi + 0x80], 0
mov byte [esi + 0xa3], 1
mov dword [esi + 0x84], 1
mov byte [esi + 0xa0], 1
mov byte [esi + 0xa1], 1
mov byte [esi + 0xa2], 1
mov eax, dword [ebp + 0x88]
xor esi, esi
test eax, eax
jbe 0x41d885
mov edi, dword [esp + 0x98]
lea ebx, [ebp + 0x130]
push ebp
push edi
push esi
mov ecx, ebx
call fcn.0041e5a0
test al, al
je 0x41d894
mov eax, dword [ebp + 0x88]
inc esi
add edi, 0xe4
add ebx, 0x10d08
cmp esi, eax
jb 0x41d860
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x80
ret 0x10
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x80
ret 0x10

Function at 0x41dc90
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x100
lea eax, [esp]
push 0xff
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea ecx, [esp]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov edx, dword [esp + 0x104]
mov ecx, dword [eax]
mov eax, 1
mov dword [edx], ecx
add esp, 0x100
ret
Function at 0x422400
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
mov esi, dword [ecx + 4]
sub eax, edx
mov edx, dword [ecx]
sub eax, esi
add eax, edx
mov edx, dword [0x43fb6c]
imul edx, eax
mov eax, 0x20f6054
sub ecx, eax
mov esi, dword [ecx + eax]
add eax, 4
xor esi, edx
cmp eax, 0x20f6064
mov dword [eax - 4], esi
jl 0x422426
mov eax, 0x20f6054
pop esi
ret

Function at 0x422f10
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov edi, ecx
lea esi, [ebx + ebx*8]
shl esi, 4
mov eax, dword [edi + 0x10]
mov cl, byte [eax + esi + 0x30]
test cl, cl
je 0x422f33
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret 8
mov al, byte [edi + 0x18]
test al, al
jne 0x422f53
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [edi + 0x10]
mov dword [ecx + esi], eax
mov eax, 0x10
jmp 0x422f77
cmp al, 1
jne 0x422f73
push 0x4e8
push 5
push 6
call dword [sym.imp.WS2_32.dll_socket]
mov edx, dword [edi + 0x10]
mov dword [edx + esi], eax
mov eax, 0xe
jmp 0x422f77
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 0x10]
push eax
mov eax, dword [esp + 0x18]
mov edx, dword [ecx + esi]
push eax
push edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x422fa8
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + esi]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
pop ebx
ret 8
mov edx, dword [edi + 0x14]
mov ecx, dword [edi + 0x10]
push 0x31
mov eax, dword [edx + ebx*4]
mov edx, dword [ecx + esi]
push eax
push edx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
inc eax
pop edi
neg eax
sbb eax, eax
pop esi
and eax, 3
pop ebx
add eax, 0xfffffffd
ret 8

Function at 0x422fd0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
push esi
push edi
push 0
push eax
mov eax, dword [esp + 0x14]
mov esi, ecx
mov ecx, dword [esp + 0x18]
lea edx, [eax + eax*8]
mov eax, dword [esi + 0x10]
push ecx
shl edx, 4
mov ecx, dword [edx + eax]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov edi, dword [esp + 0x18]
cmp eax, 0xffffffff
mov dword [edi], eax
jne 0x42301b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
mov dword [edi], eax
je 0x423014
inc dword [esi + 0x48]
pop edi
xor al, al
pop esi
ret 0x10
pop edi
mov al, 1
pop esi
ret 0x10
Function at 0x423030
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
mov edi, ecx
lea esi, [eax + eax*8]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [edi + 0x10]
push 0
shl esi, 4
push eax
push ecx
mov eax, dword [edx + esi]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x1c]
cmp eax, 0xffffffff
mov dword [ebx], eax
jne 0x42309c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
mov dword [ebx], eax
jne 0x42308d
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x50]
inc edx
lea eax, [ecx + esi + 0x54]
mov dword [edi + 0x50], edx
pop edi
pop esi
mov ecx, dword [eax]
pop ebx
inc ecx
mov dword [eax], ecx
xor al, al
ret 0x10
mov eax, dword [edi + 0x4c]
inc eax
mov dword [edi + 0x4c], eax
pop edi
pop esi
xor al, al
pop ebx
ret 0x10
pop edi
pop esi
mov al, 1
pop ebx
ret 0x10

Function at 0x4230b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x80
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_recv]
push esi
lea esi, [eax + eax*8]
push edi
mov edi, ecx
shl esi, 4
mov ecx, dword [edi + 0x10]
push 0
lea eax, [esp + 0x10]
push 0x80
mov edx, dword [ecx + esi]
push eax
push edx
call ebx
test eax, eax
je 0x4230e9
cmp eax, 0xffffffff
jne 0x4230cb
pop edi
pop esi
pop ebx
add esp, 0x80
ret 4
Function at 0x4232f0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
mov al, byte [esi + 0x18]
test al, al
jne 0x423305
push 0
push 1
push 2
jmp 0x423312
cmp al, 1
jne 0x42331b
push 0x4e8
push 5
push 6
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
cmp dword [esi + 8], 0xffffffff
jne 0x423332
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.socket___Failure____d
jmp 0x423417
mov al, byte [esi + 0x18]
push edi
test al, al
jne 0x423341
mov edi, 0x10
jmp 0x42334e
cmp al, 1
mov edi, 0xe
je 0x42334e
mov edi, dword [esp + 0x1c]
mov dx, word [esi + 0x20]
xor ecx, ecx
mov dword [esp + 8], ecx
push edx
mov dword [esp + 0x10], ecx
mov word [esp + 0xc], 2
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [esp + 0xe], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [esi + 8]
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
push edi
push eax
push ecx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
pop edi
jne 0x4233bc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esp + 0x18]
push eax
push str.bind___Failure____d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor al, al
pop esi
add esp, 0x10
ret 4
mov eax, dword [esi + 8]
push 5
push eax
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x4233f0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x18]
push eax
push str.listen___Failure____d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor al, al
pop esi
add esp, 0x10
ret 4
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov edx, dword [esi + 8]
push 8
push eax
push edx
mov dword [esi + 0xc], eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x42342e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.WSAEventSelect___Failure____d
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor al, al
pop esi
add esp, 0x10
ret 4
mov al, 1
pop esi
add esp, 0x10
ret 4
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
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
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x401090
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
pushal
mov dword [ebp - 4], 0
push 0xa
push dword [ebp + 8]
push 0
call sub.KERNEL32.DLL_FindResourceA
or eax, eax
jne 0x4010b0
jmp 0x4010d0
push eax
push eax
push 0
call sub.KERNEL32.DLL_SizeofResource
mov dword [0x404420], eax
pop eax
push eax
push 0
call sub.KERNEL32.DLL_LoadResource
or eax, eax
jne 0x4010cd
jmp 0x4010d0
mov dword [ebp - 4], eax
popal
mov eax, dword [ebp - 4]
leave
ret 4

Function at 0x4010e0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
pushal
mov esi, dword [ebp + 0xc]
lea ebx, [ebp - 0x400]
push esi
push ebx
call sub.KERNEL32.DLL_lstrcpyA
xor ecx, ecx
jmp 0x4010ff
inc ecx
cmp byte [ecx + ebx], 0x5c
jne 0x4010fe
mov byte [ecx + ebx], 0
lea esi, [ecx + esi + 1]
mov edi, 0x402c2a
push 0x404000
push ebx
call edi
or eax, eax
jne 0x401125
mov eax, 0x80000000
jmp 0x401186
push 0x404012
push ebx
call edi
or eax, eax
jne 0x401138
mov eax, 0x80000005
jmp 0x401186
push 0x404026
push ebx
call edi
or eax, eax
jne 0x40114b
mov eax, 0x80000001
jmp 0x401186
push 0x404038
push ebx
call edi
or eax, eax
jne 0x40115e
mov eax, 0x80000002
jmp 0x401186
push 0x40404b
push ebx
call edi
or eax, eax
jne 0x401171
mov eax, 0x80000003
jmp 0x401186
push 0x404056
push ebx
call edi
or eax, eax
jne 0x401184
mov eax, 0x80000006
jmp 0x401186
jmp 0x4011a2
mov byte [ebx], 0
push dword [ebp + 0x10]
push esi
push eax
push ebx
call fcn.00402dc0
cmp byte [ebx], 0
je 0x4011a2
push ebx
push dword [ebp + 8]
call sub.KERNEL32.DLL_SetEnvironmentVariableA
popal
leave
ret 0xc

Function at 0x4013b0
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
pushal
mov esi, 0x4046a5
push dword [ebp + 8]
push esi
call sub.KERNEL32.DLL_lstrcpyA
push 0x404102
push esi
call sub.KERNEL32.DLL_lstrcatA
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x4013e7
push 0
push esi
push dword [ebp + 8]
call sub.KERNEL32.DLL_CopyFileA
mov al, 0
jmp 0x4013e9
mov al, 1
mov byte [0x4048bd], al
popal
leave
ret 4

Function at 0x401400
Capabilities:
Copy file
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
pushal
mov esi, 0x4046a5
cmp dword [ebp + 8], 0
jne 0x401436
cmp byte [0x4048bd], 0
jne 0x401425
push 0
push 0x4044a5
push esi
call sub.KERNEL32.DLL_CopyFileA
cmp byte [0x4048bd], 0
jne 0x401486
push esi
call sub.KERNEL32.DLL_DeleteFileA
jmp 0x401486
push 0x6b
push dword [0x404444]
call sub.USER32.DLL_IsDlgButtonChecked
cmp byte [0x404963], 1
jne 0x401461
cmp byte [0x404964], 1
jne 0x40145c
mov eax, 1
jmp 0x401461
mov eax, 0
cmp eax, 1
jne 0x401484
push 0x40429b
call fcn.00401360
push esi
call fcn.00401360
push dword [0x4048a5]
push esi
call sub.KERNEL32.DLL_SetFileAttributesA
jmp 0x401486
jmp 0x401425
popal
leave
ret 4