joyce8/EMBER2024-capa huggingface dataset:
Function at 0x475bc4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
test dl, dl
je 0x475bd6
add esp, 0xfffffff0
call fcn.004036f8
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
push 1
push 0
push 0x475cc8
push 0x80000000
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x475ca6
mov dword [ebp - 0x1c], 0x105
mov eax, dword [ebp - 0x1c]
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc_2
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00407174
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x475d04
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x475c9d
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
je 0x475c94
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x416e7c]
call fcn.0041b39c
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00475d08
mov eax, dword [ebp - 0x10]
call fcn.004033d4
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LocalFree_1
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x475cbe
call fcn.00403750
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x47a340
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x47a378]
push 0x10
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x47a356
or bl, 1
push 0x11
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x47a365
or bl, 4
push 0x12
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x47a374
or bl, 2
mov eax, ebx
pop ebx
ret

Function at 0x47b714
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x4a3060]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x47b73a
push 0
mov eax, dword [0x4a3060]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
ret
Function at 0x490664
Capabilities:
Encode data using base64
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov dword [esp], ecx
mov esi, eax
mov ebp, edx
xor ebx, ebx
xor edi, edi
mov eax, dword [esp]
mov ecx, 3
cdq
idiv ecx
test eax, eax
jle 0x490702
xor edx, edx
mov dl, byte [esi + ebx]
shr edx, 2
mov dl, byte [edx + 0x4a170c]
mov byte [ebp + edi], dl
mov dl, byte [esi + ebx]
and dl, 3
and edx, 0xff
shl edx, 4
xor ecx, ecx
mov cl, byte [esi + ebx + 1]
shr ecx, 4
add edx, ecx
mov dl, byte [edx + 0x4a170c]
push edx
pop edx
mov byte [ebp + edi + 1], dl
mov dl, byte [esi + ebx + 1]
and dl, 0xf
and edx, 0xff
shl edx, 2
xor ecx, ecx
mov cl, byte [esi + ebx + 2]
shr ecx, 6
add edx, ecx
mov dl, byte [edx + 0x4a170c]
push edx
pop edx
mov byte [ebp + edi + 2], dl
mov dl, byte [esi + ebx + 2]
and dl, 0x3f
and edx, 0xff
mov dl, byte [edx + 0x4a170c]
mov byte [ebp + edi + 3], dl
add edi, 4
add ebx, 3
dec eax
jne 0x490683
mov eax, dword [esp]
mov ecx, 3
cdq
idiv ecx
dec edx
je 0x490718
dec edx
je 0x49074d
jmp 0x49079e
xor eax, eax
mov al, byte [esi + ebx]
shr eax, 2
mov al, byte [eax + 0x4a170c]
mov byte [ebp + edi], al
mov al, byte [esi + ebx]
and al, 3
and eax, 0xff
shl eax, 4
mov al, byte [eax + 0x4a170c]
mov byte [ebp + edi + 1], al
mov byte [ebp + edi + 2], 0x3d
mov byte [ebp + edi + 3], 0x3d
jmp 0x49079e
xor eax, eax
mov al, byte [esi + ebx]
shr eax, 2
mov al, byte [eax + 0x4a170c]
mov byte [ebp + edi], al
mov al, byte [esi + ebx]
and al, 3
and eax, 0xff
shl eax, 4
xor edx, edx
mov dl, byte [esi + ebx + 1]
shr edx, 4
add eax, edx
mov al, byte [eax + 0x4a170c]
mov byte [ebp + edi + 1], al
mov al, byte [esi + ebx + 1]
and al, 0xf
and eax, 0xff
shl eax, 2
mov al, byte [eax + 0x4a170c]
mov byte [ebp + edi + 2], al
mov byte [ebp + edi + 3], 0x3d
mov eax, dword [esp]
add eax, 2
mov ecx, 3
cdq
idiv ecx
shl eax, 2
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x490800
Capabilities:
Encode data using base64

