joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000a156
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x1000a173
call fcn.1000d8e4
mov dword [eax], 0x16
xor eax, eax
jmp 0x1000a1dd
push esi
push 0x8c
push 1
call fcn.1000d969
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x1000a1c8
push esi
call fcn.1000d47c
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x1000a1a6
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x1000a0c1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x1000a1dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.10009c64
test ebx, ebx
pop ecx
je 0x1000a1da
push ebx
call fcn.1000d8f6
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1000b71a
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x1000b80a
mov eax, 0x94
call fcn.10009f10
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1000b87f
mov ecx, dword [esi + 0x10]
mov dword [0x1001a088], ecx
mov eax, dword [esi + 4]
mov dword [0x1001a094], eax
mov edx, dword [esi + 8]
mov dword [0x1001a098], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x1001a08c], esi
je 0x1000b785
or esi, 0x8000
mov dword [0x1001a08c], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x1001a090], eax
call fcn.1000c1e4
test eax, eax
pop ecx
je 0x1000b87f
call fcn.1000d676
test eax, eax
jne 0x1000b7b2
call fcn.1000c235
jmp 0x1000b87f
call fcn.1000f97d
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1001b794], eax
call fcn.1000f85b
mov dword [0x10019f10], eax
call fcn.1000f33c
test eax, eax
jl 0x1000b803
call fcn.1000f7b9
test eax, eax
jl 0x1000b7fe
call fcn.1000f586
test eax, eax
jl 0x1000b7fe
push 0
call fcn.1000ce31
test eax, eax
pop ecx
jne 0x1000b7fe
inc dword [0x10019f0c]
jmp 0x1000b890
call fcn.1000f53a
call fcn.1000d45f
jmp 0x1000b7a8
test eax, eax
jne 0x1000b83a
cmp dword [0x10019f0c], eax
jle 0x1000b87f
dec dword [0x10019f0c]
cmp dword [0x1001a0c4], eax
jne 0x1000b829
call fcn.1000cf6f
call fcn.1000f53a
call fcn.1000d45f
call fcn.1000c235
jmp 0x1000b890
cmp eax, 2
jne 0x1000b883
push 0x8c
push 1
call fcn.1000d969
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x1000b87f
push esi
push dword [0x10018ff0]
call dword [0x1001a12c]
test eax, eax
push esi
je 0x1000b879
call fcn.1000d47c
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x1000b890
call fcn.10009c64
pop ecx
xor eax, eax
jmp 0x1000b893
cmp eax, 3
jne 0x1000b890
push 0
call fcn.1000d647
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
Function at 0x1000ce9b
Capabilities:
Terminate process

