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

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCacheEx]
xor esi, esi
call edi
sub byte [esi + 0x4228d0], 0x20
call edi
add byte [esi + 0x4228d0], 0x9f
call edi
xor byte [esi + 0x4228d0], 0x79
call edi
add byte [esi + 0x4228d0], 0x76
call edi
add byte [esi + 0x4228d0], 0x90
call edi
add byte [esi + 0x4228d0], 0xac
call edi
add byte [esi + 0x4228d0], 0x83
call edi
xor byte [esi + 0x4228d0], 0x5e
call edi
add byte [esi + 0x4228d0], 0x42
call edi
add byte [esi + 0x4228d0], 0x5b
call edi
xor byte [esi + 0x4228d0], 0xfe
call edi
add byte [esi + 0x4228d0], 0x29
call edi
add byte [esi + 0x4228d0], 0x97
call edi
add byte [esi + 0x4228d0], 0xba
call edi
add byte [esi + 0x4228d0], 0x99
call edi
add byte [esi + 0x4228d0], 0x83
call edi
xor byte [esi + 0x4228d0], 0x6f
call edi
add byte [esi + 0x4228d0], 0xab
call edi
add byte [esi + 0x4228d0], 0x7c
call edi
add byte [esi + 0x4228d0], 0x90
call edi
add byte [esi + 0x4228d0], 0x69
call edi
add byte [esi + 0x4228d0], 0x94
call edi
add byte [esi + 0x4228d0], 0xab
call edi
add byte [esi + 0x4228d0], 0x77
call edi
add byte [esi + 0x4228d0], 0x66
call edi
xor byte [esi + 0x4228d0], 0x20
call edi
add byte [esi + 0x4228d0], 0xda
call edi
add byte [esi + 0x4228d0], 0x4b
call edi
add byte [esi + 0x4228d0], 0xc9
call edi
add byte [esi + 0x4228d0], 0x39
call edi
add byte [esi + 0x4228d0], 0x66
call edi
xor byte [esi + 0x4228d0], 0xba
call edi
xor byte [esi + 0x4228d0], 0xc3
call edi
xor byte [esi + 0x4228d0], 0xe
call edi
add byte [esi + 0x4228d0], 0x6c
call edi
add byte [esi + 0x4228d0], 0x30
call edi
xor byte [esi + 0x4228d0], 0x8f
call edi
add byte [esi + 0x4228d0], 0x93
call edi
add byte [esi + 0x4228d0], 0x70
call edi
xor byte [esi + 0x4228d0], 0x24
call edi
add byte [esi + 0x4228d0], 0xab
call edi
xor byte [esi + 0x4228d0], 0xd3
call edi
add byte [esi + 0x4228d0], 0x76
call edi
xor byte [esi + 0x4228d0], 0x60
call edi
add byte [esi + 0x4228d0], 0xc5
call edi
xor byte [esi + 0x4228d0], 0x76
call edi
add byte [esi + 0x4228d0], 0xcc
call edi
add byte [esi + 0x4228d0], 0x8d
call edi
add byte [esi + 0x4228d0], 0x9b
inc esi
cmp esi, 0x2b800
jb 0x40115e
pop edi
pop esi
ret
Function at 0x4013ca
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x46f270], 1
mov dword [0x46f274], 1
mov dword [0x46f278], 1
mov dword [0x46f264], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x401415
mov eax, 0
jmp 0x4014af
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x401438
mov eax, 0
jmp 0x4014af
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x40145a
cmp eax, 0x20b
je 0x40147f
jmp 0x4014aa
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x40146c
mov eax, 0
jmp 0x4014af
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4014af
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x401497
mov eax, 0
jmp 0x4014af
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4014af
mov eax, 0
leave
ret

