joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43d6d8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x43d6ef
add esp, 0xfffffff0
call fcn.004030ec
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00411e48
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x40bf58]
call fcn.00402d9c
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x40bf58]
call fcn.00402d9c
mov dword [ebx + 0x98], eax
xor eax, eax
mov dword [ebx + 0x50], eax
xor eax, eax
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x4c], 0x80000018
mov dword [ebx + 0x68], 0x1f4
mov byte [ebx + 0x6c], 1
xor eax, eax
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x64], 0x9c4
mov byte [ebx + 0x78], 0
mov byte [ebx + 0x8d], 1
mov dl, 1
mov eax, dword [0x413c28]
call fcn.0041ab78
mov esi, eax
mov dword [ebx + 0x88], esi
push 0x43d864
mov eax, dword [0x453d60]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0041af48
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x43f260
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x453d60]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_2
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.00409bb0
test eax, eax
je 0x43d7e2
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408138
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.00409bd8
test eax, eax
je 0x43d7f6
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x7c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00403ca4
mov eax, dword [0x453c64]
cmp byte [eax], 0
jne 0x43d827
mov eax, ebx
call fcn.0043d950
mov byte [ebx + 0x49], 1
mov byte [ebx + 0x4a], 1
mov byte [ebx + 0x4b], 1
mov byte [ebx + 0x8e], 1
xor eax, eax
mov dword [ebx + 0x90], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x43d859
call fcn.00403144
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43dbc0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4547c8]
cmp dword [eax + 0x24], 0
je 0x43dc63
cmp dword [ebx + 0x84], 0
jne 0x43dc5d
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x43db50
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x80]
cmp dword [eax + 8], 0
je 0x43dc5d
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x43dc26
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x80]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x43dc5d
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x80]
call fcn.0040d61c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x43dc35
inc dword [ebx + 0x84]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x43e670
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x94], 0
je 0x43e6a5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403b5c
jmp 0x43e6af
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.00403ac8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x43f5d4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x43f60c
mov eax, esi
call fcn.004272d0
test al, al
je 0x43f60c
mov eax, dword [ebx + 0x74]
call fcn.00426fd4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x43f60c
push 0
mov eax, dword [ebx + 0x74]
call fcn.00426fd4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x440e78
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
xor eax, eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x10c], eax
xor eax, eax
push ebp
push 0x440f95
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10c]
xor eax, eax
call fcn.004028e4
mov eax, dword [ebp - 0x10c]
lea edx, [ebp - 0x108]
call fcn.00407fa8
mov edx, dword [ebp - 0x108]
mov eax, 0x45482c
call fcn.00403ac8
mov eax, 0x454844
mov ecx, 0x440fa8
mov edx, dword [0x45482c]
call fcn.00403d40
mov eax, 0x454830
mov ecx, 0x440fb8
mov edx, dword [0x45482c]
call fcn.00403d40
push 0x101
lea eax, [ebp - 0x101]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov ecx, eax
lea edx, [ebp - 0x101]
mov eax, 0x454834
call fcn.00403b5c
lea edx, [ebp - 0x110]
mov eax, dword [0x454834]
call fcn.00409a0c
mov edx, dword [ebp - 0x110]
mov eax, 0x454834
call fcn.00403ac8
mov eax, 0x454838
mov ecx, 0x440fd0
mov edx, dword [0x454834]
call fcn.00403d40
mov eax, 0x45483c
mov ecx, 0x440fe4
mov edx, dword [0x454834]
call fcn.00403d40
mov eax, 0x454840
mov edx, 0x440ff8
call fcn.00403ac8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x440f9c
lea eax, [ebp - 0x110]
mov edx, 3
call fcn.00403a98
ret

Function at 0x441808
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00403ea8
xor eax, eax
push ebp
push 0x441859
push dword fs:[eax]
mov dword fs:[eax], esp
push 5
push 0
push esi
mov eax, dword [ebp - 4]
call fcn.00403eb8
push eax
push 0
push ebx
call sub.shell32.dll_ShellExecuteA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x441860
lea eax, [ebp - 4]
call fcn.00403a74
ret
Function at 0x442540
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x24]
mov edi, dword [ebx + 0x34]
sub edi, dword [ebx + 0x6c]
sub edi, dword [ebx + 0x64]
test edi, edi
jne 0x44256a
cmp dword [ebx + 0x64], 0
jne 0x44256a
cmp dword [ebx + 0x6c], 0
jne 0x44256a
mov edi, esi
jmp 0x4425f1
cmp edi, 0xffffffff
jne 0x442572
dec edi
jmp 0x4425f1
mov eax, dword [ebx + 0x24]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x64]
ja 0x4425f1
push esi
mov eax, dword [ebx + 0x30]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.0044193c
add esp, 0xc
sub dword [ebx + 0x68], esi
sub dword [ebx + 0x64], esi
sub dword [ebx + 0x54], ebp
mov eax, dword [ebx + 0x44]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x3c]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x4425bf
mov cx, word [esp]
sub cx, si
jmp 0x4425c1
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x4425a8
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x38]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x4425e7
mov cx, word [esp]
sub cx, si
jmp 0x4425e9
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x4425d0
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x44264e
mov edx, dword [ebx + 0x30]
mov ecx, edi
add edx, dword [ebx + 0x64]
mov eax, ebp
add edx, dword [ebx + 0x6c]
call fcn.004422dc
add dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 3
jb 0x442639
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x64]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebx + 0x50]
shl eax, cl
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x64]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp dword [ebx + 0x6c], 0x106
jae 0x44264e
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x44254a
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4488a8
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x4548ac
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x4488ca
shr eax, 1
xor eax, 0xedb88320
jmp 0x4488cc
shr eax, 1
dec edx
jne 0x4488b8
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4488b1
mov byte [0x454cac], 1
pop esi
pop ebx
ret

Function at 0x4488e8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x454cac], 0
jne 0x4488ff
call fcn.004488a8
mov eax, edi
dec eax
test eax, eax
jl 0x448928
inc eax
xor edx, edx
xor ecx, ecx
mov cl, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4548ac]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x448909
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x44aee4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov al, byte [eax]
dec al
je 0x44af15
dec al
je 0x44af56
dec al
je 0x44af9a
dec al
je 0x44b005
jmp 0x44b08f
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x44b08f
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
mov dl, byte [ecx + edx]
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x44af25
jmp 0x44b08f
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x44b08f
mov esi, 1
mov al, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov dl, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x44af66
jmp 0x44b08f
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x44b08f
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x44afc8
xor ebp, ebp
jmp 0x44afd9
mov ecx, esi
sub ecx, edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x44afe2
adc eax, 0
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x44afaa
jmp 0x44b08f
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x44b08f
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x44b05d
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
mov dl, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
mov cl, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.00448930
add al, byte [esp]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x44b019
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x44f6f4
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0044f164
push ebp
call fcn.0044f3d4
pop ecx
push ebp
call fcn.0044f4d8
pop ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2d0]
test eax, eax
je 0x44f827
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
call fcn.00426fd4
push eax
call sub.user32.dll_GetDC
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x44f820
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.gdi32.dll_SelectObject
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x38]
push eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.gdi32.dll_BitBlt
push 0
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x440340]
call fcn.004407e4
mov ebx, eax
mov eax, dword [ebp - 4]
add eax, 0x2dc
mov edx, dword [eax + 4]
push edx
push 0
push 0
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 0x38]
push edx
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 0x3c]
push edx
push 2
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x314]
mov edx, ebx
call fcn.004409a4
mov eax, ebx
call fcn.00402dcc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44f827
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [ebp - 0xc]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00426fd4
push eax
call sub.user32.dll_ReleaseDC
ret
mov eax, dword [ebp - 4]
lea ebx, [eax + 0x314]
push 2
mov eax, dword [ebp - 4]
add eax, 0x308
push eax
push 0
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
lea eax, [ebx + 0x10]
push eax
push 0
mov eax, dword [ebx + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00426fd4
push eax
call sub.user32.dll_UpdateLayeredWindow
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402a80
Capabilities:
Accept command line arguments
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x423100]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea eax, [ebp - 0x10f]
push eax
call fcn.00409c30
add esp, 0xc
push 0x4228a4
mov ecx, dword [ebp + 8]
push ecx
push 0x4228ac
lea edx, [ebp - 0x110]
push edx
call fcn.00409bae
add esp, 0x10
lea eax, [ebp - 0x110]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x424160], eax
cmp dword [0x424160], 0
jne 0x402b17
mov eax, dword [ebp - 0x118]
jmp 0x402bbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00402bd0
add esp, 4
test eax, eax
jne 0x402b3e
mov eax, dword [ebp - 0x118]
jmp 0x402bbe
cmp dword [ebp - 0x11c], 0xb7
jne 0x402b82
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.00402cf0
add esp, 4
mov edx, dword [0x424160]
push edx
call dword [sym.imp.KERNEL32.dll_PulseEvent]
test eax, eax
je 0x402b76
mov eax, dword [0x424160]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x118], 1
jmp 0x402bbe
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x424164], eax
cmp dword [0x424164], 0
je 0x402bbe
lea ecx, [ebp - 0x114]
push ecx
push 0
push 0
push 0x402d50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004079d2
mov esp, ebp
pop ebp
ret