Disassembly:
push 8
push 0x10014bf0
call fcn.10009db8
push 8
call fcn.1000c199
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x1001a0c8], esi
jne 0x1000cecf
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x1001a0c4], esi
mov al, byte [ebp + 0x10]
mov byte [0x1001a0c0], al
cmp dword [ebp + 0xc], edi
jne 0x1000cf19
cmp dword [0x1001b768], edi
je 0x1000cf09
mov eax, dword [0x1001b764]
sub eax, 4
mov dword [0x1001b764], eax
cmp eax, dword [0x1001b768]
jb 0x1000cf09
mov eax, dword [eax]
cmp eax, edi
je 0x1000ceea
call eax
jmp 0x1000ceea
push 0x1001805c
mov eax, 0x10018054
call fcn.1000ce19
pop ecx
push 0x10018068
mov eax, 0x10018060
call fcn.1000ce19
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x1000cf4a
cmp dword [ebp + 0x10], edi
jne 0x1000cf58
mov dword [0x1001a0c8], esi
push dword [ebp + 8]
call fcn.1000cdd7
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x1000cf57
push 8
call fcn.1000c0e4
pop ecx
ret
call fcn.10009df3
ret
Function at 0x1000fa05
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x10018e70]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x100194b8]
je 0x1000fa3a
inc eax
cmp eax, 0x13
jb 0x1000fa2b
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x100194b8]
jne 0x1000fb60
mov eax, dword [0x10019f18]
cmp eax, 1
je 0x1000fb38
cmp eax, edx
jne 0x1000fa6a
cmp dword [0x10019f1c], 1
je 0x1000fb38
cmp ecx, 0xfc
je 0x1000fb60
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1000faa0
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.1000ea90
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.1000a1f0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1000fad4
mov eax, edi
push eax
call fcn.1000a1f0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x10014c34
push edi
call fcn.1000beb0
add esp, 0x10
push edi
call fcn.1000a1f0
push dword [esi + 0x100194bc]
mov ebx, eax
call fcn.1000a1f0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.10009f10
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.1000ea90
push edi
push ebx
call fcn.1000eaa0
push 0x10014c30
push ebx
call fcn.1000eaa0
push dword [esi + 0x100194bc]
push ebx
call fcn.1000eaa0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.10010ace
add esp, 0x2c
jmp 0x1000fb60
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x100194bc]
push dword [esi]
call fcn.1000a1f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.10009f7e
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x1000fc96
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x1000fe6a
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x1001b420]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x1000fe6a
test cl, 0x48
je 0x1000fd01
cmp byte [eax + 5], 0xa
je 0x1000fd01
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1000fd53
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x1000fd3b
call fcn.1000d8e4
mov dword [eax], 9
call fcn.1000d8ed
mov dword [eax], esi
jmp 0x1000fd4b
cmp eax, 0x6d
je 0x1000fe6a
push eax
call fcn.1000d8f6
pop ecx
or eax, 0xffffffff
jmp 0x1000fe6c
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x1000fe65
test eax, eax
je 0x1000fd7a
cmp byte [ebx], 0xa
jne 0x1000fd7a
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x1000fd83
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x1000fe5f
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x1000fe4f
cmp al, 0xd
je 0x1000fdb5
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x1000fe41
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x1000fdcf
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x1000fdca
add dword [ebp + 0x10], 2
jmp 0x1000fe23
mov dword [ebp + 0x10], eax
jmp 0x1000fe3d
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1000fdf7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1000fe3d
cmp dword [ebp - 0xc], 0
je 0x1000fe3d
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x1000fe18
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x1000fe23
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x1000fe40
cmp ebx, dword [ebp + 0xc]
jne 0x1000fe28
cmp byte [ebp - 1], 0xa
jne 0x1000fe28
mov byte [ebx], 0xa
jmp 0x1000fe40
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100113d2
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x1000fe41
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x1000fd99
jmp 0x1000fe5f
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x1000fe5f
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x1000fe6c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10010ace
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1001a268], ebx
push esi
push edi
jne 0x10010b4e
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10010b89
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x1001a268], eax
je 0x10010b89
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x1001a26c], eax
call esi
cmp dword [0x1001a088], 2
mov dword [0x1001a270], eax
jne 0x10010b4e
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x1001a278], eax
je 0x10010b4e
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x1001a274], eax
mov eax, dword [0x1001a274]
test eax, eax
je 0x10010b93
call eax
test eax, eax
je 0x10010b7a
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1001a278]
test eax, eax
je 0x10010b7a
test byte [ebp - 8], 1
jne 0x10010b93
cmp dword [0x1001a094], 4
jb 0x10010b8d
or byte [ebp + 0x12], 0x20
jmp 0x10010bb2
xor eax, eax
jmp 0x10010bc2
or byte [ebp + 0x12], 4
jmp 0x10010bb2
mov eax, dword [0x1001a26c]
test eax, eax
je 0x10010bb2
call eax
mov ebx, eax
test ebx, ebx
je 0x10010bb2
mov eax, dword [0x1001a270]
test eax, eax
je 0x10010bb2
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1001a268]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001185b
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x10018e70]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x1001188c
xor eax, eax
jmp 0x10011a15
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x1001b420]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x100118c8
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.1001271f
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x100119a3
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x100119e1
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x1001192c
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x1001191d
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x100118fd
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1001196c
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x10011975
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x100118ee
jmp 0x10011977
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x10011a10
cmp dword [ebp - 0x6c], edi
je 0x100119e1
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x100119d6
call fcn.1000d8e4
mov dword [eax], 9
call fcn.1000d8ed
mov dword [eax], esi
jmp 0x10011a0b
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100119cb
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x10011977
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x10011977
push dword [ebp - 0x6c]
call fcn.1000d8f6
pop ecx
jmp 0x10011a0b
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x100119f9
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x100119f9
xor eax, eax
jmp 0x10011a13
call fcn.1000d8e4
mov dword [eax], 0x1c
call fcn.1000d8ed
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x10011a13
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.10009f7e
add ebp, 0x3a0
leave
ret
Function at 0x100127a2
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.10009f10
mov eax, dword [0x10018e70]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.100113d2
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x100128d5
push 2
push esi
push dword [ebp + 8]
call fcn.100113d2
add esp, 0xc
cmp eax, ebx
je 0x100128d5
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x10012875
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.1000a030
push 0x8000
push dword [ebp + 8]
call fcn.10013265
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x1001282b
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.1001185b
add esp, 0xc
cmp eax, 0xffffffff
je 0x1001284b
sub edi, eax
test edi, edi
jg 0x10012823
jmp 0x10012863
call fcn.1000d8ed
cmp dword [eax], 5
jne 0x10012860
call fcn.1000d8e4
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.10013265
pop ecx
pop ecx
jmp 0x100128bd
jge 0x100128bd
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100113d2
push dword [ebp + 8]
call fcn.10011541
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x100128bd
call fcn.1000d8e4
mov dword [eax], 0xd
call fcn.1000d8ed
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.100113d2
add esp, 0xc
mov eax, esi
pop edi
jmp 0x100128d7
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.10009f7e
leave
ret
Function at 0x401830
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0x50
push ebx
mov eax, dword [esp + 0x58]
push ebp
push esi
push edi
mov ebx, dword [eax + 8]
mov ecx, 0x10
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea edi, [esp + 0x1c]
mov dword [esp + 0x64], ebx
rep movsd dword es:[edi], dword [esi]
fild dword [esp + 0x64]
fmul qword [str.UUUUUU]
mov ebp, dword [eax + 4]
movsb byte es:[edi], byte [esi]
xor edi, edi
call sub.MSVCRT.dll__ftol
mov ecx, 1
sub ecx, eax
mov eax, 0x38e38e39
mul ecx
shr edx, 4
lea eax, [ecx + edx*2 + 2]
mov ecx, dword [esp + 0x68]
push eax
call sub.MFC42.DLL_CString::GetBuffer
xor ecx, ecx
mov esi, eax
test ebx, ebx
jle 0x401969
mov al, byte [edi + ebp]
mov byte [esp + 0x14], al
mov edx, dword [esp + 0x14]
and edx, 0xff
mov ebx, edx
shr ebx, 2
inc ecx
inc edi
mov bl, byte [esp + ebx + 0x1c]
mov byte [esi + ecx - 1], bl
mov ebx, dword [esp + 0x64]
cmp edi, ebx
jge 0x401945
mov al, byte [edi + ebp]
and edx, 3
mov byte [esp + 0x10], al
mov eax, dword [esp + 0x10]
and eax, 0xff
mov ebx, eax
shr ebx, 4
shl edx, 4
or ebx, edx
inc ecx
inc edi
mov dl, byte [esp + ebx + 0x1c]
mov byte [esi + ecx - 1], dl
mov edx, dword [esp + 0x64]
cmp edi, edx
jge 0x40195a
mov dl, byte [edi + ebp]
and eax, 0xf
mov byte [esp + 0x18], dl
inc edi
mov edx, dword [esp + 0x18]
and edx, 0xff
mov ebx, edx
and edx, 0x3f
shr ebx, 6
shl eax, 2
mov dl, byte [esp + edx + 0x1c]
or ebx, eax
inc ecx
mov al, byte [esp + ebx + 0x1c]
mov ebx, 0x48
mov byte [esi + ecx - 1], al
mov byte [esi + ecx], dl
inc ecx
xor edx, edx
mov eax, ecx
div ebx
test edx, edx
jne 0x401939
mov byte [esi + ecx], 0xd
inc ecx
mov byte [esi + ecx], 0xa
inc ecx
cmp edi, dword [esp + 0x64]
jl 0x401892
jmp 0x401969
and eax, 3
shl eax, 4
inc ecx
mov al, byte [esp + eax + 0x1c]
mov byte [esi + ecx - 1], al
mov byte [esi + ecx], 0x3d
jmp 0x401968
mov al, byte [esp + 0x10]
and eax, 0xf
mov dl, byte [esp + eax*4 + 0x1c]
mov byte [esi + ecx], dl
inc ecx
mov byte [esi + ecx], 0x3d
mov byte [esi + ecx + 1], 0
mov ecx, dword [esp + 0x68]
push 0xffffffffffffffff
call sub.MFC42.DLL_CString::ReleaseBuffer
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x50
ret 8
Function at 0x408010
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
xor edi, edi
test esi, esi
jle 0x408060
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
lea eax, [edi + ebx]
push esi
push eax
push ebp
call sub.WSOCK32.dll_send
test eax, eax
jge 0x40804e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
jne 0x408058
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x408052
sub esi, eax
add edi, eax
test esi, esi
jle 0x408060
jmp 0x408026
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x408070
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x128
push ebx
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_time]
push esi
xor esi, esi
push edi
push esi
mov dword [esp + 0x30], 0x14
mov dword [esp + 0x34], esi
call ebp
mov ebx, dword [esp + 0x144]
mov edi, dword [esp + 0x140]
add esp, 4
mov dword [esp + 0x10], eax
push 0
call ebp
mov edx, dword [esp + 0x14]
add esp, 4
sub eax, edx
cmp eax, 0x1e
jge 0x408179
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x34]
push eax
push 0
push 0
lea edx, [edi + 1]
push ecx
push edx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], 1
call sub.WSOCK32.dll_select
cmp eax, 1
jne 0x408179
mov eax, 0x8024
push 0
sub eax, esi
lea ecx, [esi + ebx]
push eax
push ecx
push edi
call sub.WSOCK32.dll_recv
test eax, eax
jle 0x408179
add esi, eax
cmp esi, 0x10
jb 0x4080a6
mov edx, ebx
mov eax, dword [edx]
mov dword [esp + 0x18], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x1c], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x20], eax
mov eax, dword [edx + 0xc]
mov ecx, eax
mov dword [esp + 0x24], eax
and ecx, 0xffff
add ecx, 0x10
cmp esi, ecx
jb 0x4080a6
and eax, 0xffff
lea esi, [ebx + 0x10]
mov ecx, eax
mov edi, ebx
mov edx, ecx
mov dword [esp + 0x14], eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov al, byte [esp + 0x1c]
mov ecx, edx
and ecx, 3
test al, 0x10
rep movsb byte es:[edi], byte [esi]
je 0x4081c4
mov eax, dword [esp + 0x26]
and eax, 0xffff
push eax
mov dword [esp + 0x14], eax
call sub.MFC42.DLL_operatornew
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x408186
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x128
ret
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
push ebp
call fcn.0040d640
add esp, 0x10
test eax, eax
jne 0x4081bb
mov eax, dword [esp + 0x10]
mov esi, ebp
mov ecx, eax
mov edi, ebx
mov edx, ecx
mov word [esp + 0x26], ax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x26]
pop edi
pop esi
pop ebp
and eax, 0xffff
pop ebx
add esp, 0x128
ret

