joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4daf20
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x519726
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x532014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x414], ebx
push 0
mov dword [ebp - 0x414], ebx
call fcn.00508b63
push eax
call fcn.00506660
add esp, 8
call fcn.0050663f
cdq
mov ecx, 0x3313
idiv ecx
mov edi, edx
call fcn.0050663f
mov ecx, eax
mov eax, 0x55555556
imul ecx
mov esi, edx
shr esi, 0x1f
add esi, edx
imul esi, edi
call fcn.0050663f
imul edx, eax, 0x4d
lea ecx, [ebp - 0x444]
add edx, 0x64
add edx, esi
call fcn.004d45b0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x444]
cmp dword [ebp - 0x430], 0x10
lea edx, [ebp - 0x410]
cmovae eax, dword [ebp - 0x444]
sub edx, eax
nop
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x4dafd0
lea esi, [ebp - 0x410]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4dafe6
push 0x40
push 0
push 0x538560
sub esi, ecx
call fcn.005040f0
add esp, 0xc
mov dword [0x538554], 0
mov edx, esi
mov dword [0x538550], 0
lea ecx, [ebp - 0x410]
mov dword [0x538540], 0x67452301
mov dword [0x538544], 0xefcdab89
mov dword [0x538548], 0x98badcfe
mov dword [0x53854c], 0x10325476
call fcn.004d5530
call fcn.004d55f0
mov ecx, 0x5365a0
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0xf
mov byte [ebp - 0x42c], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4db071
sub ecx, edx
push ecx
push 0x5365a0
lea ecx, [ebp - 0x42c]
call fcn.004e80c0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x430]
cmp edx, 0x10
jb 0x4db0cc
mov ecx, dword [ebp - 0x444]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4db0c2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4db18c
push edx
push ecx
call fcn.004ed663
add esp, 8
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0xf
mov byte [ebp - 0x444], 0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x41c]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
cmp eax, 1
jb 0x4db187
dec eax
mov ecx, 0xa
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x418], 0x10
lea eax, [ebp - 0x42c]
cmovae eax, dword [ebp - 0x42c]
push ecx
inc eax
mov ecx, ebx
push eax
call fcn.004e80c0
mov edx, dword [ebp - 0x418]
cmp edx, 0x10
jb 0x4db169
mov ecx, dword [ebp - 0x42c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4db15f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4db18c
push edx
push ecx
call fcn.004ed663
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ecff1
mov esp, ebp
pop ebp
ret
call fcn.004e8200
call fcn.00506c6a
int3
Function at 0x4edcc7
Capabilities:
Parse pe header

Disassembly:
push 0
call 0x4bd0cfb
nop
test eax, eax
je 0x4edd07
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4edd07
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4edd07
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4edd07
cmp dword [ecx + 0x74], 0xe
jbe 0x4edd07
cmp dword [ecx + 0xe8], 0
je 0x4edd07
mov al, 1
ret
xor al, al
ret
Function at 0x94c058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x94c1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x94c07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x94c06a
add dl, dl
jne 0x94c089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x94c0dc
xor eax, eax
add dl, dl
jne 0x94c096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x94c17d
add dl, dl
jne 0x94c0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x94c0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x94c0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x94c0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x94c0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x94c075
mov eax, 1
add dl, dl
jne 0x94c0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x94c0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x94c0e1
sub eax, ebx
mov ebx, 1
jne 0x94c128
mov ecx, 1
add dl, dl
jne 0x94c10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x94c119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x94c105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x94c075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x94c13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x94c14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x94c136
cmp eax, 0x7d00
jae 0x94c16d
cmp eax, 0x500
jb 0x94c168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x94c075
cmp eax, 0x7f
ja 0x94c170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x94c075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x94c19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x94c075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40134c
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push str.EXPLOSiON.NFO
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x4013b9
push str.EXPLOSiON.NFO_or_EPNPDA.nfo_not_found_
push 0x3e9
push dword [ebp + 8]
call sub.user32.dll_SetDlgItemTextA
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push str.EPNPDA.NFO
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x4013b9
push str.EXPLOSiON.NFO_or_EPNPDA.nfo_not_found_
push 0x3e9
push dword [ebp + 8]
call sub.user32.dll_SetDlgItemTextA
leave
ret 4
mov dword [0x40414c], eax
push 0
push dword [0x40414c]
call sub.kernel32.dll_GetFileSize
mov dword [0x404158], eax
cmp dword [0x404158], 0
jne 0x4013fa
push str.EXPLOSiON.NFO_or_EPNPDA.nfo_is_damaged..
push 0x3e9
push dword [ebp + 8]
call sub.user32.dll_SetDlgItemTextA
push dword [0x40414c]
call sub.kernel32.dll_CloseHandle
leave
ret 4
push 0
push 0
push 0
push 2
push 0
push dword [0x40414c]
call sub.kernel32.dll_CreateFileMappingA
cmp eax, 0xffffffff
jne 0x401435
push str.File_mapping_error
push 0x3e9
push dword [ebp + 8]
call sub.user32.dll_SetDlgItemTextA
push dword [0x40414c]
call sub.kernel32.dll_CloseHandle
leave
ret 4
mov dword [0x404150], eax
push 0
push 0
push 0
push 4
push dword [0x404150]
call sub.kernel32.dll_MapViewOfFile
mov dword [0x404154], eax
push dword [0x404158]
push dword [0x404154]
call fcn.004016cd
mov dword [0x40419d], eax
push dword [0x404154]
call sub.kernel32.dll_UnmapViewOfFile
push dword [0x404150]
call sub.kernel32.dll_CloseHandle
push dword [0x40414c]
call sub.kernel32.dll_CloseHandle
leave
ret 4

Function at 0x40148d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push str.EXPLOSiON.exe
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x4014c7
push str.EXPLOSiON.NFO_or_EPNPDA.nfo_not_found_
push 0x3e9
push dword [ebp + 8]
call sub.user32.dll_SetDlgItemTextA
leave
ret 4
mov dword [0x40414c], eax
push 2
push 0
push 0
push dword [0x40414c]
call sub.kernel32.dll_SetFilePointer
push 1
push 0
push 0xfffffffffffffff6
push dword [0x40414c]
call sub.kernel32.dll_SetFilePointer
push 0
push 0x404210
push 2
push 0x404214
push dword [0x40414c]
call sub.kernel32.dll_ReadFile
mov si, word [0x404214]
mov di, word [str.EXPLOSiON.NFO_is_damaged___]
cmp di, si
je 0x40153b
push str.This_release_in_not_signed...
push 0x3e9
push dword [ebp + 8]
call sub.user32.dll_SetDlgItemTextA
push dword [0x40414c]
call sub.kernel32.dll_CloseHandle
leave
ret 4
push 2
push 0
push 0
push dword [0x40414c]
call sub.kernel32.dll_SetFilePointer
push 1
push 0
push 0xfffffffffffffff8
push dword [0x40414c]
call sub.kernel32.dll_SetFilePointer
push 0
push 0x404210
push 4
push 0x404208
push dword [0x40414c]
call sub.kernel32.dll_ReadFile
push 0
push 0x404210
push 4
push 0x40420c
push dword [0x40414c]
call sub.kernel32.dll_ReadFile
push dword [0x40414c]
call sub.kernel32.dll_CloseHandle
leave
ret 4
Function at 0x40159e
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push str.EXPLOSiON.RAR
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x4015f9
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push str.EPNPDA.RAR
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x4015f9
push str.There_is_no_one_EPN_release_
push 0x3e9
push dword [ebp + 8]
call sub.user32.dll_SetDlgItemTextA
leave
ret 4
mov dword [0x40414c], eax
push 0
push dword [0x40414c]
call sub.kernel32.dll_GetFileSize
mov dword [0x404158], eax
cmp dword [0x404158], 0
jne 0x40163a
push str.EXPLOSiONs_release_is_damaged..
push 0x3e9
push dword [ebp + 8]
call sub.user32.dll_SetDlgItemTextA
push dword [0x40414c]
call sub.kernel32.dll_CloseHandle
leave
ret 4
push 0
push 0
push 0
push 2
push 0
push dword [0x40414c]
call sub.kernel32.dll_CreateFileMappingA
cmp eax, 0xffffffff
jne 0x401675
push str.File_mapping_error
push 0x3e9
push dword [ebp + 8]
call sub.user32.dll_SetDlgItemTextA
push dword [0x40414c]
call sub.kernel32.dll_CloseHandle
leave
ret 4
mov dword [0x404150], eax
push 0
push 0
push 0
push 4
push dword [0x404150]
call sub.kernel32.dll_MapViewOfFile
mov dword [0x404154], eax
push dword [0x404158]
push dword [0x404154]
call fcn.004016cd
mov dword [0x4041a1], eax
push dword [0x404154]
call sub.kernel32.dll_UnmapViewOfFile
push dword [0x404150]
call sub.kernel32.dll_CloseHandle
push dword [0x40414c]
call sub.kernel32.dll_CloseHandle
leave
ret 4

Function at 0x401701
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push str.EXPLOSiON.NFO
call sub.kernel32.dll_CreateFileA
mov dword [0x4042cd], eax
cmp dword [0x4042cd], 0xffffffff
jne 0x401782
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push str.EPNPDA.NFO
call sub.kernel32.dll_CreateFileA
mov dword [0x4042cd], eax
cmp dword [0x4042cd], 0xffffffff
jne 0x401782
push dword [0x40414c]
call sub.kernel32.dll_CloseHandle
push 0x10
push 0x404149
push str.Where_is_EXPLOSiON.NFO__Do_you_know_
push dword [ebp + 8]
call sub.user32.dll_MessageBoxA
push 0
call sub.kernel32.dll_ExitProcess
push 0
push dword [0x4042cd]
call sub.kernel32.dll_GetFileSize
mov dword [0x4042d5], eax
cmp dword [0x4042d5], 0
jne 0x4017c7
push dword [0x4042cd]
call sub.kernel32.dll_CloseHandle
push 0x10
push 0x404149
push str.Size_of_EXPLOSiON.NFO_can_not_be_0...
push dword [ebp + 8]
call sub.user32.dll_MessageBoxA
push 0
call sub.kernel32.dll_ExitProcess
push dword [0x4042d5]
push 0x40
call sub.kernel32.dll_GlobalAlloc
mov dword [0x4042d9], eax
cmp dword [0x4042d9], 0
jne 0x40180c
push dword [0x4042cd]
call sub.kernel32.dll_CloseHandle
push 0x10
push 0x404149
push str.Can_not_alloc_memory...
push dword [ebp + 8]
call sub.user32.dll_MessageBoxA
push 0
call sub.kernel32.dll_ExitProcess
push 0
push 0x4042d1
push dword [0x4042d5]
push dword [0x4042d9]
push dword [0x4042cd]
call sub.kernel32.dll_ReadFile
push dword [0x4042cd]
call sub.kernel32.dll_CloseHandle
push 0x40313c
call sub.gdi32.dll_CreateFontIndirectA
mov dword [0x404029], eax
leave
ret 4
Function at 0x401d00
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [ebp - 0xc], eax
push dword [ebp + 0x14]
push dword [ebp - 0xc]
call sub.user32.dll_LoadBitmapA
mov dword [ebp - 0x18], eax
push dword [ebp + 0x18]
push dword [ebp - 0xc]
call sub.user32.dll_LoadBitmapA
mov dword [ebp - 0x1c], eax
jmp 0x401d3f
mov dword [ebp - 0x5c], 0x30
mov dword [ebp - 0x58], 0x2000
mov dword [ebp - 0x54], 0x401e82
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0x10
push dword [ebp - 0xc]
pop dword [ebp - 0x48]
mov dword [ebp - 0x3c], 0x10
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0x401d2e
mov dword [ebp - 0x44], 0
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call sub.user32.dll_RegisterClassExA
push 0
push dword [ebp - 0xc]
push dword [ebp + 0x1c]
push dword [ebp + 8]
push 0x64
push 0x64
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x50000000
push 0
push 0x401d2e
push 0x20
call sub.user32.dll_CreateWindowExA
mov dword [ebp - 4], eax
push dword [ebp - 0x18]
push 0
push dword [ebp - 4]
call sub.user32.dll_SetWindowLongA
push dword [ebp - 0x1c]
push 4
push dword [ebp - 4]
call sub.user32.dll_SetWindowLongA
jmp 0x401df1
push 0
push dword [ebp - 0xc]
push dword [ebp + 0x1c]
push dword [ebp - 4]
push 0
push 0
push 0
push 0
push 0x5000000e
push 0
push 0x401dea
push 0
call sub.user32.dll_CreateWindowExA
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
push 0
push 0x172
push dword [ebp - 8]
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 8]
call sub.user32.dll_GetWindowRect
push dword [ebp - 8]
push 8
push dword [ebp - 4]
call sub.user32.dll_SetWindowLongA
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x28]
sub eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
sub eax, edx
mov dword [ebp - 0x10], eax
push 2
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push 0
push 0
push 0
push dword [ebp - 4]
call sub.user32.dll_SetWindowPos
push 5
push dword [ebp - 4]
call sub.user32.dll_ShowWindow
mov eax, dword [ebp - 4]
leave
ret 0x18