Function at 0x402bd0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [0x424168], 0
push 0x104
call fcn.0040790f
add esp, 4
mov dword [ebp - 4], eax
push 0x104
call fcn.0040790f
add esp, 4
mov dword [ebp - 8], eax
push 0x422838
mov eax, dword [ebp + 8]
push eax
push 0x42284c
mov ecx, dword [ebp - 4]
push ecx
call fcn.00409bae
add esp, 0x10
push 0x422854
mov edx, dword [ebp + 8]
push edx
push 0x422868
mov eax, dword [ebp - 8]
push eax
call fcn.00409bae
add esp, 0x10
mov ecx, dword [ebp - 8]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x424170], eax
mov edx, dword [ebp - 4]
push edx
push 0x104
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [0x42416c], eax
cmp dword [0x42416c], 0
jne 0x402c70
xor eax, eax
jmp 0x402ce3
push 0x208
push 0
push 0
push 2
mov eax, dword [0x42416c]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x424168], eax
cmp dword [0x424168], 0
jne 0x402ca6
push 0x422870
call fcn.00403170
add esp, 4
xor eax, eax
jmp 0x402ce3
push 0x3e8
mov ecx, dword [0x424170]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x402cde
push 0x104
push 0
mov edx, dword [0x424168]
push edx
call fcn.00409c30
add esp, 0xc
mov eax, dword [0x424170]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x402e80
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x423100]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x1a0], 0
call fcn.00403020
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
push 0x4228b8
lea ecx, [ebp - 0x1e8]
push ecx
call fcn.00407f5c
add esp, 0xc
mov word [ebp - 0x1f4], 0x101
lea edx, [ebp - 0x198]
push edx
mov ax, word [ebp - 0x1f4]
push eax
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x402eea
call sub.WSOCK32.dll_WSACleanup
xor eax, eax
jmp 0x40300a
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
mov dword [ebp - 0x1a8], eax
cmp dword [ebp - 0x1a8], 0xffffffff
jne 0x402f10
call sub.WSOCK32.dll_WSACleanup
xor eax, eax
jmp 0x40300a
mov word [ebp - 0x20c], 2
mov cx, word [ebp - 4]
push ecx
call sub.WSOCK32.dll_htons
mov word [ebp - 0x20a], ax
push 0x4228c0
call sub.WSOCK32.dll_inet_addr
mov dword [ebp - 0x208], eax
push 0x10
lea edx, [ebp - 0x20c]
push edx
mov eax, dword [ebp - 0x1a8]
push eax
call sub.WSOCK32.dll_connect
test eax, eax
je 0x402f5f
call sub.WSOCK32.dll_WSACleanup
xor eax, eax
jmp 0x40300a
mov ecx, dword [0x4228b4]
push ecx
call fcn.0040790f
add esp, 4
mov dword [ebp - 0x1f0], eax
mov edx, dword [0x4228b4]
push edx
call fcn.0040790f
add esp, 4
mov dword [ebp - 0x19c], eax
mov eax, dword [ebp + 8]
push eax
push 0x4228cc
mov ecx, dword [ebp - 0x1f0]
push ecx
call fcn.00409bae
add esp, 0xc
push 0
mov edx, dword [ebp - 0x1f0]
push edx
call fcn.00409db0
add esp, 4
push eax
mov eax, dword [ebp - 0x1f0]
push eax
mov ecx, dword [ebp - 0x1a8]
push ecx
call sub.WSOCK32.dll_send
push 0
mov edx, dword [0x4228b4]
push edx
mov eax, dword [ebp - 0x19c]
push eax
mov ecx, dword [ebp - 0x1a8]
push ecx
call sub.WSOCK32.dll_recv
mov edx, dword [ebp - 0x1f0]
push edx
call fcn.00407832
add esp, 4
mov eax, dword [ebp - 0x19c]
push eax
call fcn.00407832
add esp, 4
call sub.WSOCK32.dll_WSACleanup
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004079d2
mov esp, ebp
pop ebp
ret
Function at 0x403c40
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x4241d0], 0
jne 0x403c5f
mov eax, dword [0x4241cc]
push eax
call fcn.00403cd0
add esp, 4
mov dword [0x4241d0], eax
mov ecx, dword [0x4241d0]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov edx, dword [0x4241d0]
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
mov eax, dword [0x4241d0]
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [0x4241d0]
push ecx
call dword [sym.imp.USER32.dll_IsIconic]
neg eax
sbb eax, eax
and eax, 4
add eax, 5
push eax
mov edx, dword [0x4241d0]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4241d0]
push eax
call dword [sym.imp.USER32.dll_BringWindowToTop]
pop ebp
ret
Function at 0x405ca0
Capabilities:
Accept command line arguments
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x423100]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea eax, [ebp - 0x10f]
push eax
call fcn.00409c30
add esp, 0xc
push str._Event
mov ecx, dword [ebp + 8]
push ecx
push str._s_s
lea edx, [ebp - 0x110]
push edx
call fcn.00409bae
add esp, 0x10
lea eax, [ebp - 0x110]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x424210], eax
cmp dword [0x424210], 0
jne 0x405d37
mov eax, dword [ebp - 0x118]
jmp 0x405dde
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00405df0
add esp, 4
test eax, eax
jne 0x405d5e
mov eax, dword [ebp - 0x118]
jmp 0x405dde
cmp dword [ebp - 0x11c], 0xb7
jne 0x405da2
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.00405f10
add esp, 4
mov edx, dword [0x424210]
push edx
call dword [sym.imp.KERNEL32.dll_PulseEvent]
test eax, eax
je 0x405d96
mov eax, dword [0x424210]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x118], 1
jmp 0x405dde
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x424214], eax
cmp dword [0x424214], 0
je 0x405dde
lea ecx, [ebp - 0x114]
push ecx
push 0
push 0
push 0x405f70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004079d2
mov esp, ebp
pop ebp
ret