Function at 0x401e57
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp + 4], 0x4698c5
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fopen
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x401ea8
mov dword [esp], 2
mov eax, dword [sym.___acrt_iob_func]
call eax
mov edx, dword [ebp + 8]
mov dword [esp + 8], edx
mov dword [esp + 4], str.Unable_to_open_file__s
mov dword [esp], eax
call dbg.fprintf
mov eax, 0
jmp 0x401f72
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fseek
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._ftell
mov dword [ebp - 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fseek
mov eax, dword [0x46e058]
test eax, eax
jne 0x401f41
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [esp], eax
call sym._malloc
mov dword [0x46e058], eax
mov eax, dword [0x46e058]
test eax, eax
jne 0x401f41
mov dword [esp], 2
mov eax, dword [sym.___acrt_iob_func]
call eax
mov dword [esp + 4], str.Memory_error_
mov dword [esp], eax
call dbg.fprintf
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fclose
mov eax, 0
jmp 0x401f72
mov eax, dword [0x46e058]
mov edx, dword [ebp - 0xc]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 1
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._fread
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fclose
mov eax, dword [ebp - 0x10]
leave
ret
Function at 0x402874
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateEventA]
call eax
sub esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x4028da
mov eax, 0
jmp 0x40297b
mov eax, dword [0x46f20c]
lea edx, [ebp - 0x20]
mov dword [esp + 0x10], edx
lea edx, [ebp - 0x24]
mov dword [esp + 0xc], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 8], edx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
call eax
sub esp, 0x14
test eax, eax
jne 0x402961
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
cmp eax, 0x3e5
je 0x402923
mov dword [ebp - 0xc], 0
jmp 0x402968
mov eax, dword [0x46f20c]
mov dword [esp + 0xc], 1
lea edx, [ebp - 0x24]
mov dword [esp + 8], edx
lea edx, [ebp - 0x20]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
call eax
sub esp, 0x10
test eax, eax
jne 0x402958
mov dword [ebp - 0xc], 0
jmp 0x402968
mov dword [ebp - 0xc], 1
jmp 0x402968
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x40297d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateEventA]
call eax
sub esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x4029f1
mov eax, 1
jmp 0x402b2c
cmp dword [ebp - 0x10], 0
jne 0x402a65
mov eax, dword [0x46f20c]
lea edx, [ebp - 0x2c]
mov dword [esp + 0x10], edx
lea edx, [ebp - 0x18]
mov dword [esp + 0xc], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 8], edx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_ReadFile]
call eax
sub esp, 0x14
test eax, eax
jne 0x402a55
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
cmp eax, 0x3e5
je 0x402a4c
mov dword [esp], str.error
call dbg.printf
mov dword [ebp - 0xc], 2
jmp 0x402a65
mov dword [ebp - 0x10], 1
jmp 0x402a65
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov eax, dword [ebp - 0x18]
mov dword [0x46f200], eax
cmp dword [ebp - 0x10], 0
je 0x402b19
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], 0x2710
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call eax
sub esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x402a9b
cmp dword [ebp - 0x14], 0x102
je 0x402afc
jmp 0x402b11
mov eax, dword [0x46f20c]
mov dword [esp + 0xc], 0
lea edx, [ebp - 0x18]
mov dword [esp + 8], edx
lea edx, [ebp - 0x2c]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
call eax
sub esp, 0x10
test eax, eax
jne 0x402ad0
mov dword [ebp - 0xc], 3
jmp 0x402ae3
mov dword [ebp - 0xc], 0
mov dword [esp], str.Read_complete_after_wait_n
call dbg.printf
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov eax, dword [ebp - 0x18]
mov dword [0x46f200], eax
mov dword [ebp - 0x10], 0
jmp 0x402b19
mov dword [esp], str.timeout
call dbg.printf
mov dword [ebp - 0xc], 5
jmp 0x402b19
mov dword [ebp - 0xc], 6
nop
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x403474
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call sym.___acrt_iob_func
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call sym.___acrt_iob_func
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._vfprintf
call sym._abort
Function at 0x403fc4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x403fe3
mov eax, 0
jmp 0x404027
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x404006
mov eax, 0
jmp 0x404027
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x404022
mov eax, 0
jmp 0x404027
mov eax, 1
leave
ret

