joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4db270
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 4], 0
xor esi, esi
lea ecx, [ebx - 0x100000]
nop dword [eax]
mov eax, ebx
mov edi, 0x100000
sub eax, esi
cmp esi, ecx
push 0
cmovae edi, eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push edi
add eax, esi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4db2d9
mov eax, dword [ebp - 4]
cmp eax, edi
jne 0x4db2d9
add esi, eax
lea ecx, [ebx - 0x100000]
cmp esi, ebx
jb 0x4db290
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadMem_new_error:_d
push 0x550bb8
call fcn.0048d540
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4db360
Capabilities:
Check for time delay via gettickcount
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51779d
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x40], ebx
lea eax, [ebp - 0x30]
mov dword [ebx + 0x48], 1
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov esi, dword [ebp - 0x24]
shr esi, 0x14
push esi
push 0x524d18
push 0x550bb8
call fcn.0048d880
add esp, 0xc
cmp esi, 0x190
jae 0x4db3cd
mov dword [ebx + 0x48], 0
xor ecx, ecx
jmp 0x4db3d0
mov ecx, dword [ebx + 0x48]
sub esp, 0x18
mov eax, esp
mov dword [ebp - 0x3c], esp
push ecx
push eax
call fcn.00469300
add esp, 8
push 0x2eec
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
mov dword [ebp - 0x34], esp
push str.actionUseMemoryFiles
call fcn.0044c020
mov byte [ebp - 4], 1
call fcn.00479f00
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
call fcn.0047a6e0
cmp dword [ebx + 0x48], 0
jne 0x4db427
mov eax, 1
jmp 0x4db529
mov ecx, dword [ebx + 0x3c]
lea edx, [ebp - 0x44]
xor edi, edi
push edx
mov dword [ebp - 0x34], edi
mov eax, dword [ecx]
call dword [eax + 0x10]
push 1
mov ecx, ebx
mov dword [ebp - 4], 2
call fcn.004d9ba0
mov esi, eax
mov ecx, ebx
lea eax, [ebp - 0x34]
mov dword [ebp - 0x38], esi
push eax
push 1
call fcn.004d9d50
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x4db517
test esi, esi
je 0x4db517
push 0x524d30
push 0x550bb8
call fcn.0048d540
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 8
call esi
mov ecx, dword [ebp - 0x38]
mov edi, eax
push dword [ebp - 0x34]
push dword [ebp - 0x3c]
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
sub esp, 0x18
mov ebx, eax
mov ecx, esp
mov dword [ebp - 0x3c], esp
push 0x535d90
call fcn.0044c020
mov byte [ebp - 4], 3
call esi
sub eax, edi
push eax
push 0x3aa8
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x34], esp
push str.costUncompressInMemory
call fcn.0044c020
mov byte [ebp - 4], 4
call fcn.00479f00
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0047aae0
xor eax, eax
test ebx, ebx
sete al
push eax
push str.Uncompress
push 0x550bb8
call fcn.0048d540
mov esi, dword [ebp - 0x38]
add esp, 0xc
test ebx, ebx
mov ebx, dword [ebp - 0x40]
je 0x4db512
mov ecx, esi
mov dword [ebx + 0x48], 0
call fcn.004a9070
mov edi, 1
push esi
mov ecx, ebx
call fcn.004db300
lea ecx, [ebp - 0x44]
call fcn.0044c080
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004de51d
mov esp, ebp
pop ebp
ret
Function at 0x4db5a0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
xor esi, esi
call fcn.004034e0
mov ebx, eax
test ebx, ebx
jne 0x4db5d1
push 0x525760
push 0x550bb8
call fcn.0048d880
add esp, 8
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
call fcn.0044c0a0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x4db629
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [edi]
push 0x525798
push 0x550bb8
call fcn.0048d880
mov eax, dword [ebx]
add esp, 0x10
push ebx
call dword [eax + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov eax, dword [ebp + 8]
push edi
push dword [eax]
push 0x5257dc
push 0x550bb8
call fcn.0048d880
add esp, 0x10
test edi, edi
je 0x4db6ce
cmp edi, 0x1400000
ja 0x4db6ce
push edi
call fcn.004e7f62
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
jne 0x4db67d
push edi
push 0x525814
push 0x550bb8
call fcn.0048d880
add esp, 0xc
jmp 0x4db6ce
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], esi
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4db6ad
push edi
push str._vc_runtime_
push 0x550bb8
call fcn.0048d880
mov edi, dword [ebp + 8]
add esp, 0xc
jmp 0x4db6c5
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebx]
call fcn.0044c0a0
push eax
push edi
mov edi, dword [ebp + 8]
push edi
push ebx
call dword [esi]
neg eax
sbb esi, esi
inc esi
push edi
call fcn.004e7f5d
add esp, 4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx]
push ebx
call dword [eax + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4db760
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
push edi
push 0x5258d8
push ebx
call fcn.004f46df
add esp, 8
lea ecx, [ebp - 0x58]
call fcn.004971e0
push ebx
lea ecx, [ebp - 0x58]
call fcn.00497720
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x1c]
push eax
call fcn.0048e4e0
add esp, 4
mov ecx, eax
call fcn.0044a630
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp - 0x1c]
call fcn.0044a640
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push esi
mov ecx, 0x553080
mov dword [ebp - 0x60], eax
call fcn.004c8740
test eax, eax
je 0x4db873
sub esp, 0x18
mov ecx, esp
push 0x535d90
call fcn.0044c020
call edi
sub eax, dword [ebp - 0x60]
push eax
push 0x3a99
sub esp, 0x18
mov ecx, esp
push str.costInit
call fcn.0044c020
call fcn.00479f00
mov ecx, eax
call fcn.0047aae0
sub esp, 0x18
mov ecx, esp
push 0x535d90
call fcn.0044c020
push 0x2ee2
sub esp, 0x18
mov ecx, esp
push str.actionInstallerEnterRunning
call fcn.0044c020
call fcn.00479f00
mov ecx, eax
call fcn.0047a6e0
push str.g_App.Run...
push 0x550bb8
call fcn.0048d540
add esp, 8
mov ecx, 0x553080
call fcn.004c9670
mov ebx, eax
push ebx
push str.g_App.Run_return:_d
push 0x550bb8
call fcn.0048d540
add esp, 0xc
mov ecx, 0x553080
call fcn.004c8540
sub esp, 0x18
mov edi, eax
mov ecx, esp
push edi
push ecx
call fcn.004d8a10
add esp, 8
push 0x2ee3
sub esp, 0x18
mov ecx, esp
push str.actionInstallerRunFinish
call fcn.0044c020
call fcn.00479f00
mov ecx, eax
call fcn.0047a6e0
mov ecx, 0x553080
call fcn.004c9d70
lea ecx, [ebp - 0x58]
call fcn.00497a30
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, 0x5530d4
test ebx, ebx
je 0x4db8ea
xor esi, esi
push esi
push 0x64
call fcn.004db980
push 0x535
mov ecx, 0x5530d4
call fcn.004db950
jmp 0x4db8f7
push edi
push 0x64
mov esi, 1
call fcn.004db980
lea ecx, [ebp - 0x58]
call fcn.00497360
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004de51d
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4dbad0
Capabilities:
Check mutex on windows

Disassembly:
push esi
push edi
push str.Global_rtp_svc_shutdown_event
mov esi, 1
push 0
push esi
call fcn.004dba20
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
test edi, edi
je 0x4dbb43
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push str.Global_rtpsvc_instance_mutex
push esi
call fcn.004dba20
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
test ebx, ebx
je 0x4dbb3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4dbb34
push 0x1388
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ecx, ecx
cmp eax, 0x102
cmove esi, ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, esi
pop esi
ret
Function at 0x4dc580
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x517925
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x550144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004c7960
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.0047d1f0
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
push str.recommandLevel
lea ecx, [ebp - 0x1c]
call fcn.004c8560
test eax, eax
je 0x4dc5f2
lea ecx, [ebp - 0x10]
call fcn.0044c0a0
push eax
call fcn.004e9333
add esp, 4
jmp 0x4dc5f4
xor eax, eax
cmp dword [ebp + 0xc], 0
jne 0x4dc60f
cmp eax, 1
jne 0x4dc609
cmp dword [ebp + 8], 0
je 0x4dc609
mov dword [esi], eax
jmp 0x4dc60f
mov dword [esi], 2
mov eax, dword [esi]
test eax, eax
jle 0x4dc620
push 0
mov ecx, esi
call fcn.004dc8a0
mov eax, dword [esi]
push eax
push dword [ebp + 8]
push dword [ebp + 0xc]
push str.CVersionChecker::Init_bCoverInstall_d_bSlient_d_nSimpleVersion_d
push 0x550bb8
call fcn.0048d540
add esp, 0x14
lea ecx, [ebp - 0x10]
call fcn.0044c080
lea ecx, [ebp - 0x1c]
call fcn.004c7d80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4fd361
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004fd1e0

Function at 0x502f93
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00502c53
Function at 0x14d0fa28
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
xor ebx, ebx
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x20000013
push dword [ebp + 8]
mov dword [ebp - 8], 4
mov dword [ebp - 0xc], ebx
call dword [0x14d12300]
test eax, eax
je 0x14d0fb16
cmp dword [ebp - 0xc], 0xc8
jne 0x14d0fb16
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
call dword [0x14d12158]
mov esi, eax
cmp esi, 0xffffffff
je 0x14d0fb16
mov byte [ebp - 1], bl
push ebx
push dword [ebp + 0x10]
call dword [0x14d12150]
test eax, eax
je 0x14d0fabc
lea eax, [ebp - 8]
push eax
push 0x200
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 8]
call dword [0x14d122ec]
test eax, eax
jne 0x14d0fac0
mov byte [ebp - 1], 1
cmp dword [ebp - 8], ebx
je 0x14d0faf0
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x210]
push eax
push esi
call dword [0x14d12190]
test eax, eax
je 0x14d0fae7
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 8]
je 0x14d0faeb
mov byte [ebp - 1], 1
cmp byte [ebp - 1], bl
je 0x14d0fa91
push esi
call dword [0x14d121a0]
push esi
call dword [0x14d12140]
cmp byte [ebp - 1], bl
je 0x14d0fb0c
push dword [ebp + 0xc]
call fcn.14d0eab6
pop ecx
xor eax, eax
cmp byte [ebp - 1], bl
sete al
jmp 0x14d0fb18
xor al, al
pop esi
pop ebx
leave
ret

Function at 0x430006
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x607430d
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x52d93525
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x40119f
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x47c78c
call fcn.0047bfa0
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0xc]
call fcn.00428def
and dword [ebp - 4], 0
lea ecx, [esi + 0x24]
call fcn.0042bba6
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 1
call fcn.0042bba6
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 2
call fcn.0042a5ec
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 3
call fcn.0042a5ec
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x4011f7
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x47c7c4
call fcn.0047bfa0
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x30]
mov dword [ebp - 4], 3
call fcn.0042a8ed
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 2
call fcn.0042a8ed
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 1
call fcn.0042bea3
and byte [ebp - 4], 0
lea ecx, [esi + 0x24]
call fcn.0042bea3
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xc]
call fcn.00428eb1
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x402855
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x47c9e8
call fcn.0047bfa0
sub esp, 0x234
push ebx
push esi
mov esi, ecx
xor ebx, ebx
inc ebx
push edi
cmp byte [esi + 8], 0
jne 0x402882
cmp byte [esi + 5], 0
jne 0x402882
and dword [0x4ae590], 0
jmp 0x402888
mov dword [0x4ae590], ebx
cmp byte [esi + 8], 0
je 0x4028de
lea eax, [ebp - 0x10]
push eax
call fcn.00402eac
and dword [ebp - 4], 0
mov dword [esp], 0x49b4fc
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0042c187
add esp, 0xc
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0042bea3
lea ecx, [ebp - 0x18]
call fcn.0042b08a
mov edi, 0x4ae590
push eax
mov ecx, edi
call fcn.004284a6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0042bea3
jmp 0x4028ed
push dword [esi + 0x50]
mov edi, 0x4ae590
mov ecx, edi
call fcn.004284ce
mov ecx, esi
call fcn.00401c82
cmp dword [0x4ae590], 0
push ebx
sete al
mov byte [0x4ae804], al
call fcn.004257a4
pop ecx
mov ebx, str.Ammyy_Admin
push ebx
mov ecx, 0x4ae800
call fcn.0042aab7
push ebx
mov ecx, 0x4adf3c
call fcn.0042aab7
push 0x49b4f8
mov ecx, 0x4adf34
call fcn.0042aab7
call fcn.00421e37
push eax
mov ecx, 0x4adf38
call fcn.0042aab7
push 0
push 0x100
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xb0], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
movzx eax, word [ebp - 0xac]
movzx ecx, word [ebp - 0xa8]
shl eax, 0x10
or eax, ecx
push eax
push str.OS_version__X
push edi
mov dword [esi + 0x38], eax
call fcn.0042872e
add esp, 0xc
mov ecx, esi
call fcn.00402747
cmp byte [esi + 8], 0
jne 0x402a7f
lea eax, [ebp - 0x240]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4029d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x14]
push str.Error_d_WSAStartup__
push eax
call fcn.0042777f
add esp, 0xc
lea eax, [ebp - 0x14]
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException
mov edi, 0x4ae4b0
mov ecx, edi
call fcn.004210ee
cmp dword [esi + 0x1c], 0
jbe 0x402a7f
add esi, 0x10
mov ecx, esi
call fcn.00429167
mov word [0x4ae81a], ax
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.00429224
push eax
mov ecx, 0x4ae814
mov dword [ebp - 4], 3
call fcn.0042aa22
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042a8ed
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.00429224
push eax
mov ecx, 0x4ae80c
mov dword [ebp - 4], 4
call fcn.0042aa22
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042a8ed
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.00429224
push eax
mov ecx, 0x4ae808
mov dword [ebp - 4], 5
call fcn.0042aa22
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0042a8ed
mov ecx, edi
call fcn.004219bf
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x402c4a
Capabilities:
Create directory
Set current directory

Disassembly:
mov eax, 0x47ca54
call fcn.0047bfa0
sub esp, 0x24
cmp byte [0x4adebc], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
je 0x402cb8
lea eax, [ebp - 0x1c]
push 0
push eax
call fcn.0040bb0d
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040af4d
add esp, 0x10
mov ecx, dword [ebp - 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.0042bfe4
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0042bea3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0042bea3
push dword [ebp - 0x18]
call fcn.0040b33b
pop ecx
jmp 0x402da1
xor esi, esi
push 2
inc esi
pop ebx
cmp esi, ebx
jg 0x402da1
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.0040b7c4
add esp, 4
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
mov dword [ebp - 4], ebx
call fcn.0042bbb2
call fcn.0040b03c
test al, al
pop ecx
jne 0x402dcb
push 0
lea ecx, [ebp - 0x14]
call fcn.0042b08a
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x402d4f
lea ecx, [ebp - 0x14]
call fcn.0042b08a
push eax
lea ecx, [ebp - 0x1c]
call fcn.0042a9a5
mov edi, eax
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
call fcn.0042b08a
push eax
push str.CreateDirectoryW__s__error_u
push 0x4ae590
call fcn.00428716
add esp, 0x10
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.0042a8ed
jmp 0x402dde
cmp esi, 1
jne 0x402d86
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.0042b08a
push eax
call fcn.0040b5d2
pop ecx
jmp 0x402d86
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
call fcn.0042bfe4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0042bea3
mov ecx, dword [ebp - 0x18]
call fcn.0042c60c
test eax, eax
je 0x402df0
lea eax, [ebp - 0x28]
push str.Cant_find_any_writtable_folder
push eax
call fcn.0042777f
pop ecx
lea eax, [ebp - 0x28]
pop ecx
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException
cmp esi, 1
jne 0x402d89
lea eax, [ebp - 0x14]
push eax
call fcn.0040b1ff
test al, al
pop ecx
jne 0x402d89
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0042bea3
inc esi
jmp 0x402cbe
mov ecx, dword [ebp - 0x18]
call fcn.0042b08a
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x402e4b
mov ecx, dword [ebp - 0x18]
call fcn.0042b08a
push eax
lea ecx, [ebp - 0x20]
call fcn.0042a9a5
mov esi, eax
mov dword [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.0042b08a
push eax
lea eax, [ebp - 0x30]
push str.SetCurrentDirectoryW__s__error_u
push eax
call fcn.0042777f
add esp, 0x10
lea eax, [ebp - 0x30]
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x402fa9
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
mov eax, 0x47cb20
call fcn.0047bfa0
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
call fcn.0042a5ec
xor ebx, ebx
lea ecx, [esi + 0xc]
mov dword [ebp - 4], ebx
call fcn.0042a5ec
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 1
call fcn.0042a5ec
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 2
call fcn.0042a5ec
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 3
call fcn.0042a5ec
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 4
call fcn.0042a5ec
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 5
call fcn.0042a5ec
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 6
call fcn.00428def
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 7
mov byte [ecx], al
mov al, byte [ebp - 0xd]
mov byte [ecx + 1], al
mov byte [ecx + 8], bl
call fcn.00404a4e
or dword [esi + 0x20], 0xffffffff
lea edi, [esi + 0x74]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x4838e4
mov dword [esi + 0x14], 0x1f40
mov byte [esi + 0x18], 1
mov word [esi + 8], bx
mov dword [esi + 0x1c], ebx
mov word [esi + 0x30], bx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x60], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
mov esi, ecx
push edi
mov edi, str.S:Ammyy_sourcesmainproxyHttpClient.cpp
cmp dword [esi + 0x20], 0xffffffff
jne 0x4035f3
push 0x117
push edi
lea ecx, [ebp - 0x10]
call fcn.00425667
mov ecx, eax
call fcn.00425773
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4035ff
cmp dword [ebp + 0xc], ebx
jg 0x403614
push 0x118
push edi
lea ecx, [ebp - 0x10]
call fcn.00425667
mov ecx, eax
call fcn.00425773
mov eax, dword [esi + 0x14]
xor edx, edx
mov ecx, 0x3e8
mov dword [ebp - 0x114], 1
div ecx
lea ecx, [ebp - 8]
push ecx
push ebx
lea ecx, [ebp - 0x114]
push ebx
push ecx
mov dword [ebp - 8], eax
lea eax, [edx + edx*4]
add eax, eax
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x110], eax
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
mov edi, eax
cmp edi, ebx
jle 0x403673
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, ebx
jl 0x403695
xor eax, eax
jmp 0x40369b
jne 0x40366b
push dword [esi + 0x14]
push str.CHttpClient::ReadSocket__:_no_data_received_during__u_ms.
push 0x4ae590
call fcn.0042872e
add esp, 0xc
mov dword [esi + 0x1c], 0x274c
xor eax, eax
jmp 0x4036a0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x1c], eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405361
Capabilities:
Get client handle via schannel
Get inbound credentials handle via credssp
Get outbound credentials handle via credssp

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
lea eax, [ebp - 4]
push edi
xor ebx, ebx
push eax
push str.NTLM
mov esi, ecx
mov dword [ebp - 4], ebx
call sub.Secur32.dll_QuerySecurityPackageInfoA
cmp eax, ebx
je 0x40538e
push eax
push str.ERROR_in_CHttpNTLMAuthObject::Prepare__:_QuerySecurityPackageInfo___failed__result__0x_x_
jmp 0x405422
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
cmp eax, 0x80000
mov dword [ebp - 8], eax
jbe 0x4053a6
push eax
push str.ERROR_in_CHttpNTLMAuthObject::Prepare__:_invalid_token_size__size___u_
jmp 0x405422
push 0xa
xor eax, eax
pop ecx
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x3c], 0x200
mov dword [ebp - 0x38], 0x2c
mov dword [ebp - 0x1c], 1
call fcn.0042b08a
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x34], eax
call fcn.0042b068
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
call fcn.0042b08a
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
call fcn.0042b068
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 4]
push eax
push ebx
lea eax, [ebp - 0x3c]
push ebx
push eax
mov eax, dword [ebp - 4]
push ebx
push 2
push dword [eax + 0xc]
push ebx
call sub.Secur32.dll_AcquireCredentialsHandleA
push dword [ebp - 4]
mov edi, eax
call sub.Secur32.dll_FreeContextBuffer
cmp edi, ebx
je 0x405433
push edi
push str.ERROR_in_CHttpNTLMAuthObject::Prepare__:_AcquireCredentialsHandle___failed__result__0x_x_
push 0x4ae590
call fcn.00428716
add esp, 0xc
xor al, al
jmp 0x40543b
mov eax, dword [ebp - 8]
mov dword [esi + 0x14], eax
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40888d
Capabilities:
Identify system language via api

Disassembly:
mov eax, 0x47ce84
call fcn.0047bfa0
push ecx
push esi
push edi
lea ecx, [ebp - 0x10]
call fcn.0042a5ec
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx esi, ax
call fcn.0040872d
mov edi, eax
call fcn.0040875f
push eax
push edi
push esi
lea eax, [ebp - 0x10]
push str._u._u._d
push eax
call fcn.0042baf6
mov ecx, dword [ebp + 8]
add esp, 0x14
lea eax, [ebp - 0x10]
push eax
call fcn.0042906c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042a8ed
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret