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

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
mov eax, 0x55555556
push esi
lea ecx, [ebp*4]
imul ecx
mov eax, edx
shr eax, 0x1f
lea ecx, [edx + eax + 4]
push ecx
call dword [0x59a05c]
add esp, 4
mov esi, eax
test eax, eax
jne 0x402843
pop esi
or eax, 0xffffffff
pop ebp
ret
xor ecx, ecx
push edi
test ebp, ebp
jle 0x4028d0
mov edi, dword [esp + 0x10]
push ebx
xor edx, edx
mov dl, byte [ecx + edi]
inc ecx
shl edx, 8
cmp ecx, ebp
jge 0x402867
xor ebx, ebx
mov bl, byte [ecx + edi]
add edx, ebx
inc ecx
shl edx, 8
cmp ecx, ebp
jge 0x402876
xor ebx, ebx
mov bl, byte [ecx + edi]
add edx, ebx
mov ebx, edx
inc ecx
sar ebx, 0x12
and ebx, 0x3f
mov bl, byte [ebx + 0x5b87e4]
mov byte [esi], bl
mov ebx, edx
sar ebx, 0xc
and ebx, 0x3f
mov bl, byte [ebx + 0x5b87e4]
mov byte [esi + 1], bl
mov ebx, edx
sar ebx, 6
and ebx, 0x3f
and edx, 0x3f
cmp ecx, ebp
mov bl, byte [ebx + 0x5b87e4]
mov byte [esi + 2], bl
mov dl, byte [edx + 0x5b87e4]
mov byte [esi + 3], dl
jle 0x4028bd
mov byte [esi + 3], 0x3d
lea edx, [ebp + 1]
cmp ecx, edx
jle 0x4028c8
mov byte [esi + 2], 0x3d
add esi, 4
cmp ecx, ebp
jl 0x402853
pop ebx
mov ecx, dword [esp + 0x18]
mov byte [esi], 0
mov edi, eax
mov dword [ecx], eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
pop esi
mov eax, ecx
pop ebp
ret

Function at 0x4028f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
inc ebx
push ebx
call dword [0x59a05c]
mov ecx, ebx
mov ebp, eax
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
add esp, 4
and ecx, 3
xor eax, eax
test ebx, ebx
rep movsb byte es:[edi], byte [esi]
jle 0x40293f
mov cl, byte [eax + ebp]
xor cl, 0x11
add cl, 0x77
xor cl, 0x11
mov byte [eax + ebp], cl
inc eax
cmp eax, ebx
jl 0x40292b
lea edx, [esp + 0x14]
push edx
push ebx
push ebp
call fcn.00402810
push ebp
call dword [0x59a060]
mov eax, dword [esp + 0x24]
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4046b0
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov edx, dword [esp + 8]
lea eax, [esp]
push eax
push edx
mov dword [esp + 8], 0
call fcn.00404560
xor ecx, ecx
test eax, eax
jle 0x404704
push ebx
mov edx, dword [esp + 4]
mov bl, byte [ecx + edx]
xor bl, 0x11
mov byte [ecx + edx], bl
mov edx, dword [esp + 4]
mov bl, byte [ecx + edx]
add bl, 0x89
mov byte [ecx + edx], bl
mov edx, dword [esp + 4]
mov bl, byte [ecx + edx]
xor bl, 0x11
mov byte [ecx + edx], bl
inc ecx
cmp ecx, eax
jl 0x4046cf
mov eax, dword [esp + 4]
pop ebx
pop ecx
ret 4
mov eax, dword [esp]
pop ecx
ret 4