Function at 0x405df0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [0x424218], 0
push 0x104
call fcn.0040790f
add esp, 4
mov dword [ebp - 4], eax
push 0x104
call fcn.0040790f
add esp, 4
mov dword [ebp - 8], eax
push str._Data_Mapping_File
mov eax, dword [ebp + 8]
push eax
push 0x422f94
mov ecx, dword [ebp - 4]
push ecx
call fcn.00409bae
add esp, 0x10
push str._Data_Mapping_Mutex
mov edx, dword [ebp + 8]
push edx
push 0x422fb0
mov eax, dword [ebp - 8]
push eax
call fcn.00409bae
add esp, 0x10
mov ecx, dword [ebp - 8]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x424220], eax
mov edx, dword [ebp - 4]
push edx
push 0x104
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [0x42421c], eax
cmp dword [0x42421c], 0
jne 0x405e90
xor eax, eax
jmp 0x405f03
push 0x104
push 0
push 0
push 2
mov eax, dword [0x42421c]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x424218], eax
cmp dword [0x424218], 0
jne 0x405ec6
push str.Failed_to_map_the_file._n
call fcn.00406390
add esp, 4
xor eax, eax
jmp 0x405f03
push 0x3e8
mov ecx, dword [0x424220]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x405efe
push 0x104
push 0
mov edx, dword [0x424218]
push edx
call fcn.00409c30
add esp, 0xc
mov eax, dword [0x424220]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, 1
mov esp, ebp
pop ebp
ret