Function at 0x408540
Capabilities:
Hash data with md5

Disassembly:
push esi
xor eax, eax
lea esi, [ecx + 0x5c]
push 0x40
push eax
push esi
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 4], 0x67452301
mov dword [ecx + 8], 0xefcdab89
mov dword [ecx + 0xc], 0x98badcfe
mov dword [ecx + 0x10], 0x10325476
call fcn.004090c0
mov byte [esi], 0x80
pop esi
ret
Function at 0x409280
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x412f68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
mov edi, ecx
push eax
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x14]
push 1
push ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x41b754
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
setne bl
call fcn.0040cfa6
test bl, bl
je 0x4092f5
push 0x41b754
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::operator
push 0x5c
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::ReverseFind
push 0x5c
lea ecx, [esp + 0x2c]
mov ebp, eax
call sub.MFC42.DLL_CString::Find_2
mov edx, dword [esp + 0x28]
mov esi, eax
cmp byte [esi + edx - 1], 0x3a
jne 0x409329
inc esi
lea ecx, [esp + 0x28]
push esi
push 0x5c
call sub.MFC42.DLL_CString::Find_1
mov esi, eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
cmp esi, 0xffffffff
mov byte [esp + 0x20], 1
je 0x40939d
mov bl, 2
cmp esi, ebp
jg 0x40939d
inc esi
lea eax, [esp + 0x14]
push esi
push eax
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], bl
call fcn.0040cffa
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 1
call fcn.0040cfa6
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, edi
call fcn.004093e0
test eax, eax
jne 0x40938a
mov edx, dword [esp + 0x10]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
push 0x5c
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::Find_1
mov esi, eax
cmp esi, 0xffffffff
jne 0x40933e
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 0
call fcn.0040cfa6
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call fcn.0040cfa6
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4
Function at 0x40abc0
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x41316b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push esi
mov esi, dword [esp + 0x134]
lea ecx, [esp + 4]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x20]
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0x12c], 0
call dword [edx + 0x54]
lea eax, [esp + 8]
push eax
call sub.MFC42.DLL_CTime::GetTickCount
mov eax, dword [eax]
mov esi, dword [esp + 0x138]
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 4]
mov ecx, dword [esi + 0x38]
lea edx, [esp + 0xc]
mov byte [esp + 0x1c], 0
push edx
push eax
mov dword [esp + 0x18], ecx
call sub.MFC42.DLL_CFile::SetStatus
mov ecx, dword [esi + 0x34]
mov edx, dword [esp + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 4]
mov dword [esp + 0x12c], 0xffffffff
call fcn.0040cfa6
mov ecx, dword [esp + 0x124]
pop esi
mov dword fs:[0], ecx
add esp, 0x12c
ret 8