Function at 0x406780
Capabilities:
Get file system object information

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x160
cmp eax, 0xffffffff
jne 0x406796
mov eax, 0x80
jmp 0x406798
or al, 0x80
mov edx, dword [esp + 0x164]
push 0x4010
lea ecx, [esp + 4]
push 0x160
push ecx
push eax
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [esp + 4]
add esp, 0x160
ret
Function at 0x407f50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x566d07
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [esp + 0x14], 0
lea eax, [esp + 0x30]
mov edi, 1
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], edi
call fcn.005491a3
push 0x5c
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 2
call fcn.00542877
cmp eax, 0xffffffff
jne 0x407fb8
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.005491a3
mov dword [esp + 0x14], edi
jmp 0x40807a
lea edx, [esp + 0x10]
push eax
push edx
lea ecx, [esp + 0x14]
call fcn.005427ff
mov bl, 3
push 0x5c
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.00542877
cmp eax, 0xffffffff
jne 0x407fed
push 0x5ce648
lea ecx, [esp + 0x10]
call fcn.005495b7
jmp 0x408058
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.005427ff
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 4
call fcn.00549567
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], bl
call fcn.0054942e
lea edx, [esp + 0x18]
push edi
push edx
lea ecx, [esp + 0x14]
call fcn.00542783
mov eax, dword [eax]
push 0x5b8e88
push eax
call dword [0x59a070]
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
setne bl
call fcn.0054942e
test bl, bl
je 0x408058
push 0x5b8e88
lea ecx, [esp + 0x10]
call fcn.0054980a
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.005491a3
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], edi
mov byte [esp + 0x24], 2
call fcn.0054942e
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 1
call fcn.0054942e
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 0
call fcn.0054942e
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x408c40
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x566d7b
push eax
mov dword fs:[0], esp
sub esp, 0x354
xor eax, eax
push ebx
mov ebx, dword [esp + 0x368]
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x41
lea edi, [esp + 0x15c]
rep stosd dword es:[edi], eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + ebx - 1], 0x5c
je 0x408c91
mov edi, 0x5b8e88
mov dword [esp + 0x14], edi
jmp 0x408c9d
mov dword [esp + 0x14], 0x5ce648
mov edi, dword [esp + 0x14]
push edi
push ebx
lea eax, [esp + 0x164]
push str._s_s.
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x15c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
jne 0x408cda
xor al, al
jmp 0x408e24
cmp byte [esp + 0x48], 0x2e
je 0x408e07
test byte [esp + 0x1c], 0x10
je 0x408d1d
lea eax, [esp + 0x48]
lea ecx, [esp + 0x260]
push eax
push edi
push ebx
push str._s_s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea edx, [esp + 0x260]
mov ecx, esi
push edx
call fcn.00408c40
jmp 0x408e07
mov eax, dword [0x5bb5e4]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x48]
lea edx, [esp + 0x10]
push ecx
push edi
push ebx
push str._s_s_s
push edx
mov dword [esp + 0x380], 0
call fcn.00542c1f
mov eax, dword [esi + 0xb4]
mov ebp, dword [esi + 0xac]
add esp, 0x14
test eax, eax
jne 0x408d96
mov eax, dword [esi + 0xbc]
push 0xc
lea ecx, [esi + 0xb8]
push eax
push ecx
call fcn.005447b6
mov ecx, dword [esi + 0xbc]
lea edx, [ecx + ecx*2]
dec ecx
test ecx, ecx
lea eax, [eax + edx*4 - 8]
jl 0x408d96
inc ecx
mov edx, dword [esi + 0xb4]
mov dword [eax], edx
mov dword [esi + 0xb4], eax
sub eax, 0xc
dec ecx
jne 0x408d82
mov edi, dword [esi + 0xb4]
push 1
mov eax, dword [edi]
mov dword [esi + 0xb4], eax
mov dword [edi + 4], ebp
mov dword [edi], 0
mov edx, dword [esi + 0xb0]
lea ebp, [edi + 8]
inc edx
push ebp
mov dword [esi + 0xb0], edx
call fcn.00542cd0
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebp
call fcn.00549567
mov eax, dword [esi + 0xac]
test eax, eax
je 0x408ddf
mov dword [eax], edi
jmp 0x408de5
mov dword [esi + 0xa8], edi
lea ecx, [esp + 0x10]
mov dword [esi + 0xac], edi
mov dword [esp + 0x36c], 0xffffffff
call fcn.0054942e
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x408cda
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
mov ecx, dword [esp + 0x364]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x360
ret 4
Function at 0x409c80
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 9
mov ecx, dword [esi + 0x654]
add ecx, 0x24
call fcn.004026a0
mov ecx, dword [esi + 0x654]
push 1
add ecx, 0x24
mov ebp, eax
call fcn.004026a0
mov edi, dword [eax + 4]
mov edx, dword [eax]
xor ecx, ecx
xor ebx, ebx
or ecx, edi
or edx, ebx
mov dword [esi + 0x80], ecx
mov dword [esi + 0x84], edx
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 0x654]
mov edx, dword [eax + 4]
add ecx, 0x24
mov dword [esp + 0x1c], edx
call fcn.004024e0
push ebx
push 0x80
push 3
push ebx
push 2
mov edi, eax
push 0x40000000
lea ecx, [esi + 0x60]
push ebx
sub edi, 9
call fcn.0054985e
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [esp + 0x1c]
mov ebx, eax
lea eax, [esp + 0x14]
push 0
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x10], 0
lea edx, [esp + 0x18]
push 0
push edx
push edi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jg 0x409d43
mov ecx, dword [esp + 0x10]
inc ecx
cmp ecx, 0xf
mov dword [esp + 0x10], ecx
jl 0x409d21
cmp dword [esp + 0x10], 0xf
jne 0x409d7e
test eax, eax
jg 0x409d7e
lea eax, [esi + 0x60]
push 0x5b8f1c
push eax
lea eax, [esp + 0x18]
push eax
call fcn.005496c3
mov ecx, dword [eax]
mov edx, dword [esi + 0x1c]
push 0x30
push 0x5b8ed0
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x10]
call fcn.0054942e
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
mov edx, dword [esi + 0x80]
add edx, eax
mov dword [esi + 0x80], edx
mov ecx, dword [esi + 0x84]
adc ecx, 0
mov dword [esi + 0x84], ecx
mov ecx, esi
call fcn.0040a070
mov al, byte [esi + 0x5c]
test al, al
je 0x409dc3
mov ecx, esi
call fcn.0040a040
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
add edx, eax
mov dword [esp + 0x21], ecx
mov dword [esp + 0x25], edx
mov edx, dword [esi + 0x654]
lea ecx, [esp + 0x20]
push 9
push ecx
mov ecx, dword [esi + 0x658]
push edx
mov byte [esp + 0x2c], 7
call fcn.0040d460
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x40a160
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x566f00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov byte [esi + 0x7f4], 1
mov eax, dword [0x5bb5e4]
mov dword [esp + 0x10], eax
mov ecx, dword [esi + 0x7bc]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x1032
push ecx
mov dword [esp + 0x38], 0
call ebx
cmp eax, 1
push 0
push 0
jbe 0x40a1da
mov edx, dword [esi + 0x7bc]
push 0x1032
push edx
call ebx
push eax
lea eax, [esp + 0x14]
push 0x5b8fe0
push eax
call fcn.00542c1f
add esp, 0xc
jmp 0x40a257
mov ecx, dword [esi + 0x7bc]
push 0x1042
push ecx
call ebx
lea edi, [esi + 0x7a0]
push 0
lea edx, [esp + 0x18]
push eax
push edx
mov ecx, edi
call fcn.00543958
mov eax, dword [esi + 0x7bc]
push 0
push 0
push 0x1042
push eax
mov byte [esp + 0x38], 1
call ebx
push eax
mov ecx, edi
call fcn.005439fd
cmp eax, 1
jne 0x40a232
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push 0x5b8fb4
push edx
jmp 0x40a241
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push 0x5b8f9c
push ecx
call fcn.00542c1f
add esp, 0xc
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 0
call fcn.0054942e
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x1c]
push 0x24
push 0x5b8f90
push edx
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
je 0x40a356
push 0
mov ecx, esi
call fcn.00408e40
mov ecx, dword [esi + 0x7bc]
push 2
push 0xffffffffffffffff
push 0x100c
push ecx
call ebx
lea ebp, [eax + 1]
test ebp, ebp
je 0x40a335
mov edx, dword [esi + 0x7bc]
lea edi, [ebp - 1]
push 2
push edi
push 0x100c
push edx
call ebx
lea ebp, [eax + 1]
push 0
lea eax, [esp + 0x1c]
push edi
push eax
lea ecx, [esi + 0x7a0]
call fcn.00543958
push eax
lea eax, [esi + 0x668]
lea ecx, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0x34], 2
call fcn.0054965d
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 4
call fcn.0054942e
push edi
lea ecx, [esi + 0x7a0]
call fcn.005439fd
test eax, eax
je 0x40a314
push 0x5c
lea ecx, [esp + 0x18]
call fcn.00549831
mov edx, dword [esp + 0x14]
mov ecx, esi
push edx
call fcn.0040a8b0
jmp 0x40a31f
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 0
call fcn.0054942e
test ebp, ebp
jne 0x40a29c
push 1
mov ecx, esi
call fcn.00408e40
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x5b8e8c
call fcn.0054949c
mov ecx, esi
call fcn.004070b0
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.0054942e
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret
Function at 0x40a780
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 1
mov ecx, dword [esi + 0x654]
add ecx, 0x24
call fcn.004026a0
mov edi, eax
xor ecx, ecx
mov eax, dword [edi]
mov dword [esp + 0x10], eax
mov ebp, dword [edi + 4]
mov edx, dword [edi]
xor eax, eax
or ecx, ebp
or edx, eax
mov dword [esi + 0x80], ecx
mov ecx, esi
mov dword [esi + 0x84], edx
call fcn.0040a070
mov ecx, dword [esi + 0x80]
mov eax, dword [esi + 0x78]
cmp ecx, eax
jne 0x40a7df
mov edx, dword [esi + 0x84]
mov eax, dword [esi + 0x7c]
cmp edx, eax
je 0x40a8a1
cmp dword [edi + 4], 0xffffffff
je 0x40a8a1
mov al, byte [esi + 0x5c]
test al, al
jne 0x40a8a1
push 0
push 0x80
push 3
push 0
push 1
push OleUIAddVerbMenuA
push 0
lea ecx, [esi + 0x70]
call fcn.0054985e
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40a8a8
lea eax, [esp + 0x10]
push 0
push eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x2000
push 0x40
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [edi + 9]
mov byte [edi], 5
mov ecx, dword [esp + 0x18]
push 0x1ff7
push eax
push ebx
mov dword [edi + 1], ecx
mov dword [edi + 5], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x40a892
mov ecx, dword [esi + 0x654]
add eax, 9
push eax
push edi
push ecx
mov ecx, dword [esi + 0x658]
call fcn.0040d460
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, esi
call fcn.00409ed0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x40a8b0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x44c
lea eax, [esp + 0x348]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x45c]
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push esi
push str._s.
mov ebp, ecx
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x358]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40a905
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x44c
ret 4
cmp byte [esp + 0x3c], 0x2e
je 0x40a957
test byte [esp + 0x10], 0x10
lea eax, [esp + 0x3c]
push eax
push esi
push 0x5b8ff8
je 0x40a93c
lea ecx, [esp + 0x15c]
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0x150]
mov ecx, ebp
push edx
call fcn.0040a8b0
jmp 0x40a957
lea ecx, [esp + 0x260]
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40a905
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
test eax, eax
pop ebp
pop ebx
setne al
add esp, 0x44c
ret 4
Function at 0x40b910
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57ad08
push 0x52e29c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call dword [0x59a05c]
add esp, 4
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x40ba6d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp byte [edi], 0x5c
jne 0x40b9bc
lea eax, [edi + 1]
cmp byte [eax], 0x5c
jne 0x40b9bc
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x40b997
cmp al, 0x5c
je 0x40b997
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x40b97f
cmp byte [esi], 0
je 0x40b9a0
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x40b9b5
cmp al, 0x5c
je 0x40b9b5
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x40b99d
cmp byte [esi], 0
je 0x40b9db
jmp 0x40b9d7
lea eax, [edi + 1]
cmp byte [eax], 0x3a
jne 0x40b9db
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x40b9db
cmp al, 0x5c
jne 0x40b9db
inc esi
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov al, byte [esi]
test al, al
je 0x40ba31
cmp al, 0x5c
jne 0x40ba23
mov byte [esi], 0
push edi
call ebx
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x40ba16
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40ba20
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40ba20
push edi
jmp 0x40ba64
and eax, 0x10
cmp al, 0x10
je 0x40ba20
push edi
jmp 0x40ba64
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x40b9e1
mov dword [ebp - 4], 0xffffffff
push edi
call dword [0x59a060]
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [0x59a060]
add esp, 4
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40c1f0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x567282
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x104
push esi
mov dword [esp + 4], 0
mov ecx, dword [ecx + 4]
mov edx, dword [esp + 0x120]
push ecx
mov ecx, dword [esp + 0x128]
lea eax, [esp + 0xc]
push 0x100
push eax
mov eax, dword [esp + 0x128]
push ecx
push edx
push eax
mov dword [esp + 0x128], 3
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, dword [esp + 0x118]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.0054949c
mov dword [esp + 4], 1
lea ecx, [esp + 0x11c]
mov byte [esp + 0x110], 2
call fcn.0054942e
lea ecx, [esp + 0x120]
mov byte [esp + 0x110], 1
call fcn.0054942e
lea ecx, [esp + 0x124]
mov byte [esp + 0x110], 0
call fcn.0054942e
mov ecx, dword [esp + 0x108]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x110
ret 0x10

