joyce8/EMBER2024-capa huggingface dataset:
Function at 0x470490
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0
je 0x470551
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
push ebx
push ebp
push edi
mov edi, dword [esp + 0x1c]
add eax, edi
cmp eax, ecx
jb 0x47052f
add ecx, ecx
mov ebp, ecx
cmp ecx, eax
ja 0x4704bb
mov ebp, eax
push 0
push ebp
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
test ebx, ebx
je 0x4704f0
push ebp
push 0
push 0
push 0xf001f
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x4704fd
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
pop ebx
mov eax, 0x300
pop esi
pop ecx
ret 8
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
push ecx
push edx
push edi
call fcn.00442620
mov eax, dword [esi + 0x18]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], edi
mov edi, dword [esp + 0x1c]
mov dword [esi + 0x20], ebp
mov dword [esi + 4], ebx
mov eax, dword [esi + 0x1c]
mov edx, dword [esp + 0x18]
add eax, dword [esi + 0x18]
push edi
push edx
push eax
call fcn.00442620
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret 8
mov eax, dword [esi]
test eax, eax
je 0x470580
mov edx, dword [esp + 0x10]
push 0
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push ecx
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 8
mov dword [esi + 0xc], 0x1000000
xor eax, eax
pop esi
pop ecx
ret 8