Disassembly:
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp], ecx
mov edi, eax
mov dword [esp + 8], edx
xor esi, esi
xor ebp, ebp
xor eax, eax
mov edx, dword [esp]
test edx, edx
jns 0x49081f
add edx, 3
sar edx, 2
test edx, edx
jle 0x49092c
mov dword [esp + 0xc], edx
mov edx, 4
lea eax, [esp + 4]
xor ecx, ecx
mov cl, byte [edi + esi]
cmp ecx, 0x3d
jg 0x490855
je 0x490895
sub ecx, 0x2b
je 0x49088b
sub ecx, 4
je 0x490890
dec ecx
sub ecx, 0xa
jb 0x49087e
jmp 0x490898
add ecx, 0xffffffbf
sub ecx, 0x1a
jb 0x490867
add ecx, 0xfffffffa
sub ecx, 0x1a
jb 0x490871
jmp 0x490898
mov cl, byte [edi + esi]
sub cl, 0x41
mov byte [eax], cl
jmp 0x490898
mov cl, byte [edi + esi]
sub cl, 0x61
add cl, 0x1a
mov byte [eax], cl
jmp 0x490898
mov cl, byte [edi + esi]
sub cl, 0x30
add cl, 0x34
mov byte [eax], cl
jmp 0x490898
mov byte [eax], 0x3e
jmp 0x490898
mov byte [eax], 0x3f
jmp 0x490898
mov byte [eax], 0xff
inc esi
inc eax
dec edx
jne 0x490837
mov al, byte [esp + 4]
shl eax, 2
xor edx, edx
mov dl, byte [esp + 5]
shr edx, 4
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp], al
lea eax, [ebp + 1]
mov dl, byte [esp + 6]
cmp dl, 0xff
je 0x4908e9
cmp byte [esp + 7], 0xff
jne 0x4908e9
mov al, byte [esp + 5]
shl eax, 4
and edx, 0xff
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
lea eax, [ebp + 2]
inc ebp
jmp 0x490921
cmp dl, 0xff
je 0x490921
mov al, byte [esp + 5]
shl eax, 4
and edx, 0xff
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
mov eax, dword [esp + 8]
mov dl, byte [esp + 6]
shl edx, 6
or dl, byte [esp + 7]
mov byte [eax + ebp + 2], dl
lea eax, [ebp + 3]
add ebp, 2
inc ebp
dec dword [esp + 0xc]
jne 0x49082e
add esp, 0x10
pop ebp
pop edi
pop esi
ret
Function at 0x492b8c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, eax
cmp byte [ebx + 0x30], 0
jne 0x492bb6
mov ecx, 0x492c14
mov dl, 1
mov eax, dword [0x492118]
call fcn.0040c0b8
call fcn.00403c24
mov dword [ebp - 8], edx
mov esi, dword [ebp - 4]
mov eax, dword [ebp + 8]
test eax, eax
jle 0x492c03
mov dword [ebp - 0xc], eax
mov ecx, dword [ebx + 0x40]
mov edx, dword [ebx + 0x3c]
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x60]
mov eax, dword [ebp - 8]
mov al, byte [eax]
mov edx, dword [ebx + 0x40]
xor al, byte [edx]
mov byte [esi], al
mov ecx, dword [ebx + 0x44]
dec ecx
mov edx, dword [ebx + 0x3c]
mov eax, dword [ebx + 0x3c]
inc eax
call fcn.004029f4
mov eax, dword [ebx + 0x3c]
add eax, dword [ebx + 0x44]
dec eax
mov dl, byte [esi]
mov byte [eax], dl
inc dword [ebp - 8]
inc esi
dec dword [ebp - 0xc]
jne 0x492bc6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x492c2c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, eax
cmp byte [ebx + 0x30], 0
jne 0x492c56
mov ecx, 0x492cbc
mov dl, 1
mov eax, dword [0x492118]
call fcn.0040c0b8
call fcn.00403c24
mov esi, edx
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
test eax, eax
jle 0x492cab
mov dword [ebp - 0x10], eax
mov al, byte [esi]
mov byte [ebp - 9], al
mov ecx, dword [ebx + 0x40]
mov edx, dword [ebx + 0x3c]
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x60]
mov eax, dword [ebx + 0x40]
mov al, byte [eax]
xor al, byte [esi]
mov edx, dword [ebp - 8]
mov byte [edx], al
mov ecx, dword [ebx + 0x44]
dec ecx
mov edx, dword [ebx + 0x3c]
mov eax, dword [ebx + 0x3c]
inc eax
call fcn.004029f4
mov eax, dword [ebx + 0x3c]
add eax, dword [ebx + 0x44]
dec eax
mov dl, byte [ebp - 9]
mov byte [eax], dl
inc esi
inc dword [ebp - 8]
dec dword [ebp - 0x10]
jne 0x492c68
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4932b4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x493336
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x49243c]
mov eax, 0x14
call fcn.004051f0
mov edi, eax
mov dword [edi + 0xc], esi
lea edx, [ebp - 8]
mov eax, esi
call dword [eax + 0x34]
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.004084ac
mov edx, dword [ebp - 4]
lea eax, [edi + 4]
call fcn.00404258
mov eax, esi
call dword [eax + 0x30]
mov dword [edi + 8], eax
mov eax, dword [0x4a4ef8]
mov dword [edi], eax
mov byte [edi + 0x10], bl
mov dword [0x4a4ef8], edi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49333d
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404228
ret
Function at 0x493344
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x4933c0
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x492464]
mov eax, 0x10
call fcn.004051f0
mov ebx, eax
mov dword [ebx + 0xc], esi
lea edx, [ebp - 8]
mov eax, esi
call dword [eax + 0x34]
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.004084ac
mov edx, dword [ebp - 4]
lea eax, [ebx + 4]
call fcn.00404258
mov eax, esi
call dword [eax + 0x30]
mov dword [ebx + 8], eax
mov eax, dword [0x4a4efc]
mov dword [ebx], eax
mov dword [0x4a4efc], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4933c7
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404228
ret

