joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f78e8
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffff88
mov dword [esp + 4], edx
mov dword [esp], eax
lea eax, [esp + 0x39]
xor ecx, ecx
mov edx, 0x3f
call fcn.00403340
lea edx, [esp + 0xc]
mov ecx, 0x2d
mov eax, dword [esp]
mov ebx, dword [eax]
call dword [ebx + 8]
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
je 0x4f7a6d
mov edi, 1
xor esi, esi
jmp 0x4f79ad
mov al, byte [esp + edi + 0xb]
xor edx, edx
mov dl, al
shr edx, 2
and dl, 0x3f
and edx, 0xff
mov dl, byte [edx + 0x51431c]
mov byte [esp + esi + 0x39], dl
mov edx, eax
shl edx, 4
xor eax, eax
mov al, byte [esp + edi + 0xc]
shr eax, 4
or dl, al
and dl, 0x3f
xor eax, eax
mov al, dl
mov al, byte [eax + 0x51431c]
mov byte [esp + esi + 0x3a], al
mov dl, byte [esp + edi + 0xc]
shl edx, 2
mov al, byte [esp + edi + 0xd]
xor ecx, ecx
mov cl, al
shr ecx, 6
or dl, cl
and dl, 0x3f
and edx, 0xff
mov dl, byte [edx + 0x51431c]
mov byte [esp + esi + 0x3b], dl
mov edx, eax
and dl, 0x3f
xor eax, eax
mov al, dl
mov al, byte [eax + 0x51431c]
mov byte [esp + esi + 0x3c], al
add edi, 3
add esi, 4
mov eax, dword [esp + 8]
sub eax, 2
cmp edi, eax
jle 0x4f792e
cmp edi, dword [esp + 8]
jg 0x4f7a53
mov al, byte [esp + edi + 0xb]
xor edx, edx
mov dl, al
shr edx, 2
and dl, 0x3f
and edx, 0xff
mov dl, byte [edx + 0x51431c]
mov byte [esp + esi + 0x39], dl
cmp edi, dword [esp + 8]
jne 0x4f7a0a
mov edx, eax
shl edx, 4
and dl, 0x30
and dl, 0x3f
xor eax, eax
mov al, dl
mov al, byte [eax + 0x51431c]
mov byte [esp + esi + 0x3a], al
mov byte [esp + esi + 0x3b], 0x3d
jmp 0x4f7a4b
mov edx, eax
shl edx, 4
and dl, 0x30
xor eax, eax
mov al, byte [esp + edi + 0xc]
shr eax, 4
and al, 0xf
or dl, al
and dl, 0x3f
xor eax, eax
mov al, dl
mov al, byte [eax + 0x51431c]
mov byte [esp + esi + 0x3a], al
mov dl, byte [esp + edi + 0xc]
shl edx, 2
and dl, 0x3c
and dl, 0x3f
xor eax, eax
mov al, dl
mov al, byte [eax + 0x51431c]
mov byte [esp + esi + 0x3b], al
mov byte [esp + esi + 0x3c], 0x3d
add esi, 4
lea edx, [esp + 0x39]
mov ecx, esi
mov eax, dword [esp + 4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp dword [esp + 8], 0x2d
jge 0x4f7905
add esp, 0x78
pop edi
pop esi
pop ebx
ret

Function at 0x4f7f44
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, edx
dec eax
test eax, eax
jb 0x4f7f72
inc eax
xor edx, edx
mov dl, byte [ebx]
mov esi, dword [ecx]
and esi, 0xff
xor edx, esi
mov edx, dword [edx*4 + 0x5143ac]
mov esi, dword [ecx]
shr esi, 8
xor edx, esi
mov dword [ecx], edx
inc ebx
dec eax
jne 0x4f7f50
pop esi
pop ebx
ret
Function at 0x4f8674
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe88
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x178], ecx
mov dword [ebp - 0x170], ecx
mov dword [ebp - 0x174], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404fa8
xor eax, eax
push ebp
push 0x4f893f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x514ea8]
cmp dword [eax], 2
jne 0x4f8763
mov eax, dword [0x514a0c]
cmp dword [eax], 5
jle 0x4f8763
mov eax, dword [ebp - 4]
call fcn.004f94ec
test al, al
jne 0x4f890e
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
push pe_nt_image_headers32
lea eax, [ebp - 0x15c]
push eax
mov eax, dword [ebp - 8]
call fcn.00404fb8
push eax
call sub.kernel32.dll_GetVolumeInformationA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x4f890e
lea eax, [ebp - 0x160]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x168], eax
mov byte [ebp - 0x164], 0
lea edx, [ebp - 0x168]
xor ecx, ecx
mov eax, 0x4f8958
call fcn.0040a6c4
mov edx, dword [ebp - 0x160]
mov eax, dword [ebp - 4]
call fcn.00404b5c
jmp 0x4f890e
xor eax, eax
push ebp
push 0x4f8907
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 4
call fcn.00402818
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4f886c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4f8960
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x10], eax
push 0x4f8970
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x3c]
push eax
call ebx
test eax, eax
jne 0x4f882b
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
push pe_nt_image_headers32
lea eax, [ebp - 0x15c]
push eax
mov eax, dword [ebp - 8]
call fcn.00404fb8
push eax
call sub.kernel32.dll_GetVolumeInformationA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x4f8862
lea eax, [ebp - 0x16c]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x168], eax
mov byte [ebp - 0x164], 0
lea edx, [ebp - 0x168]
xor ecx, ecx
mov eax, 0x4f8958
call fcn.0040a6c4
mov edx, dword [ebp - 0x16c]
mov eax, dword [ebp - 4]
call fcn.00404b5c
jmp 0x4f8862
lea eax, [ebp - 0x174]
lea edx, [ebp - 0x5c]
mov ecx, 0x20
call fcn.00404d70
mov eax, dword [ebp - 0x174]
lea edx, [ebp - 0x170]
call fcn.00409354
mov ecx, dword [ebp - 0x170]
mov eax, dword [ebp - 4]
mov edx, 0x4f8984
call fcn.00404e0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f88e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f890e
mov eax, dword [ebp - 0x14]
call fcn.00402838
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f8946
lea eax, [ebp - 0x178]
mov edx, 4
call fcn.00404b2c
lea eax, [ebp - 0x160]
call fcn.00404b08
lea eax, [ebp - 8]
call fcn.00404b08
ret
Function at 0x4f8ec8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc34
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x3c8], edx
mov dword [ebp - 0x3cc], edx
mov dword [ebp - 0x3c4], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4f913f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404b08
lea eax, [ebp - 0xc]
mov ecx, 0x4f9158
mov edx, dword [0x516f48]
call fcn.00404e0c
mov eax, dword [ebp - 0xc]
call fcn.00409b20
test al, al
jmp 0x4f8f35
lea eax, [ebp - 0x14]
call fcn.004bb400
lea eax, [ebp - 0x3c4]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404dc0
mov ecx, eax
sub ecx, 2
mov edx, 2
mov eax, dword [ebp - 0x14]
call fcn.00405018
mov edx, dword [ebp - 0x3c4]
lea eax, [ebp - 0x14]
mov ecx, 0x4f916c
call fcn.00404e0c
push 0xff
lea eax, [ebp - 0x3c0]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x3cc]
lea edx, [ebp - 0x3c0]
mov ecx, pe_nt_image_headers32
call fcn.00404d70
mov eax, dword [ebp - 0x3cc]
lea edx, [ebp - 0x3c8]
call fcn.00409354
push dword [ebp - 0x3c8]
push 0x4f917c
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404e80
xor eax, eax
push ebp
push 0x4f910a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x516f74]
call fcn.004f8e40
xor eax, eax
push ebp
push 0x4f9006
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov ecx, 0x516ef4
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.004f6ce0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f9010
mov dl, 1
mov eax, dword [0x41cd1c]
call fcn.00403c8c
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4f906d
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00421bf8
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.0042146c
lea eax, [ebp - 8]
call fcn.004f89e0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.004f8988
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f9074
mov eax, dword [ebp - 8]
call fcn.00403cbc
ret
Function at 0x5026c0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x502831
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x50280c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x111], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.00404ce8
lea eax, [ebp - 0x118]
mov edx, 0x502848
call fcn.00404dc8
mov eax, dword [ebp - 0x118]
call fcn.00404fb8
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x50277e
lea eax, [ebp - 0x111]
call fcn.00409f24
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.00404bf8
jmp 0x502785
mov eax, esi
call fcn.00404b08
cmp bl, 0x61
jae 0x5027a6
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0040e32c
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.00404b5c
jmp 0x5027c0
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.0040e2a0
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.00404b5c
lea eax, [ebp - 0x124]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x128], 0xb
lea edx, [ebp - 0x12c]
xor ecx, ecx
mov eax, 0x502854
call fcn.0040a6c4
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.00404b5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x502813
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x4b1a80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6f000]
push edi
jmp 0x4b1a9a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b1aa1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b1a90
mov eax, 1
add ebx, ebx
jne 0x4b1ab3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b1ac4
jne 0x4b1ae3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b1ae3
dec eax
add ebx, ebx
jne 0x4b1ad0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b1aa8
add ebx, ebx
jne 0x4b1adf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b1b35
xor ecx, ecx
sub eax, 3
jb 0x4b1afb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b1b6a
sar eax, 1
mov ebp, eax
jmp 0x4b1b06
add ebx, ebx
jne 0x4b1b06
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b1ad4
inc ecx
add ebx, ebx
jne 0x4b1b14
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b1ad4
add ebx, ebx
jne 0x4b1b21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b1b16
jne 0x4b1b32
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b1b16
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b1b54
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b1b46
jmp 0x4b1a96
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b1b54
add edi, ecx
jmp 0x4b1a96
pop esi
mov edi, esi
mov ecx, 0x377e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b1b72
cmp byte [edi], 0x11
jne 0x4b1b72
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4b1b77
lea edi, [esi + 0xad000]
mov eax, dword [edi]
or eax, eax
je 0x4b1bef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb2518]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb266c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b1ba4
mov ecx, edi
jns 0x4b1bd3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb2670]
or eax, eax
je 0x4b1be9
mov dword [ebx], eax
add ebx, 4
jmp 0x4b1bc1
call dword [esi + 0xb2680]
mov ebp, dword [esi + 0xb2674]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4b1c23
sub esp, 0xffffff80
jmp 0x416310
Function at 0x404819
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov al, byte [0x4220e0]
push ebx
push esi
push edi
mov ebx, ecx
push 0x40
mov byte [ebp - 0x110], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x10f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x214]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x110]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 4
jb 0x404880
lea eax, [ebp - 0x110]
push str.Media
push eax
call fcn.00417410
pop ecx
pop ecx
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x110]
lea ecx, [ebp - 0xc]
push eax
push 0x4209c0
push 0x4209b0
push 0x433
mov dword [ebp - 0xc], ebx
call fcn.0040bae1
mov esi, eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404bb8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 8]
xor ebx, ebx
call fcn.00417690
mov edi, eax
mov eax, dword [esi]
pop ecx
cmp dword [eax + 0x64], ebx
je 0x404c22
add eax, 0x68
cmp byte [eax], bl
je 0x404c22
push ebx
push 0x80
push 4
push ebx
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x404c1e
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 4]
push ebx
push eax
push edi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x404c25
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x404c95
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
push dword [esp + 0x18]
call fcn.004167a7
lea ecx, [esi + 0x24]
call fcn.004162aa
lea ecx, [esi + 0x30]
call fcn.004162aa
lea ecx, [esi + 0x3c]
call fcn.004162aa
lea ecx, [esi + 0x48]
call fcn.004162aa
lea ecx, [esi + 0x54]
call fcn.004162aa
lea edi, [esi + 0x60]
mov ecx, edi
call fcn.0040b54b
push 1
mov dword [esi], 0x41b49c
pop eax
mov dword [edi], eax
push 0x9c8
mov dword [esi + 0x64], eax
call fcn.00416fae
xor ebx, ebx
pop ecx
cmp eax, ebx
je 0x404d0c
mov edx, dword [esp + 0x14]
mov ecx, eax
push edx
mov dword [esi + 0xa0], edx
push dword [esp + 0x14]
call fcn.004019bf
jmp 0x404d0e
xor eax, eax
push 0x8c
mov dword [esi + 0x98], eax
call fcn.00416fae
cmp eax, ebx
pop ecx
je 0x404d3c
push dword [esi + 0x98]
mov ecx, eax
push dword [esi + 0xa0]
push dword [esp + 0x18]
call fcn.0040c4cf
jmp 0x404d3e
xor eax, eax
mov dword [esi + 0x8c], eax
cmp dword [eax + 8], ebx
jne 0x404d56
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [esi + 0x98]
call fcn.00401a40
push 0x38
call fcn.00416fae
cmp eax, ebx
pop ecx
je 0x404d7e
push ebx
push edi
push dword [esi + 0x98]
mov ecx, eax
call fcn.0041332c
jmp 0x404d80
xor eax, eax
push 0x30
mov dword [esi + 0x7c], eax
call fcn.00416fae
cmp eax, ebx
pop ecx
je 0x404d99
push ebx
mov ecx, eax
call fcn.00409b01
jmp 0x404d9b
xor eax, eax
push 0x40
mov dword [esi + 0x80], eax
call fcn.00416fae
cmp eax, ebx
pop ecx
je 0x404dbd
push esi
mov ecx, eax
push dword [esi + 0x98]
call fcn.0040a03f
jmp 0x404dbf
xor eax, eax
push 4
mov dword [esi + 0x88], eax
call fcn.00416fae
cmp eax, ebx
pop ecx
je 0x404de0
push dword [esi + 0x98]
mov ecx, eax
call fcn.004048bf
jmp 0x404de2
xor eax, eax
push 0x1c
mov dword [esi + 0x90], eax
call fcn.00416fae
cmp eax, ebx
pop ecx
je 0x404e01
push 0x10
push 0x64
mov ecx, eax
call fcn.0041631f
jmp 0x404e03
xor eax, eax
push 0x14
mov dword [esi + 0x9c], eax
call fcn.00416fae
cmp eax, ebx
pop ecx
je 0x404e24
push dword [esi + 0x98]
mov ecx, eax
call fcn.00413995
jmp 0x404e26
xor eax, eax
lea edi, [esi + 0x94]
push 0x168
mov dword [edi], eax
call fcn.00416fae
cmp eax, ebx
pop ecx
je 0x404e4f
push ebx
mov ecx, eax
push dword [esi + 0x98]
push dword [edi]
call fcn.00414837
jmp 0x404e51
xor eax, eax
mov dword [esi + 0x84], eax
push 0xc0
lea eax, [esi + 0xc8]
push ebx
push eax
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xac], ebx
call fcn.00416fd0
add esp, 0xc
mov ecx, esi
mov dword [esi + 0x188], ebx
mov dword [esi + 0xb0], ebx
mov dword [esi + 0xb4], ebx
mov dword [esi + 0xb8], ebx
mov dword [esi + 0xc0], ebx
mov dword [esi + 0xc4], 1
call fcn.0040877a
push 0x7c
push dword [0x42226c]
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov dword [esi + 0x14], eax
mov eax, esi
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x40618b
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 3
push bind
mov edi, ecx
push dword [ebp + 8]
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [ebp + 0xc]
cmp eax, 0xffffffff
mov dword [esi + 0x34], eax
je 0x40627c
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp + 8]
xor ecx, ecx
xor ebx, ebx
or ecx, eax
or edx, ebx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], edx
mov ecx, dword [esi + 0x20]
or ecx, edx
jne 0x4061ed
push 1
pop eax
jmp 0x406284
push 0
push eax
push dword [ebp + 8]
push 2
push 0
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 0x38], eax
mov ecx, dword [edi + 0x98]
mov edi, dword [esi + 0x20]
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x314]
cdq
cmp dword [esi + 0x24], edx
jl 0x406226
jg 0x406221
cmp edi, eax
jbe 0x406226
mov dword [ebp + 0xc], eax
jmp 0x406229
mov dword [ebp + 0xc], edi
mov edi, dword [esi + 0x2c]
mov eax, edi
mov dword [ebp + 8], edi
mov ebx, dword [ecx + 0x314]
sar eax, 0x1f
mov eax, ebx
cdq
push edx
push eax
push edi
push dword [esi + 0x28]
call fcn.00417840
imul eax, ebx
push dword [ebp + 0xc]
push eax
push edi
push 4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0x30], eax
je 0x40627c
push 1
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x40627c
mov ecx, dword [ebp - 8]
push esi
call fcn.0040628b
xor eax, eax
jmp 0x406284
xor eax, eax
cmp dword [esi + 0x30], eax
setne al
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x406935
Capabilities:
Check for time delay via gettickcount
Read and send data from client to server
Read file via mapping
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
mov dword [ebp - 4], edi
je 0x406a99
cmp dword [esi + 0x34], 0xffffffff
je 0x406a99
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x20]
and dword [ebp + 8], 0
mov edx, dword [esi + 0x2c]
mov ebx, dword [esi + 0x24]
sub eax, ecx
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x98]
sbb ebx, edx
mov edi, dword [eax + 0x318]
mov eax, edi
cdq
push edx
push eax
push dword [esi + 0x2c]
push ecx
call fcn.004178f0
sub edi, eax
test ebx, ebx
jl 0x4069eb
jg 0x406997
cmp dword [ebp - 0xc], 0
jbe 0x4069eb
mov eax, edi
cdq
cmp ebx, edx
jl 0x4069aa
jg 0x4069a5
cmp dword [ebp - 0xc], eax
jbe 0x4069aa
mov dword [ebp - 8], edx
jmp 0x4069b0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], ebx
push 0
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
mov eax, dword [eax + 0x314]
cdq
push edx
push eax
push dword [esi + 0x2c]
push dword [esi + 0x28]
call fcn.004178f0
add eax, dword [esi + 0x30]
push eax
mov eax, dword [esi + 8]
push dword [eax + 8]
call dword [sym.imp.WSOCK32.dll_send]
test eax, eax
mov dword [ebp + 8], eax
jl 0x406a99
mov eax, dword [ebp + 8]
cdq
add dword [esi + 0x28], eax
adc dword [esi + 0x2c], edx
mov ecx, dword [esi + 0x28]
cmp ecx, dword [esi + 0x20]
mov edi, dword [esi + 0x2c]
jne 0x406a16
cmp edi, dword [esi + 0x24]
jne 0x406a16
xor eax, eax
cmp dword [esi + 0x18], 0x62
setne al
add eax, 7
mov dword [esi + 0x48], eax
jmp 0x406a88
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0x98]
mov eax, dword [eax + 0x314]
cdq
push edx
push eax
push edi
push ecx
call fcn.004178f0
or eax, edx
jne 0x406a88
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esi + 0x28]
mov edi, dword [esi + 0x20]
mov edx, dword [esi + 0x2c]
mov ecx, dword [esi + 0x24]
sub edi, eax
mov eax, dword [ebx + 0x98]
sbb ecx, edx
mov eax, dword [eax + 0x314]
cdq
cmp ecx, edx
jl 0x406a68
jg 0x406a63
cmp edi, eax
jbe 0x406a68
mov dword [ebp - 8], edx
jmp 0x406a6d
mov eax, edi
mov dword [ebp - 8], ecx
push eax
mov eax, dword [esi + 0x2c]
push dword [esi + 0x28]
mov ecx, eax
sar ecx, 0x1f
push eax
push 4
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 8]
push 1
mov dword [ecx + 0x20], eax
pop eax
jmp 0x406a9b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40744a
Capabilities:
Set socket configuration

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
mov esi, ecx
je 0x4074a5
mov eax, dword [esi + 0x24]
lea ebx, [esi + 0x24]
mov ecx, ebx
call dword [eax + 4]
mov edi, eax
add eax, 0xffffffd0
neg edi
sbb edi, edi
and edi, eax
je 0x4074a5
mov eax, dword [esp + 0x10]
cmp dword [edi + 0x44], eax
jne 0x407483
mov ecx, edi
call fcn.00412965
cmp eax, 1
jne 0x4074e5
mov eax, dword [ebx]
mov ecx, edi
add edi, 0x30
neg ecx
sbb ecx, ecx
and ecx, edi
push ecx
mov ecx, ebx
call dword [eax + 8]
mov ecx, eax
add eax, 0xffffffd0
neg ecx
sbb ecx, ecx
and ecx, eax
mov edi, ecx
jne 0x40746e
push 0x8304
call fcn.00416fae
xor ebx, ebx
pop ecx
cmp eax, ebx
je 0x4074f1
push dword [esp + 0x14]
lea ecx, [esi + 0x60]
push dword [esp + 0x14]
push dword [esi + 0x90]
push dword [esi + 0x98]
push ecx
mov ecx, eax
push dword [esi + 0x94]
push dword [esi + 0x8c]
call fcn.0040fb6f
mov edi, eax
jmp 0x4074f3
push 1
push edi
mov ecx, esi
call fcn.00408890
jmp 0x40755f
xor edi, edi
cmp edi, ebx
jne 0x4074fb
xor eax, eax
jmp 0x407562
mov eax, dword [esi + 0x24]
lea ecx, [esi + 0x24]
lea edx, [edi + 0x30]
push edx
call dword [eax]
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0xe4]
mov eax, dword [edi]
push 0xa
mov ecx, edi
call dword [eax + 4]
push 1
push edi
mov ecx, esi
call fcn.004097a0
cmp dword [esi + 0x6c], ebx
jne 0x40755f
mov eax, dword [esi + 0x98]
cmp dword [eax + 0x390], ebx
jne 0x40755f
mov ax, word [esi + 0xa0]
push 1
push eax
call dword [sym.imp.WSOCK32.dll_htons]
movzx eax, ax
push eax
push str.127.0.0.1
call dword [sym.imp.WSOCK32.dll_inet_addr]
push eax
mov ecx, esi
call fcn.0040824e
push 1
pop eax
pop edi
pop esi
pop ebx
ret 8