Function at 0x401fb8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push 0x404350
push dword [ebp + 0xc]
push 0
call sub.kernel32.dll_FindResourceA
mov dword [ebp - 4], eax
push eax
push 0
call sub.kernel32.dll_LoadResource
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
push 0
call sub.kernel32.dll_SizeofResource
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x402001
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.00402014
jmp 0x40200d
push 2
call sub.kernel32.dll_SetLastError
mov eax, 0
leave
ret 8
Function at 0x40a190
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
mov eax, dword [0x4af9fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
lea edx, [ebp - 0x3f4]
push edx
push 0x20019
push 0
push str.TypeLib
push SysReAllocString
mov dword [ebp - 0x3fc], eax
mov dword [ebp - 0x400], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push SysReAllocString
mov esi, eax
call edi
test esi, esi
je 0x40a1f7
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d6a1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x3f4]
lea eax, [ebp - 0x3f0]
push eax
push 0x20019
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edx, dword [ebp - 0x3f4]
push edx
mov esi, eax
call edi
test esi, esi
jne 0x40a1e5
mov edx, dword [ebp - 0x3f0]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x3f8]
push eax
lea ecx, [ebp - 0x3ec]
push ecx
push esi
push edx
mov dword [ebp - 0x3f8], 0x3e8
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
mov eax, dword [ebp - 0x3f0]
push eax
call edi
test esi, esi
jne 0x40a1e5
mov ecx, dword [ebp - 0x400]
mov edx, dword [ebp - 0x3fc]
push ecx
push edx
lea eax, [ebp - 0x3ec]
push str._d._d
push eax
call fcn.004700ad
mov ecx, dword [ebp - 4]
add esp, 0x10
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.0046d6a1
mov esp, ebp
pop ebp
ret
Function at 0x486cb7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4af9fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00479886
and dword [ebp - 0x14], 0
cmp dword [0x4b230c], 0
mov dword [ebp - 0x18], eax
jne 0x486d6a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x486e12
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x496bb8
push ebx
call edi
test eax, eax
je 0x486e12
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x496ba8
push ebx
mov dword [0x4b230c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4b2310], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4b2314], eax
call edi
push eax
call esi
mov dword [0x4b231c], eax
test eax, eax
je 0x486d6a
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4b2318], eax
mov eax, dword [0x4b2318]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x486dc3
cmp dword [0x4b231c], ecx
je 0x486dc3
push eax
call esi
push dword [0x4b231c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x486dc3
test ebx, ebx
je 0x486dc3
call edi
test eax, eax
je 0x486dba
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x486dba
test byte [ebp - 8], 1
jne 0x486dc3
or dword [ebp + 0x10], 0x200000
jmp 0x486df6
mov eax, dword [0x4b2310]
cmp eax, dword [ebp - 0x18]
je 0x486df6
push eax
call esi
test eax, eax
je 0x486df6
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x486df6
mov eax, dword [0x4b2314]
cmp eax, dword [ebp - 0x18]
je 0x486df6
push eax
call esi
test eax, eax
je 0x486df6
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4b230c]
call esi
test eax, eax
je 0x486e12
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x486e14
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046d6a1
leave
ret
Function at 0x401000
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x5cc5b0]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x401055
mov eax, dword [esp]
cmp al, 2
jne 0x40104f
shr eax, 8
cmp al, 2
jne 0x40104f
call fcn.00401340
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00501f35
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.00501f35
add esp, 0x194
ret
Function at 0x40c280
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x40c2b2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x40c3f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xa4
mov eax, dword [0x5cc5b0]
xor eax, esp
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xb8]
push ebx
mov ebx, dword [esp + 0xb0]
push ebp
mov ebp, dword [esp + 0xb8]
push esi
mov esi, dword [esp + 0xb4]
cmp dword [esi + 0x2e8], 0
push edi
je case.default.0x40c450
test eax, eax
je case.default.0x40c450
mov eax, dword [eax + 0x9c]
test eax, eax
je case.default.0x40c450
lea edx, [ebx - 1]
mov ecx, str.Data
cmp edx, 3
ja case.default.0x40c450
jmp dword [edx*4 + 0x40c56c]
mov ecx, str.Header
mov edx, str.from
jmp 0x40c46d
mov ecx, str.Header
mov edx, 0x56ccbc
push eax
push edx
push ecx
push str.__s__s__s_
lea eax, [esp + 0x20]
push 0xa0
push eax
call fcn.004109d0
lea eax, [esp + 0x28]
add esp, 0x18
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c490
sub eax, edx
mov edi, eax
mov eax, dword [esi + 0x1a8]
test eax, eax
je 0x40c4e5
mov ecx, dword [esi + 0x134]
push ecx
push edi
lea edx, [esp + 0x18]
push edx
push 0
push esi
call eax
add esp, 0x14
test eax, eax
jne 0x40c550
mov eax, dword [esi + 0x1a8]
test eax, eax
je 0x40c513
mov ecx, dword [esi + 0x134]
mov edx, dword [esp + 0xc4]
push ecx
push edx
push ebp
push ebx
push esi
call eax
add esp, 0x14
jmp 0x40c550
mov eax, dword [esi + 0x130]
push eax
push 1
push 2
push 0x56cc98
call fcn.00503c46
mov ecx, dword [esi + 0x130]
push ecx
push 1
lea edx, [esp + 0x28]
push edi
push edx
call fcn.00503c46
add esp, 0x20
jmp case.default.0x40c450
test ebx, ebx
js 0x40c54e
cmp ebx, 2
jg 0x40c54e
mov eax, dword [esi + 0x130]
push eax
push 1
lea ecx, [ebx + ebx*2 + 0x56cc98]
push 2
push ecx
call fcn.00503c46
mov edx, dword [esi + 0x130]
mov eax, dword [esp + 0xd4]
push edx
push 1
push eax
push ebp
call fcn.00503c46
add esp, 0x20
xor eax, eax
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00501f35
add esp, 0xa4
ret
Function at 0x40c610
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [0x5cc5b0]
xor eax, esp
mov dword [esp], eax
mov ecx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push ecx
lea ebx, [esi + 0x604]
push 0x4000
push ebx
call fcn.00410970
mov eax, dword [esi + 0x138]
add esp, 0x10
test eax, eax
je 0x40c670
cmp dword [esi + 0x8630], 0
jne 0x40c670
push ebx
push 0x5689a0
push 0x100
push eax
call fcn.004109d0
add esp, 0x10
mov dword [esi + 0x8630], 1
cmp dword [esi + 0x334], 0
je 0x40c6f7
mov eax, ebx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c680
sub eax, edx
push edi
mov edi, eax
cmp edi, 0x3fff
jae 0x40c6a4
mov byte [esi + edi + 0x604], 0xa
inc edi
mov byte [esi + edi + 0x604], cl
mov eax, dword [esi + 0x1a8]
test eax, eax
je 0x40c6ce
mov edx, dword [esi + 0x134]
push edx
push edi
push ebx
push 0
push esi
call eax
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [esp]
xor ecx, esp
call fcn.00501f35
pop ecx
ret
mov eax, dword [esi + 0x130]
push eax
push 1
push 2
push 0x56cc98
call fcn.00503c46
mov ecx, dword [esi + 0x130]
push ecx
push 1
push edi
push ebx
call fcn.00503c46
add esp, 0x20
pop edi
mov ecx, dword [esp + 8]
pop esi
pop ebx
xor ecx, esp
call fcn.00501f35
pop ecx
ret