Function at 0x40c2c0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x567298
push eax
mov dword fs:[0], esp
push esi
mov ecx, dword [ecx + 4]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push edx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.0054942e
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], 0xffffffff
call fcn.0054942e
mov ecx, dword [esp + 4]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 0xc
Function at 0x40cad0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x56732a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x198
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov ecx, 0x57ae48
mov eax, 0xa
mov dword [esp + 8], esi
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], eax
mov dword [esp + 0x1a8], ebx
mov dword [esi + 0x48], ecx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], eax
lea ecx, [esi + 0x7c]
mov byte [esp + 0x1a8], 1
call fcn.00404d30
lea eax, [esp + 0x10]
mov dword [esi], 0x57ae44
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x5ceab0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x70], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x6c], eax
mov al, 0x79
mov byte [esp + 8], 0x4c
mov byte [esp + 9], al
mov byte [esp + 0xa], al
mov byte [esp + 0xb], al
mov edx, dword [esp + 8]
lea ecx, [esi + 0x26]
mov dword [esi + 0x68], ebx
mov byte [esi + 0x78], bl
mov dword [ecx], edx
mov byte [esi + 0x25], bl
mov dword [esi + 0x64], ebx
mov dword [esi + 0x74], ebx
mov byte [ecx + 4], al
mov ecx, dword [esp + 0x1a0]
mov byte [esi + 0x24], bl
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], 0x2710
mov dword [esi + 0x88], 0x1d4c0
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1a4
ret
Function at 0x40cce0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push esi
push 1
push 0
mov esi, ecx
mov ecx, dword [esp + 0x24]
push 0
push 0
push 1
push 2
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0x1c], edx
call dword [sym.imp.WS2_32.dll_WSASocketA]
cmp eax, 0xffffffff
mov dword [esi + 0x68], eax
je 0x40cdf3
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
test eax, eax
mov dword [esi + 0x64], eax
jne 0x40cd39
mov eax, dword [esi + 0x68]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
pop esi
add esp, 0x10
ret 0x10
mov ecx, dword [esi + 0x68]
push 8
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x40cde9
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esi + 0x68]
lea ecx, [esp + 4]
push 0x10
push ecx
push edx
mov word [esp + 0x12], ax
mov word [esp + 0x10], 2
mov dword [esp + 0x14], 0
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x40cd97
mov eax, dword [esi + 0x68]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
pop esi
add esp, 0x10
ret 0x10
mov ecx, dword [esi + 0x68]
push OleUIAddVerbMenuA
push ecx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x40cde9
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push 0
push esi
push 0x40ce00
push 0
push 0
call dword [0x59a084]
add esp, 0x18
cmp eax, 0xffffffff
mov dword [esi + 0x70], eax
je 0x40cdf3
mov ecx, esi
call fcn.0040d0f0
mov byte [esi + 0x24], 1
mov al, 1
pop esi
add esp, 0x10
ret 0x10
mov edx, dword [esi + 0x68]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
pop esi
add esp, 0x10
ret 0x10