Function at 0x470850
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x58]
push edi
test ecx, ecx
je 0x4708a3
mov eax, dword [esi + 0x60]
mov edi, dword [esi + 0x5c]
cmp eax, edi
jae 0x4708ed
mov edx, dword [esp + 0x14]
sub edi, eax
cmp edi, edx
jbe 0x470876
mov edi, edx
mov ebx, dword [esp + 0x10]
push edi
add eax, ecx
push eax
push ebx
call fcn.00442620
mov eax, dword [esi + 0x4c]
add dword [esi + 0x60], edi
add dword [esi + 0x48], edi
push edi
push ebx
push eax
call fcn.0046fe50
add esp, 0x18
mov dword [esi + 0x4c], eax
mov eax, edi
pop edi
pop esi
pop ebx
ret 8
mov eax, dword [esi + 0x50]
test eax, eax
je 0x4708e6
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x18]
push ecx
push edx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4708ed
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 0x4c]
add dword [esi + 0x48], edi
push edi
push ebx
push eax
call fcn.0046fe50
add esp, 0xc
mov dword [esi + 0x4c], eax
mov eax, edi
pop edi
pop esi
pop ebx
ret 8
mov dword [esi + 0xc], 0x1000000
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
Function at 0x471940
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
xor ebx, ebx
push edi
xor edi, edi
mov dword [esi + 0x6af80], 2
lea ebp, [ebx + 1]
cmp dword [esi + 0x6af90], ebx
je 0x471b62
cmp dword [esi + 0x6af90], 3
jb 0x4719b9
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov ebx, dword [esi + eax*4 + 0x4af70]
and ecx, 0x7fff
mov dword [esi + ecx*4 + 0x2af70], ebx
mov eax, dword [esi + 0x6af7c]
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
test ebx, ebx
je 0x4719f9
mov edx, dword [esi + 0x6af84]
sub edx, ebx
cmp edx, 0x7efa
ja 0x4719f9
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x4719e1
mov dword [esi + 0x6afa0], eax
push ebx
push esi
call fcn.0046f1f0
mov edi, eax
mov eax, dword [esi + 0x6af90]
add esp, 8
cmp edi, eax
jbe 0x4719f9
mov edi, eax
cmp edi, 3
jb 0x471ade
mov ecx, dword [esi + 0x6af84]
sub ecx, dword [esi + 0x6af88]
lea eax, [edi - 3]
push eax
push ecx
push esi
call fcn.0046eba0
sub dword [esi + 0x6af90], edi
add esp, 0xc
mov edx, eax
mov eax, dword [esi + 0x6af90]
cmp edi, dword [esi + 0x6af98]
ja 0x471a97
cmp eax, 3
jb 0x471a97
sub edi, ebp
lea esp, [esp]
add dword [esi + 0x6af84], ebp
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [esi + ecx + 0x1af72]
mov ebx, dword [esi + 0x6af7c]
shl ebx, 5
xor eax, ebx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov ebx, dword [esi + eax*4 + 0x4af70]
and ecx, 0x7fff
sub edi, ebp
mov dword [esi + ecx*4 + 0x2af70], ebx
mov eax, dword [esi + 0x6af7c]
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
jne 0x471a40
jmp 0x471b00
add dword [esi + 0x6af84], edi
mov eax, dword [esi + 0x6af84]
lea ecx, [eax + esi]
movzx eax, byte [ecx + 0x1af70]
mov dword [esi + 0x6af7c], eax
movzx ecx, byte [ecx + 0x1af71]
shl eax, 5
push str.Call_UPDATE_HASH___MIN_MATCH_3_more_times
xor ecx, eax
and ecx, 0x7fff
push ebp
push esi
xor edi, edi
mov dword [esi + 0x6af7c], ecx
call fcn.0046e700
add esp, 0xc
jmp 0x471b06
mov edx, dword [esi + 0x6af84]
movzx eax, byte [edx + esi + 0x1af70]
push eax
push 0
push esi
call fcn.0046eba0
add esp, 0xc
dec dword [esi + 0x6af90]
mov edx, eax
add dword [esi + 0x6af84], ebp
test edx, edx
je 0x471b40
mov eax, dword [esi + 0x6af74]
test eax, eax
jl 0x471b1d
lea ecx, [eax + esi + 0x1af70]
jmp 0x471b1f
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 0
sub edx, eax
push edx
push ecx
push esi
call fcn.00471780
mov eax, dword [esi + 0x6af84]
add esp, 0x10
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x471b55
push esi
call fcn.0046f3d0
add esp, 4
cmp dword [esi + 0x6af90], 0
jne 0x471965
mov eax, dword [esi + 0x6af74]
test eax, eax
jl 0x471b75
lea ecx, [eax + esi + 0x1af70]
jmp 0x471b77
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push ebp
sub edx, eax
push edx
push ecx
push esi
call fcn.00471780
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x472ea0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x1cc
mov eax, dword [0x4ac40c]
xor eax, esp
mov dword [esp + 0x1c8], eax
push ebx
push esi
lea eax, [esp + 0x40]
push eax
mov ebx, ecx
mov esi, dword [ebx + 0x284]
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x472fbf
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push 0x43
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
test eax, eax
je 0x472fb9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x472f22
call esi
cmp eax, 0x3e5
jne 0x472fb9
xor eax, eax
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x24]
mov word [esp + 0x24], ax
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov word [esp + 0x32], ax
mov eax, dword [esp + 0x14]
push edx
push eax
mov dword [esp + 0x14], 0x10
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
jne 0x472fb9
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x2c]
push eax
mov esi, eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], ecx
call dword [sym.imp.WS2_32.dll_ntohl]
push esi
call dword [sym.imp.WS2_32.dll_inet_ntoa]
lea ecx, [ebx + 0x124c]
mov edx, eax
mov esi, 0x40
sub edx, ecx
lea eax, [esi + 0x7fffffbe]
test eax, eax
je 0x472fb1
mov al, byte [edx + ecx]
test al, al
je 0x472fb1
mov byte [ecx], al
inc ecx
sub esi, 1
jne 0x472f96
jmp 0x472fb5
test esi, esi
jne 0x472fb6
dec ecx
mov byte [ecx], 0
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x1d0]
pop esi
lea eax, [ebx + 0x124c]
pop ebx
xor ecx, esp
call fcn.004420f4
add esp, 0x1cc
ret

