joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0xc], 0x72657375
mov byte [ebp - 2], al
mov word [ebp - 0x6c], ax
mov word [ebp - 0x44], ax
mov byte [ebp - 0x1c], al
mov byte [ebp - 0x2a], al
mov eax, dword fs:[0x30]
mov dword [ebp - 8], 0x642e3233
mov word [ebp - 4], 0x6c6c
mov dword [ebp - 0x18], 0x7373654d
mov dword [ebp - 0x14], 0x42656761
mov dword [ebp - 0x10], 0x57786f
mov dword [ebp - 0x84], 0x650048
mov dword [ebp - 0x80], 0x6c006c
mov dword [ebp - 0x7c], 0x20006f
mov dword [ebp - 0x78], 0x6f0057
mov dword [ebp - 0x74], 0x6c0072
mov dword [ebp - 0x70], 0x210064
mov dword [ebp - 0x68], 0x650044
mov dword [ebp - 0x64], 0x6f006d
mov dword [ebp - 0x60], 0x21
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x5c], 0x65006b
mov dword [ebp - 0x58], 0x6e0072
mov dword [ebp - 0x54], 0x6c0065
mov dword [ebp - 0x50], 0x320033
mov dword [ebp - 0x4c], 0x64002e
mov dword [ebp - 0x48], 0x6c006c
mov dword [ebp - 0x28], 0x64616f4c
mov dword [ebp - 0x24], 0x7262694c
mov dword [ebp - 0x20], 0x41797261
mov dword [ebp - 0x38], 0x50746547
mov dword [ebp - 0x34], 0x41636f72
mov dword [ebp - 0x30], 0x65726464
mov word [ebp - 0x2c], 0x7373
mov dword [ebp - 0x40], ecx
test ecx, ecx
je 0x40118d
nop dword [eax + eax]
cmp dword [ecx + 0x18], 0
je 0x40118d
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x401185
xor esi, esi
cmp word [ebp - 0x5c], si
je 0x401171
xor ecx, ecx
nop
lea edi, [ecx + eax]
movzx eax, word [edi]
test ax, ax
je 0x40116b
lea ebx, [ebp - 0x5c]
add ebx, ecx
movzx edx, word [ebx]
lea ecx, [edx - 0x41]
cmp cx, 0x19
ja 0x401145
lea ecx, [edx + 0x20]
mov word [ebx], cx
movzx edx, cx
lea ecx, [eax - 0x41]
cmp cx, 0x19
ja 0x401157
add eax, 0x20
mov word [edi], ax
movzx eax, ax
cmp dx, ax
jne 0x40116b
mov eax, dword [ebp - 0x3c]
inc esi
lea ecx, [esi + esi]
cmp word [ebp + ecx - 0x5c], 0
jne 0x401120
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
cmp word [ebp + esi*2 - 0x5c], 0
jne 0x401180
cmp word [eax + esi*2], 0
je 0x401199
mov ecx, dword [ecx]
mov dword [ebp - 0x40], ecx
test ecx, ecx
jne 0x401100
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ecx + 0x18]
test esi, esi
je 0x40118d
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.00401210
mov edi, eax
test edi, edi
jne 0x4011ba
lea eax, [edi + 2]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x38]
mov ecx, esi
call fcn.00401210
mov esi, eax
test esi, esi
jne 0x4011d4
pop edi
lea eax, [esi + 3]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
push eax
call edi
lea ecx, [ebp - 0x18]
push ecx
push eax
call esi
test eax, eax
jne 0x4011f1
pop edi
pop esi
mov eax, 4
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x84]
push ecx
push 0
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401210
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov eax, 0x5a4d
push esi
push edi
cmp word [ebx], ax
jne 0x4012cc
mov eax, dword [ebx + 0x3c]
mov eax, dword [eax + ebx + 0x78]
test eax, eax
je 0x4012cc
mov ecx, dword [eax + ebx + 0x1c]
xor edi, edi
mov esi, dword [eax + ebx + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax + ebx + 0x20]
mov eax, dword [eax + ebx + 0x24]
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x4012cc
mov dl, byte [edx]
lea esi, [ecx + ebx]
add eax, ebx
mov byte [ebp - 1], dl
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], eax
movzx eax, word [eax]
xor edx, edx
mov ecx, dword [ebp - 0x14]
lea eax, [ecx + eax*4]
mov ecx, dword [esi]
add eax, ebx
add ecx, ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], ecx
cmp byte [ebp - 1], dl
je 0x4012a8
mov eax, dword [ebp - 8]
mov esi, ecx
sub esi, eax
nop word [eax + eax]
mov cl, byte [esi + eax]
test cl, cl
je 0x4012a2
cmp byte [eax], cl
jne 0x4012a2
inc eax
inc edx
cmp byte [eax], 0
jne 0x401290
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
cmp byte [edx + eax], 0
jne 0x4012b7
cmp byte [edx + ecx], 0
je 0x4012d5
mov eax, dword [ebp - 0xc]
inc edi
add eax, 2
add esi, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esi
cmp edi, dword [ebp - 0x1c]
jb 0x401267
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20]
pop edi
pop esi
mov eax, dword [eax]
add eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40bca0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
nop
mov eax, 0x2e
mov byte [ebp - 0x100], al
mov eax, 0x2f
mov byte [ebp - 0xff], al
mov eax, 0x66
mov byte [ebp - 0xfe], al
mov eax, 0x69
mov byte [ebp - 0xfd], al
mov eax, 0x6c
mov byte [ebp - 0xfc], al
mov eax, 0x65
mov byte [ebp - 0xfb], al
mov eax, 0
mov byte [ebp - 0xfa], al
mov eax, 0xf9
push eax
mov eax, 0
push eax
lea eax, [ebp - 0xf9]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, 0x5097fc
push eax
mov eax, str.file.zip
push eax
call sub.msvcrt.dll_fopen
add esp, 8
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x104]
cmp eax, 0
jne 0x40bd53
mov eax, str.Errore_nellapertura_del_file_n
push eax
call sub.msvcrt.dll_printf
add esp, 4
mov eax, 1
jmp 0x40bd96
mov eax, dword [ebp - 0x104]
push eax
mov eax, 0xfb596
push eax
mov eax, 1
push eax
mov eax, 0x40e25a
push eax
call sub.msvcrt.dll_fwrite
add esp, 0x10
mov eax, dword [ebp - 0x104]
push eax
call sub.msvcrt.dll_fclose
add esp, 4
mov eax, str.Stringa_scritta_nel_file_con_successo_n
push eax
call sub.msvcrt.dll_printf
add esp, 4
mov eax, 0
leave
ret
Function at 0x1001fcd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100a39c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.10098eca
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.10021200
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x1001fd24
jmp dword [ecx*4 + 0x1001fe8c]
mov al, byte [esi]
test al, al
je 0x1001fd52
cmp al, 0x20
je 0x1001fd3e
cmp al, 0xa1
jne 0x1001fd52
cmp byte [esi + 1], al
jne 0x1001fd52
test al, 0x80
je 0x1001fd4a
mov al, byte [esi + 1]
inc esi
test al, al
je 0x1001fd52
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1001fd31
test ecx, ecx
je case.default.0x1001fd24
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x1001fd24
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x1001fd98
cmp dl, 0xa1
jne 0x1001fd8c
cmp byte [eax + 1], 0xa1
jne 0x1001fd8c
test ecx, ecx
jne 0x1001fd84
mov edi, eax
mov ecx, 1
inc eax
jmp 0x1001fdac
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x1001fdc6
jmp 0x1001fdac
cmp dl, 0x20
jne 0x1001fdaa
test ecx, ecx
jne 0x1001fda3
mov edi, eax
mov ecx, 1
jmp 0x1001fdac
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x1001fd6c
cmp ecx, 1
jne case.default.0x1001fd24
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x1001fd24
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x1001fd24
mov al, byte [esi]
test al, al
je 0x1001fe1e
test al, 0x80
mov byte [esp + 0x3c], al
je 0x1001fe04
mov cl, byte [esi + 1]
test cl, cl
je 0x1001fe1e
cmp al, 0xa1
jne 0x1001fdf4
cmp cl, al
je 0x1001fe01
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.100214d0
inc esi
jmp 0x1001fe16
cmp al, 0x20
je 0x1001fe16
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.10021510
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1001fddd
push 0
lea ecx, [esp + 0x14]
call fcn.10021510
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1002cc30
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x1001fe51
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x100ac740
call fcn.10021400
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.10098e5c
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x10026e70
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x100a400b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.10098bd1
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x10026ef2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.10096aab
mov eax, dword [eax]
push 0x100c6cc4
push eax
call fcn.10089694
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.10098e5c
test bl, bl
je 0x10026ef2
push 0x100c6cc4
lea ecx, [esp + 0xc]
call fcn.100991ec
push 0x100c6cd0
lea ecx, [esp + 0xc]
call fcn.100991ec
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x10026f2e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.10098e5c
jmp 0x10026ff9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x10026fb2
lea edx, [esp + 0x7c]
push 0x100c6ccc
push edx
call fcn.10089694
add esp, 8
test eax, eax
je 0x10026fb2
lea eax, [esp + 0x7c]
push 0x100c6cc8
push eax
call fcn.10089694
add esp, 8
test eax, eax
je 0x10026fb2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10026f42
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.10098e5c
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x10027800
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x10027862
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x10027870
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x100a408b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x100d9520]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x100279a8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x100278d6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.10098e5c
xor eax, eax
jmp 0x10027a1f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.10098f99
push esi
lea ecx, [esp + 0xc]
call fcn.10099228
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x100279fd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push connect
call fcn.10027800
test eax, eax
jne 0x100279fd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push connect
mov ecx, edi
call fcn.10027800
test eax, eax
jne 0x100279fd
lea eax, [esp + 0x14]
push 0x100c6ce0
push eax
call fcn.1008a730
mov esi, eax
add esp, 8
test esi, esi
jne 0x100279dc
lea ecx, [esp + 0x14]
push 0x100c6cdc
push ecx
call fcn.1008a6b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x100279dc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x100279df
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.10098f49
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x100278ee
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.10098e5c
xor eax, eax
jmp 0x10027a1f
mov byte [esi], 0
push 0x100c6cd8
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.10098e5c
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x10038b80
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x10038bee
cmp si, 0x69
ja 0x10038bee
add esi, 0xffd0
cmp si, 0x11
je 0x10038bbe
push 0x11
call edi
test ax, ax
jge 0x10038bbe
or esi, 0x2000
cmp si, 0x10
je 0x10038bd3
push 0x10
call edi
test ax, ax
jge 0x10038bd3
or esi, 0x4000
cmp si, 0x12
je 0x10038be8
push 0x12
call edi
test ax, ax
jge 0x10038be8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x10038bfb
mov esi, 0xbd
jmp 0x10038baf
cmp si, 0x6e
jne 0x10038c08
mov esi, 0xbe
jmp 0x10038baf
cmp si, 0x6f
jne 0x10038ba9
mov esi, 0xbf
jmp 0x10038baf