Function at 0x49341c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
test esi, esi
jle 0x49343c
mov ecx, 1
mov ebx, edx
add ebx, ecx
dec ebx
mov bl, byte [ebx]
mov edi, eax
add edi, ecx
dec edi
xor byte [edi], bl
inc ecx
dec esi
jne 0x49342a
pop edi
pop esi
pop ebx
ret
Function at 0x49e03c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 6
push 0
push 0
dec ecx
jne 0x49e045
xchg dword [ebp - 4], ecx
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.004046b4
mov eax, dword [ebp - 8]
call fcn.004046b4
xor eax, eax
push ebp
push 0x49e21d
push dword fs:[eax]
mov dword fs:[eax], esp
mov al, byte [0x49e22c]
push eax
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x49e238
mov edx, 0x49e244
mov eax, dword [ebp - 4]
call fcn.0040d5c0
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 4]
call fcn.0040429c
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
mov ecx, 1
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.00404724
mov eax, dword [ebp - 0x14]
mov edx, 0x49e250
call fcn.00404610
je 0x49e17e
lea ecx, [ebp - 0xc]
mov edx, 0x49e25c
mov eax, esi
call fcn.0049e288
cmp dword [ebp - 0xc], 0
je 0x49e16d
mov eax, dword [0x4a2fc4]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
call fcn.00498ad0
test eax, eax
jl 0x49e16d
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00409000
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0xc]
call fcn.004044cc
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x2c]
mov ecx, 1
mov eax, 0x49e270
call fcn.00409804
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x4a2f20]
mov eax, dword [eax]
call fcn.0049a628
test al, al
je 0x49e1f5
mov bl, 1
mov eax, dword [0x4a2fc4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00498c28
lea eax, [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.0040429c
jmp 0x49e17e
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [esi + 0x340]
call fcn.00404510
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 4]
call fcn.004086e0
cmp dword [ebp - 0x30], 0
je 0x49e1f5
test bl, bl
jne 0x49e1d0
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x2c]
mov eax, 0x49e270
mov ecx, 1
call fcn.00409804
mov edx, dword [ebp - 0x34]
mov eax, dword [0x4a2f20]
mov eax, dword [eax]
call fcn.0049a628
test al, al
je 0x49e1f5
push 1
push 0
mov eax, dword [ebp - 8]
call fcn.004046c4
push eax
mov eax, dword [ebp - 4]
call fcn.004046c4
push eax
push 0
mov eax, esi
call fcn.00441a08
push eax
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49e224
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.00404228
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.00404228
ret
Function at 0x49e288
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbec
push ebx
xor ebx, ebx
mov dword [ebp - 0x414], ebx
mov dword [ebp - 0x410], ebx
mov dword [ebp - 0x40c], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004046b4
xor eax, eax
push ebp
push 0x49e41f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, 0x49e434
call fcn.00404610
jne 0x49e2e7
mov eax, ebx
mov edx, dword [0x4a2fc4]
mov edx, dword [edx]
mov edx, dword [edx + 0x30]
call fcn.00404258
jmp 0x49e3f9
mov eax, dword [ebp - 4]
mov edx, 0x49e444
call fcn.00404610
jne 0x49e31a
lea edx, [ebp - 0x40c]
mov eax, dword [0x4a3060]
mov eax, dword [eax]
call fcn.0045b9fc
mov eax, dword [ebp - 0x40c]
mov edx, ebx
call fcn.00409000
jmp 0x49e3f9
mov eax, dword [ebp - 4]
mov edx, 0x49e454
call fcn.00404610
jne 0x49e340
mov eax, ebx
mov edx, dword [0x4a2fc4]
mov edx, dword [edx]
mov edx, dword [edx + 0x34]
call fcn.00404258
jmp 0x49e3f9
mov eax, dword [ebp - 4]
mov edx, 0x49e468
call fcn.00404610
jne 0x49e366
mov eax, ebx
mov edx, dword [0x4a2fc4]
mov edx, dword [edx]
mov edx, dword [edx + 0x40]
call fcn.00404258
jmp 0x49e3f9
mov eax, dword [ebp - 4]
mov edx, 0x49e478
call fcn.00404610
jne 0x49e3ae
mov eax, ebx
call fcn.00409130
lea ecx, [ebp - 0x410]
mov eax, dword [ebx]
mov edx, 1
call fcn.0042e1d0
mov eax, dword [ebp - 0x410]
mov edx, 0x49e488
call fcn.00404610
je 0x49e3f9
mov eax, ebx
mov edx, 0x49e488
call fcn.004044cc
jmp 0x49e3f9
mov eax, dword [ebp - 4]
mov edx, 0x49e494
call fcn.00404610
jne 0x49e3f9
push ebx
lea eax, [ebp - 0x405]
push eax
push 0x400
call sub.kernel32.dll_GetTempPathA
test eax, eax
seta al
push eax
lea eax, [ebp - 0x414]
lea edx, [ebp - 0x405]
mov ecx, 0x401
call fcn.00404474
mov edx, dword [ebp - 0x414]
xor ecx, ecx
pop eax
call fcn.0042e168
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49e426
lea eax, [ebp - 0x414]
mov edx, 3
call fcn.00404228
lea eax, [ebp - 4]
call fcn.00404204
ret
Function at 0x403700
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40d728
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call sub.MFC42.DLL_AfxGetModuleState
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x48]
and eax, 0xffff
push 0x4141f0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x403797
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x403797
push 0
push ebx
push esi
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CMemFile::CMemFile
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], 0
push ecx
mov ecx, ebp
call fcn.00403860
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], 0xffffffff
call fcn.004044de
mov eax, edi
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 4

Function at 0x405bb0
Capabilities:
Read file via mapping

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x6d]
test eax, eax
jne 0x405bbf
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
push 0x300000
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esi + 0x155], eax
je 0x405c54
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x405c14
mov eax, dword [esi + 0x155]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x6d]
test eax, eax
jne 0x405c03
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov dword [esi + 0x155], eax
mov ecx, dword [esi + 0x155]
push 0x300000
push 0
push 0
push 6
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x405c4d
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 8]
mov dword [eax], ecx
mov edx, ecx
push edi
lea edi, [eax + 4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop esi
ret 8
Function at 0x4063d0
Capabilities:
Get local ipv4 addresses
Get socket information
Initialize winsock library

Disassembly:
sub esp, 0x1a4
push ebp
push esi
mov esi, ecx
mov al, byte [esi + 4]
test al, al
je 0x4063ee
pop esi
mov al, 1
pop ebp
add esp, 0x1a4
ret 8
lea eax, [esp + 0x1c]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x406413
mov byte [esi + 4], 0
pop esi
xor al, al
pop ebp
add esp, 0x1a4
ret 8
mov eax, dword [esi + 5]
mov ebp, dword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
mov byte [esi + 4], 1
je 0x406428
push eax
call ebp
push 0
push 2
push 2
mov dword [esi + 5], 0xffffffff
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 5], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 5], 0xffffffff
je 0x406406
mov ecx, dword [esp + 0x1b0]
mov word [esp + 0xc], 2
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0xe], ax
mov eax, dword [esp + 0x1b4]
test eax, eax
jne 0x406475
mov dword [esp + 0x10], eax
jmp 0x406480
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 5]
lea edx, [esp + 0xc]
push 0x10
push edx
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x4064a9
mov ecx, dword [esi + 5]
push ecx
call ebp
pop esi
xor al, al
pop ebp
add esp, 0x1a4
ret 8
mov ecx, dword [esi + 5]
lea edx, [esp + 8]
lea eax, [esp + 0xc]
push edx
push eax
push ecx
mov dword [esp + 0x14], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x406406
mov dx, word [esp + 0xe]
mov al, 1
mov word [esi + 0x15], dx
pop esi
pop ebp
add esp, 0x1a4
ret 8
Function at 0x4063d7
Capabilities:
Create udp socket
Get local ipv4 addresses
Get socket information
Initialize winsock library

Disassembly:
sub esp, 0x1a4
push ebp
push esi
mov esi, ecx
mov al, byte [esi + 4]
test al, al
je 0x4063ee
pop esi
mov al, 1
pop ebp
add esp, 0x1a4
ret 8
lea eax, [esp + 0x1c]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x406413
mov byte [esi + 4], 0
pop esi
xor al, al
pop ebp
add esp, 0x1a4
ret 8
mov eax, dword [esi + 5]
mov ebp, dword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
mov byte [esi + 4], 1
je 0x406428
push eax
call ebp
push 0
push 2
push 2
mov dword [esi + 5], 0xffffffff
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 5], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 5], 0xffffffff
je 0x406406
mov ecx, dword [esp + 0x1b0]
mov word [esp + 0xc], 2
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0xe], ax
mov eax, dword [esp + 0x1b4]
test eax, eax
jne 0x406475
mov dword [esp + 0x10], eax
jmp 0x406480
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 5]
lea edx, [esp + 0xc]
push 0x10
push edx
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x4064a9
mov ecx, dword [esi + 5]
push ecx
call ebp
pop esi
xor al, al
pop ebp
add esp, 0x1a4
ret 8
mov ecx, dword [esi + 5]
lea edx, [esp + 8]
lea eax, [esp + 0xc]
push edx
push eax
push ecx
mov dword [esp + 0x14], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x406406
mov dx, word [esp + 0xe]
mov al, 1
mov word [esi + 0x15], dx
pop esi
pop ebp
add esp, 0x1a4
ret 8

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

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
push esi
mov esi, ecx
push eax
mov word [esp + 8], 2
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esp + 0x18]
mov word [esp + 6], ax
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [esp + 0x20]
lea edx, [esp + 4]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
push 0x10
push edx
mov edx, dword [esi + 5]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
pop esi
setne al
add esp, 0x10
ret 0x10

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

Disassembly:
sub esp, 0x14
mov ecx, dword [ecx + 5]
lea eax, [esp]
lea edx, [esp + 4]
push eax
mov eax, dword [esp + 0x24]
push edx
push 0
push 0x578
push eax
push ecx
mov dword [esp + 0x18], 0x578
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edx, dword [esp + 0x24]
cmp eax, 0xffffffff
mov word [edx], ax
jne 0x4066df
xor al, al
add esp, 0x14
ret 0x10
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 6]
mov ecx, dword [esp + 8]
push edx
mov dword [eax], ecx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esp + 0x1c]
mov word [ecx], ax
mov al, 1
add esp, 0x14
ret 0x10
Function at 0x407192
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
lea ebx, [esi + 0xb0]
push edi
push edi
mov ecx, ebx
call fcn.004063d0
test al, al
jne 0x4071cd
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x4e20
call ebp
inc edi
cmp edi, 0xf
jae 0x40723d
push 0
push 0
mov ecx, ebx
call fcn.004063d0
test al, al
je 0x4071b1
push 0
push 0
push esi
push 0x407250
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0xcb]
push 0
push 0xea60
push 0x1f
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [esi + 0x141]
test eax, eax
jne 0x40720d
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ecx, dword [esi + 0x151]
mov edx, dword [esi + 5]
push 0
push 0xce
push ecx
mov ecx, dword [esi + 0xd7]
push edx
push ecx
mov cx, word [esi + 0xdb]
lea edx, [esi + 0xdf]
push edx
push ecx
push eax
mov ecx, ebx
call fcn.004065a0
pop edi
pop esi
pop ebp
pop ebx
ret