Function at 0x4755d0
Capabilities:
Send data

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
push esi
mov edi, ecx
call fcn.004750e0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], esi
test esi, esi
je 0x475651
mov ebp, dword [sym.imp.WININET.dll_InternetWriteFile]
mov ebx, dword [esp + 0x18]
mov ecx, dword [edi + 8]
lea eax, [esp + 0x18]
push eax
push esi
push ebx
push ecx
call ebp
test eax, eax
jne 0x475625
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x475639
mov edx, dword [esp + 0x1c]
push edx
mov ecx, edi
call fcn.00475530
test eax, eax
jl 0x475644
mov eax, dword [esp + 0x18]
add ebx, eax
sub esi, eax
je 0x475651
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4755f7
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret 8
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
pop ecx
ret 8
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x4756b0
Capabilities:
Send data

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx + 8]
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 8]
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
jne 0x475123
or eax, 0xffffffff
ret 8
mov eax, dword [esp + 8]
ret 8
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
mov eax, esi
cmp esi, 0x10000
jbe 0x475678
mov eax, 0x10000
test esi, esi
jbe 0x4756a4
mov edi, dword [esp + 0x10]
push eax
push edi
mov ecx, ebx
call fcn.004755d0
test eax, eax
jl 0x4756a6
sub esi, eax
add edi, eax
mov eax, esi
cmp esi, 0x10000
jb 0x4756a0
mov eax, 0x10000
test esi, esi
ja 0x475680
xor eax, eax
pop edi
pop esi
pop ebx
ret 8
cmp dword [ecx + 4], 0x10000000
jne 0x4756be
jmp 0x475660
jmp 0x475100

Function at 0x475770
Capabilities:
Read data from internet
Receive data

Disassembly:
sub esp, 0x28
mov ecx, dword [ecx + 8]
mov edx, dword [esp + 0x30]
xor eax, eax
mov dword [esp], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
push 0
mov dword [esp + 0x18], eax
push 0
lea eax, [esp + 8]
push eax
push ecx
mov dword [esp + 0x10], 0x28
mov dword [esp + 0x28], edx
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
jne 0x475194
or eax, 0xffffffff
add esp, 0x28
ret 8
mov eax, dword [esp + 0x18]
add esp, 0x28
ret 8
sub esp, 0x28
xor eax, eax
mov dword [esp], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
push esi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x34]
push edi
push eax
mov esi, ecx
mov dword [esp + 0xc], 0x28
mov dword [esp + 0x24], eax
call fcn.004750e0
mov edx, dword [esi + 8]
push esi
push 0
lea ecx, [esp + 0x10]
push ecx
push edx
mov edi, eax
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
jne 0x47575f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x47574e
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x28
ret 8
push edi
mov ecx, esi
call fcn.00475530
test eax, eax
mov eax, 0xfffffffe
jl 0x475763
mov eax, dword [esp + 0x20]
pop edi
pop esi
add esp, 0x28
ret 8
cmp dword [ecx + 4], 0x10000000
jne 0x47577e
jmp 0x4756d0
jmp 0x475130
Function at 0x478120
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4ac40c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
mov cx, word [ebp + 0x10]
push edx
push 0x80
lea ebx, [esi + 0xc]
push ebx
mov dword [esi + 8], eax
mov word [esi + 0x8c], cx
call fcn.00402ef4
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x478171
push edi
push 0x80
lea eax, [esi + 0x8e]
push eax
call fcn.00402ef4
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x47818a
push eax
push 0x80
lea ecx, [esi + 0x10e]
push ecx
call fcn.00402ef4
test ebx, ebx
jne 0x478199
mov dword [ebp - 0x10], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x4781cf
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp - 8], eax
call fcn.00444180
mov edx, dword [ebp - 8]
mov edi, esp
push 0
push 0
push edx
push edi
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
mov byte [edi], 0
call ebx
mov dword [ebp - 0x10], edi
mov edi, dword [ebp + 0x14]
xor ecx, ecx
cmp edi, ecx
jne 0x4781da
mov dword [ebp - 0xc], ecx
jmp 0x47821c
lea eax, [esi + 0x8e]
cmp eax, ecx
jne 0x4781e9
mov dword [ebp - 0xc], ecx
jmp 0x47821c
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp - 8], eax
call fcn.00444180
mov eax, dword [ebp - 8]
mov edi, esp
push 0
push 0
push eax
push edi
push 0xffffffffffffffff
lea eax, [esi + 0x8e]
push eax
push 0
push 0
mov byte [edi], 0
call ebx
mov dword [ebp - 0xc], edi
cmp dword [ebp + 0x18], 0
jne 0x478226
xor edi, edi
jmp 0x478264
lea eax, [esi + 0x10e]
test eax, eax
jne 0x478234
xor edi, edi
jmp 0x478264
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp - 8], eax
call fcn.00444180
mov ecx, dword [ebp - 8]
mov edi, esp
push 0
push 0
push ecx
push edi
push 0xffffffffffffffff
lea eax, [esi + 0x10e]
push eax
push 0
push 0
mov byte [edi], 0
call ebx
cmp dword [esi + 8], 0
jne 0x478271
mov eax, 0xffffff9d
jmp 0x4782a7
mov edx, dword [esi + 0x190]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x10]
push 0
push 0
push edx
mov edx, dword [ebp - 0x10]
push edi
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 4], eax
test eax, eax
jne 0x4782a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xffffffff
jmp 0x4782a7
xor eax, eax
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004420f4
mov esp, ebp
pop ebp
ret 0x14
Function at 0x402710
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x108]
push edi
mov dword [esp + 0x14], ecx
xor edx, edx
xor eax, eax
mov al, byte [edx + str.80_]
mov ecx, eax
and eax, 7
sar ecx, 3
mov bl, byte [eax*2 + 0x4331ec]
mov cl, byte [ecx + esi]
test bl, cl
setne al
mov byte [esp + edx + 0x50], al
inc edx
cmp edx, 0x38
jl 0x402727
mov eax, 0x1e
xor ebx, ebx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x110], 1
je 0x402768
lea eax, [ebx + ebx]
lea edi, [esp + eax*4 + 0x8c]
lea ebp, [esp + eax*4 + 0x88]
xor eax, eax
xor ecx, ecx
mov cl, byte [ebx + 0x433294]
mov dword [edi], 0
mov esi, ecx
mov dword [ebp], 0
mov edx, esi
cmp edx, 0x1c
jge 0x40279c
mov cl, byte [esp + edx + 0x50]
jmp 0x4027a0
mov cl, byte [esp + edx + 0x34]
mov byte [esp + eax + 0x18], cl
inc eax
inc edx
cmp eax, 0x1c
jl 0x402791
mov eax, 0x1c
lea edx, [esi + 0x1c]
cmp edx, 0x38
jge 0x4027be
mov cl, byte [esp + edx + 0x50]
jmp 0x4027c2
mov cl, byte [esp + edx + 0x34]
mov byte [esp + eax + 0x18], cl
inc eax
inc edx
cmp eax, 0x38
jl 0x4027b3
xor edx, edx
mov eax, 0x4331fc
xor ecx, ecx
mov cl, byte [edx + 0x4332a4]
cmp byte [esp + ecx + 0x18], 0
je 0x4027ed
mov ecx, dword [eax]
mov esi, dword [ebp]
or esi, ecx
mov dword [ebp], esi
xor ecx, ecx
mov cl, byte [edx + 0x4332bc]
cmp byte [esp + ecx + 0x18], 0
je 0x402804
mov ecx, dword [eax]
mov esi, dword [edi]
or esi, ecx
mov dword [edi], esi
add eax, 4
inc edx
cmp eax, str.80_
jl 0x4027d4
mov eax, dword [esp + 0x10]
inc ebx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x40275b
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x88]
push edx
call fcn.00402850
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf8
ret 8
Function at 0x4045b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ae90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x164
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov eax, dword [eax + 4]
push edi
cmp eax, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], ebx
jne 0x4045e8
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push 0x8000
push eax
call dword [sym.imp.MSVCRT.dll__open]
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
mov dword [ebp - 0x14], edi
je 0x4046a5
push 2
push ebx
push ebx
push edi
call dword [sym.imp.MSVCRT.dll__lseeki64]
push ebx
mov esi, eax
push ebx
push edi
mov dword [ebp + 8], esi
call dword [sym.imp.MSVCRT.dll__lseek]
add esp, 0x1c
lea ecx, [ebp - 0x6c]
call fcn.004138b0
cmp esi, 0x100000
jbe 0x404638
mov dword [ebp + 8], 0x100000
cmp ebx, dword [ebp + 8]
jae 0x404669
lea ecx, [ebp - 0x16c]
push 0x100
push ecx
push edi
call dword [sym.imp.MSVCRT.dll__read]
add esp, 0xc
mov esi, eax
lea edx, [ebp - 0x16c]
lea ecx, [ebp - 0x6c]
push esi
push edx
call fcn.004138e0
add ebx, esi
jmp 0x404638
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x6c]
push eax
call fcn.00413990
push edi
call dword [sym.imp.MSVCRT.dll__close]
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406ea0
Capabilities:
Get mac address on windows

Disassembly:
mov eax, 0x2804
call fcn.0042a8a0
push ebx
push edi
mov edi, dword [esp + 0x2810]
test edi, edi
je 0x406f3c
mov ebx, dword [esp + 0x2814]
test ebx, ebx
je 0x406f3c
push ebp
lea eax, [esp + 0xc]
push esi
lea ecx, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x18], 0x2800
call sub.iphlpapi.dll_GetAdaptersInfo
lea ecx, [esp + 0x14]
xor eax, eax
test ecx, ecx
lea edx, [esp + 0x14]
mov esi, edi
je 0x406f2f
xor ecx, ecx
cmp byte [edx + ecx + 0x194], 0
jne 0x406f05
inc ecx
cmp ecx, 6
jl 0x406ef1
mov edx, dword [edx]
jmp 0x406f2b
mov ecx, esi
sub ecx, edi
add ecx, 6
cmp ecx, ebx
jg 0x406f2f
mov ebp, dword [edx + 0x194]
mov ecx, esi
add esi, 6
inc eax
mov dword [ecx], ebp
mov bp, word [edx + 0x198]
mov word [ecx + 4], bp
mov edx, dword [edx]
test edx, edx
jne 0x406eef
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x2804
ret 8
pop edi
xor eax, eax
pop ebx
add esp, 0x2804
ret 8
Function at 0x409840
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42b1e7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov al, byte [esp + 3]
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x20], esi
mov byte [esi + 4], al
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov cl, byte [esp + 0x13]
mov dl, byte [esp + 0x13]
push 0x14
mov dword [esp + 0x30], ebx
mov byte [esi + 0x18], cl
mov byte [esi + 0x19], dl
mov byte [esi + 0x20], bl
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
lea ecx, [esp + 0x18]
mov ebp, edi
mov dword [edi + 4], ebx
mov dword [edi + 0x10], 1
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::constructor_void_]
cmp dword [0x436484], ebx
jne 0x4098c5
mov dword [0x436484], edi
mov dword [edi], ebx
mov eax, dword [0x436484]
xor ebp, ebp
mov dword [eax + 8], ebx
mov ecx, dword [0x436480]
inc ecx
mov dword [0x436480], ecx
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::destructor_void_]
cmp ebp, ebx
je 0x4098e9
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
mov edi, dword [0x436484]
push 0x14
call sub.MFC42.DLL_operatornew
mov dword [eax + 4], edi
mov dword [eax + 0x10], ebx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x24], ebx
mov dword [eax], eax
mov eax, dword [esi + 0x1c]
mov dword [eax + 8], eax
mov cl, byte [esp + 0x17]
mov dl, byte [esp + 0x17]
lea edi, [esi + 0x28]
push 0x14
mov byte [esp + 0x34], 1
mov byte [edi], cl
mov byte [edi + 1], dl
mov byte [edi + 8], bl
call sub.MFC42.DLL_operatornew
mov ebp, eax
add esp, 8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], ebp
mov dword [ebp + 4], ebx
mov dword [ebp + 0x10], 1
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::constructor_void_]
cmp dword [0x436484], ebx
jne 0x409963
mov dword [0x436484], ebp
mov dword [ebp], ebx
mov eax, dword [0x436484]
mov dword [esp + 0x14], ebx
mov dword [eax + 8], ebx
mov edx, dword [0x436480]
lea ecx, [esp + 0x1c]
inc edx
mov dword [0x436480], edx
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::destructor_void_]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40998b
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [0x436484]
push ebx
push ecx
mov ecx, edi
call fcn.00406430
mov ecx, dword [esp + 0x24]
mov dword [edi + 4], eax
mov dword [edi + 0xc], ebx
mov dword [eax], eax
mov edi, dword [edi + 4]
mov eax, esi
mov dword [edi + 8], edi
mov dword [esi], 0x42dccc
mov dword [esi + 0x14], ebx
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x40ac60
Capabilities:
Set current directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42b3bb
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebp
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0x1b0]
test ecx, ecx
je 0x40ac8d
mov eax, dword [ecx]
push 1
call dword [eax]
push 0x54
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
mov dword [esp + 0x28], 0
je 0x40acb0
mov ecx, eax
call fcn.0041d160
jmp 0x40acb2
xor eax, eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
push ecx
mov ecx, eax
mov dword [esi + 0x1b0], eax
call fcn.0041dcd0
mov eax, dword [eax + 4]
test eax, eax
jne 0x40acd8
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 1
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edx, dword [esp + 0x30]
mov ecx, esi
mov dword [esi + 0x1b4], edx
call fcn.0040b000
mov ecx, esi
call fcn.0040b160
mov ecx, dword [esi + 0x1e0]
call fcn.004049b0
mov edi, eax
mov eax, dword [esi + 0x1e4]
mov ebp, dword [eax + 0x14]
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [str.clientmain]
mov eax, dword [eax + 4]
push 0x6597
push str.clientport
push ecx
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileIntA
mov word [esi + 0x190], ax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov edx, dword [str.clientmain]
push 0
push str.serverip
push edx
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileIntA
mov dword [esi + 0x184], eax
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [str.clientmain]
mov eax, dword [eax + 4]
push 0x659a
push str.serverport
push ecx
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileIntA
mov ecx, dword [esi + 0x1b0]
push ebp
push edi
mov word [esi + 0x188], ax
call fcn.0041d680
mov ecx, dword [esi + 0x1b4]
mov dword [esi + 0x180], 1
call fcn.00411b70
mov ecx, esi
call fcn.0040ae70
test al, al
jne 0x40adcb
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0x20
ret 4
mov al, byte [esi + 0x20c]
test al, al
jne 0x40ade3
lea edx, [esi + 0x1fc]
mov ecx, esi
push edx
call fcn.0040eb60
mov eax, dword [esi + 0x184]
test eax, eax
jne 0x40ae47
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x433d44
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esi + 0x1b4]
call fcn.004122a0
mov eax, dword [esi + 0x1b4]
mov byte [esi + 0x1f4], 1
push 0
push 0x1770
mov ecx, dword [eax + 0x20]
push 0x5021
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, esi
call fcn.0040c300
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0x20
ret 4
mov ecx, esi
call fcn.0040c440
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x20
ret 4