Function at 0x1003a550
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x100e9d58]
xor edx, edx
cmp eax, edx
jne 0x1003a576
xor eax, eax
mov byte [eax + 0x100e9c58], al
inc eax
cmp eax, 0x100
jl 0x1003a55e
mov dword [0x100e9d58], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x100e9c58
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x1003a607
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x1003a5da
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x1003a5a8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x1003a680
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x1003a6d3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x1003a6ba
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100416e0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x10041878
cmp ebp, ebx
jle 0x10041878
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x1004173e
dec eax
or eax, 0xfffffff8
inc eax
je 0x10041745
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, reloc.WS2_32.dll_accept
jns 0x10041754
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x1004175b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.10098b9d
add esp, 4
cmp eax, ebx
je 0x1004177c
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.10098b9d
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x1004186e
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x10041855
mov al, byte [edx]
cmp al, 0xc0
jbe 0x10041841
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x10041836
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x10041844
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x10041844
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x100417e0
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x100417d1
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret

Function at 0x10043ae0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
mov esi, ecx
call fcn.1009a40b
lea eax, [esp + 4]
mov dword [esi], method.CWnd.virtual_0
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
sbb eax, eax
mov dword [esi + 0x44], 0x4d12
inc eax
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], eax
mov eax, esi
pop esi
add esp, 0x190
ret
Function at 0x10043c60
Capabilities:
Resolve dns

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
test esi, esi
je 0x10043ce7
cmp byte [esi], 0
je 0x10043ce7
mov ebx, dword [esp + 0xc]
xor eax, eax
mov ecx, ebx
mov edx, dword [esp + 0x14]
push edx
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
call dword [sym.imp.WS2_32.dll_htons]
push esi
mov word [ebx + 2], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x10043cd5
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10043ce7
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
push edi
lea edi, [ebx + 4]
mov esi, dword [edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ax, word [eax + 8]
pop edi
mov word [ebx], ax
pop esi
mov eax, 1
pop ebx
ret 0xc
mov dword [ebx + 4], eax
mov word [ebx], 2
pop esi
mov eax, 1
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x10043ed0
Capabilities:
Connect socket

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 0xbc]
test eax, eax
je 0x10043f42
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
call fcn.10043c60
test eax, eax
je 0x10043f42
mov edx, dword [esi + 0x40]
lea ecx, [esp + 4]
push 0x10
push ecx
push edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x10043f3b
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x40]
push 0x21
push 0x8078
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
cmp eax, 0xffffffff
je 0x10043f3b
mov eax, 1
mov dword [esi + 0x48], eax
pop esi
add esp, 0x10
ret 8
mov ecx, esi
call fcn.10043ea0
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x10044f20
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100a57c8
push eax
mov dword fs:[0], esp
sub esp, 0x28
push esi
push edi
mov edi, dword [esp + 0x44]
mov esi, ecx
test edi, edi
jne 0x10044f59
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 0x24
push 0x400
lea ecx, [esp + 0xc]
call fcn.100a0564
mov eax, dword [esp + 0x40]
push 0
push edi
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 0
call fcn.100a05b0
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
push eax
lea edx, [esp + 0x20]
push ecx
push edx
mov ecx, esi
call fcn.10044fe0
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x38], 0xffffffff
call fcn.100a05ed
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret 0x24