Function at 0x404029
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x404088
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x404080
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x404080
mov eax, dword [ebp - 4]
jmp 0x40409c
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x40405d
mov eax, 0
leave
ret
Function at 0x4014fa
Capabilities:
Get graphical window text
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
push edi
lea edi, [ebp - 0x104]
lea esi, [0x42cae6]
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x114]
mov ecx, 0x10
mov eax, 0
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
mov byte [ebp - 0x11a], 0
mov byte [ebp - 0x119], 0
mov byte [ebp - 0x118], 0
mov byte [ebp - 0x117], 0
mov byte [ebp - 0x116], 0
mov byte [ebp - 0x115], 0
mov byte [ebp - 0x11e], 0
mov byte [ebp - 0x11d], 0
mov byte [ebp - 0x11c], 0
mov byte [ebp - 0x11b], 0
push 0x100
lea eax, [ebp - 0x104]
push eax
mov eax, dword [0x42e5a8]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0x10
lea eax, [ebp - 0x114]
push eax
mov eax, dword [0x42e5ac]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x114]
push eax
call sub.WSOCK32.dll_inet_addr
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, eax
and edx, 0xff
mov byte [0x42e5b0], dl
and eax, 0xff00
shr eax, 8
mov byte [0x42e5b1], al
mov eax, dword [ebp - 4]
and eax, 0xff0000
shr eax, 0x10
mov byte [0x42e5b2], al
mov eax, dword [ebp - 4]
and eax, 0xff000000
shr eax, 0x18
mov byte [0x42e5b3], al
push 5
lea eax, [ebp - 0x11a]
push eax
mov eax, dword [0x42e5b8]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xa
push 0
lea eax, [ebp - 0x11a]
push eax
call fcn.00402fa0
add esp, 0xc
mov word [0x42e5b4], ax
call fcn.00401724
cmp eax, 0
je 0x401637
push 0x40a1bb
call fcn.00401abb
jmp 0x40171e
push 0x40a1a9
call fcn.00401abb
lea eax, [ebp - 0x104]
push eax
call fcn.0040241a
cmp eax, 0
je 0x40166b
push 0x42e1a4
call fcn.00401abb
push 0x40a195
call fcn.00401abb
jmp 0x40171e
push 0x40a185
call fcn.00401abb
push 0x10000
push 0
push section..data
call fcn.00402e90
add esp, 0xc
push 0x10000
push 0
push 0x41c000
call fcn.00402e90
add esp, 0xc
push 0x41c000
push section..data
call dword [0x42e5bc]
cmp eax, 0
je 0x4016c1
push 0x40a15f
call fcn.00401abb
jmp 0x40171e
push 0x40a14f
call fcn.00401abb
push 0x10000
push 0
push section..data
call fcn.00402e90
add esp, 0xc
push 0x10000
push 0
push 0x41c000
call fcn.00402e90
add esp, 0xc
push 0x41c000
push section..data
call dword [0x42e5c0]
cmp eax, 0
je 0x401714
push 0x40a12b
call fcn.00401abb
jmp 0x40171e
push 0x40a11d
call fcn.00401abb
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401754
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0xff
jmp 0x4017e1
push 0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 0x18]
lea eax, [edx + eax]
push eax
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_recv
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, 0
je 0x40179c
cmp eax, 0xffffffff
jne 0x4017b5
cmp dword [ebp + 8], 0
je 0x4017ac
mov eax, 0x2710
jmp 0x4017ea
mov dword [ebp + 0x10], 0
jmp 0x4017e1
mov eax, dword [ebp - 4]
sub dword [ebp - 8], eax
add dword [ebp - 0xc], eax
dec dword [ebp + 0x10]
cmp dword [ebp - 8], 0
jg 0x4017d7
mov dword [ebp + 0x10], 0
mov dword [ebp - 0x10], 0
jmp 0x4017e1
mov eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp + 0x10], 0
jne 0x401773
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 0x14

Function at 0x4017f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0xff
jmp 0x401870
push 0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 0x18]
lea eax, [edx + eax]
push eax
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_send
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, 0
je 0x401838
cmp eax, 0xffffffff
jne 0x401844
mov dword [ebp + 0x10], 0
jmp 0x401870
mov eax, dword [ebp - 4]
sub dword [ebp - 8], eax
add dword [ebp - 0xc], eax
dec dword [ebp + 0x10]
cmp dword [ebp - 8], 0
jg 0x401866
mov dword [ebp + 0x10], 0
mov dword [ebp - 0x10], 0
jmp 0x401870
mov eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp + 0x10], 0
jne 0x40180f
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 0x14
Function at 0x40187f
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c0
lea edx, [ebp - 0x24]
mov ecx, 0x10
mov eax, 0
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
mov word [ebp - 0x26], 0
movzx eax, byte [0x42e5b3]
push eax
movzx eax, byte [0x42e5b2]
push eax
movzx eax, byte [0x42e5b1]
push eax
movzx eax, byte [0x42e5b0]
push eax
push str._d._d._d._d
lea eax, [ebp - 0x24]
push eax
call fcn.00402f30
add esp, 0x18
mov ax, word [0x42e5b4]
mov word [ebp - 0x26], ax
lea eax, [ebp - 0x1bc]
push eax
push 0x202
call sub.WSOCK32.dll_WSAStartup
cmp eax, 0
je 0x4018fe
mov eax, 1
jmp 0x4019e5
push 0x10
push 0
lea eax, [ebp - 0x14]
push eax
call fcn.00402e90
add esp, 0xc
mov word [ebp - 0x14], 2
lea eax, [ebp - 0x24]
push eax
call sub.WSOCK32.dll_inet_addr
mov dword [ebp - 0x10], eax
movzx eax, word [ebp - 0x26]
push eax
call sub.WSOCK32.dll_htons
mov word [ebp - 0x12], ax
push 0x40a0ef
call sub.WSOCK32.dll_getprotobyname
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
movsx eax, word [eax + 8]
push eax
push 1
push 2
call sub.WSOCK32.dll_socket
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x401962
mov eax, 1
jmp 0x4019e5
push 0x10
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.WSOCK32.dll_connect
cmp eax, 0
je 0x401980
mov eax, 1
jmp 0x4019e5
lea eax, [ebp - 0x1c0]
push eax
mov eax, 0x8004667e
push eax
mov eax, dword [ebp - 4]
push eax
call sub.WSOCK32.dll_ioctlsocket
mov eax, dword [ebp + 8]
push eax
push 5
push 2
push 0x2e
mov eax, dword [ebp - 4]
push eax
call fcn.004017f0
cmp eax, 0
je 0x4019b8
mov eax, 0x11
jmp 0x4019e5
mov eax, dword [ebp + 0xc]
push eax
push 5
push 2
push 0x2e
mov eax, dword [ebp - 4]
push eax
call fcn.00401754
cmp eax, 0
je 0x4019d7
mov eax, 0x12
jmp 0x4019e5
mov eax, dword [ebp - 4]
push eax
call sub.WSOCK32.dll_closesocket
mov eax, 0
mov esp, ebp
pop ebp
ret 8
Function at 0x4027d0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push esi
push edi
mov dword [ebp - 0xc], 0x2100
lea edi, [ebp - 0x410]
lea esi, [0x42cbf0]
mov ecx, 0x100
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x810]
lea esi, [0x42cff0]
mov ecx, 0x100
rep movsd dword es:[edi], dword [esi]
push 0x40a3c9
mov eax, dword [ebp + 8]
push eax
call fcn.004031e0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40282d
mov eax, dword [ebp - 0xc]
lea eax, [eax + 1]
jmp 0x4029b5
push 2
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.00403260
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40285d
mov eax, dword [ebp - 4]
push eax
call fcn.00403400
add esp, 4
mov eax, dword [ebp - 0xc]
lea eax, [eax + 2]
jmp 0x4029b5
mov eax, dword [ebp - 4]
push eax
call fcn.00403470
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x402889
mov eax, dword [ebp - 4]
push eax
call fcn.00403400
add esp, 4
mov eax, dword [ebp - 0xc]
lea eax, [eax + 3]
jmp 0x4029b5
mov eax, dword [ebp - 4]
push eax
call fcn.00403400
add esp, 4
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 8], eax
jle 0x4029b0
cmp byte [ebp + 0x10], 0
jne 0x402982
push 0x100
push 0
lea eax, [ebp - 0x810]
push eax
call fcn.00402e90
add esp, 0xc
push 0x100
push 0
lea eax, [ebp - 0x410]
push eax
call fcn.00402e90
add esp, 0xc
push 0x100
lea eax, [ebp - 0x810]
push eax
call fcn.00403490
add esp, 8
push str.Backup
call fcn.00403530
add esp, 4
lea eax, [ebp - 0x820]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push str..txt
mov eax, dword [ebp + 8]
push eax
movzx eax, word [ebp - 0x814]
push eax
movzx eax, word [ebp - 0x816]
push eax
movzx eax, word [ebp - 0x818]
push eax
movzx eax, word [ebp - 0x81a]
push eax
movzx eax, word [ebp - 0x81e]
push eax
movzx eax, word [ebp - 0x820]
push eax
push str.Backup_
lea eax, [ebp - 0x810]
push eax
push str._s_s_04d_02d_02d_02d_02d_02d__s_s
lea eax, [ebp - 0x410]
push eax
call fcn.00402f30
add esp, 0x30
push 1
lea eax, [ebp - 0x410]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x402982
mov eax, dword [ebp - 0xc]
lea eax, [eax + 4]
jmp 0x4029b5
push 0x40a38e
mov eax, dword [ebp + 8]
push eax
call fcn.004031e0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4029a4
mov eax, dword [ebp - 0xc]
lea eax, [eax + 5]
jmp 0x4029b5
mov eax, dword [ebp - 4]
push eax
call fcn.00403400
add esp, 4
mov eax, 0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405c30
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
cmp byte [esi], 0
jne 0x405c62
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea esi, [ebp - 0x10c]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push esi
call fcn.00405a80
add esp, 0x14
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
lea eax, [edx + eax*4]
push eax
call fcn.004051c0
pop ecx
mov ebx, eax
test ebx, ebx
jne 0x405c95
push 1
call fcn.00405590
pop ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
lea eax, [ebx + eax*4]
push eax
push ebx
push esi
call fcn.00405a80
add esp, 0x14
mov eax, dword [ebp - 4]
dec eax
mov dword [0x42c5d8], eax
mov dword [0x42c5dc], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405cd0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [ebp - 8], eax
test eax, eax
jne 0x405cee
mov eax, dword [0x42c6ac]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 8]
jmp 0x405d13
mov edx, ebx
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x405cff
lea esi, [eax + 1]
cmp byte [ebx], 0x3d
je 0x405d11
add dword [ebp - 4], esi
add ebx, esi
cmp byte [ebx], 0
jne 0x405cfa
mov eax, dword [ebp - 4]
inc eax
push eax
call fcn.004051c0
pop ecx
mov edi, eax
mov dword [0x42c5e4], eax
cmp dword [0x42c5e4], 0
jne 0x405d3b
push 1
call fcn.00405590
pop ecx
mov ebx, dword [ebp - 8]
jmp 0x405d6a
mov edx, ebx
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x405d45
lea esi, [eax + 1]
cmp byte [ebx], 0x3d
je 0x405d68
mov ecx, edi
mov edx, ebx
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
inc edx
test al, al
jne 0x405d5b
pop eax
add edi, esi
add ebx, esi
cmp byte [ebx], 0
jne 0x405d40
mov byte [edi], 0
mov eax, dword [0x42c6ac]
cmp eax, dword [ebp - 8]
je 0x405d86
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret