joyce8/EMBER2024-capa huggingface dataset:
Function at 0x495b37
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x524656
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea ecx, [esi + 0x14]
call fcn.0050e9b4
mov eax, dword [0xac43dc]
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [esi + 0x48], eax
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
cmp ebx, edi
mov byte [esp + 0x18], 1
mov dword [esi], 0x9a546c
mov dword [esi + 4], edi
mov dword [esi + 8], ecx
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
je 0x495b94
push ebx
call dword [0x57d3e4]
inc eax
push eax
call fcn.0050fc02
add esp, 4
mov dword [esi + 4], eax
push ebx
push eax
call dword [0x57d3b4]
mov ecx, dword [esp + 0x10]
or eax, 0xffffffff
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x4c], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4a0dc4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x28
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
cmp dword [esi + 0x78], ebp
je 0x4a0f7d
push ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
mov eax, dword [esi + 0x90]
cmp eax, ebp
je 0x4a0ef6
mov ecx, dword [esi + 0x94]
sub ecx, eax
mov eax, dword [esp + 0x14]
sar ecx, 4
cmp eax, ecx
jae 0x4a0ef6
xor ebx, ebx
mov edx, dword [esi + 0x90]
mov eax, dword [esp + 0x10]
add eax, edx
mov ecx, dword [eax + 4]
cmp ecx, ebp
je 0x4a0edd
mov edx, dword [eax + 8]
sub edx, ecx
sar edx, 2
cmp ebx, edx
jae 0x4a0edd
mov eax, ecx
mov ecx, esi
mov edi, dword [eax + ebx*4]
push edi
call fcn.004a2030
mov ebp, eax
test ebp, ebp
je 0x4a0ed5
push ebp
mov ecx, esi
call fcn.004a34b0
test eax, eax
je 0x4a0ed5
mov edx, dword [esi + 0x74]
cmp edi, edx
je 0x4a0ed5
mov eax, dword [esp + 0x10]
xor ecx, ecx
test ebx, ebx
sete cl
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 0x90]
add eax, ecx
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x4a0e96
xor eax, eax
jmp 0x4a0e9e
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
dec eax
xor ecx, ecx
cmp ebx, eax
lea eax, [edi + 1]
sete cl
mov dword [esp + 0x28], ecx
xor ecx, ecx
cmp eax, edx
sete cl
dec edi
mov dword [esp + 0x30], ecx
xor eax, eax
cmp edi, edx
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x18]
sete al
push ecx
push edx
mov ecx, ebp
mov dword [esp + 0x3c], eax
call fcn.004a3e50
inc ebx
xor ebp, ebp
jmp 0x4a0e27
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
inc ecx
add eax, 0x10
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
jmp 0x4a0e00
mov eax, dword [esi + 0x74]
mov ecx, esi
push eax
call fcn.004a2340
test eax, eax
pop ebx
je 0x4a0f7d
mov ecx, dword [esi + 0x74]
push ecx
mov ecx, esi
call fcn.004a2030
mov edi, eax
cmp edi, ebp
je 0x4a0f7d
push edi
mov ecx, esi
call fcn.004a34b0
test eax, eax
je 0x4a0f7d
mov eax, 1
lea edx, [esi + 0x1f8]
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x74]
mov ecx, esi
push eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x20], edx
call fcn.004a2580
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x20], eax
push ecx
mov ecx, esi
call fcn.004a25f0
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push eax
call fcn.004a3e50
pop edi
pop esi
pop ebp
add esp, 0x28
ret 4
Function at 0x4ab100
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x525957
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x9a648c
mov dword [esi + 4], ebx
lea ecx, [esi + 0x1c]
mov dword [esp + 0x16c], ebx
call fcn.0050dd7f
lea ecx, [esi + 0x24]
mov byte [esp + 0x16c], 1
call fcn.0050dd7f
mov edi, dword [0x57d6ec]
push 7
mov byte [esp + 0x170], 2
mov dword [esi], 0x9a6478
call edi
push 0xe
mov dword [esi + 0x2c], eax
call edi
push 0xf
mov dword [esi + 0x30], eax
call edi
push 4
mov dword [esi + 0x34], eax
call edi
push 0xd
mov dword [esi + 0x38], eax
call edi
push 0x14
mov dword [esi + 0x3c], eax
call edi
push 0x10
mov dword [esi + 0x40], eax
call edi
push 0x11
mov dword [esi + 0x44], eax
call edi
push 0xf
mov dword [esi + 0x48], eax
call edi
push 0x14
mov dword [esi + 0x4c], eax
call edi
push 0x10
mov dword [esi + 0x50], eax
call edi
mov dword [esi + 0x54], eax
mov eax, 0x14
mov ecx, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov ecx, 0x55
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push 0x29
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x20], 0x154
call dword [0x57d57c]
lea ecx, [esp + 0xb0]
push ecx
call dword [0x57d0ac]
mov ecx, esi
mov dword [esi + 0x10], eax
mov dword [esi + 8], ebx
call fcn.004abc20
mov eax, esi
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret

Function at 0x4c54d0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x526ef8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00516e9e
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov ecx, esi
mov dword [esp + 0x44], 0
call fcn.004c5410
mov ecx, dword [esi + 0x174]
mov eax, dword [esi + 0x178]
add ecx, 0x64
add eax, 0x64
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00516dcc
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x57d738]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x4c5597
cmp dword [esp + 0x40], 1
jne 0x4c5595
cmp ecx, eax
jge 0x4c5597
mov eax, ecx
cmp eax, 0x12c
jge 0x4c55a3
mov eax, 0x12c
mov ecx, esi
mov dword [esi + 0x194], eax
mov dword [esi + 0x1dc], 1
call fcn.004c55f0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [0x57d734]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00516f10
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4ceda0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5277b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [esp + 0x40]
push ebx
push esi
lea ecx, [esp + 8]
push eax
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.004cf190
mov esi, eax
lea edx, [esp + 0x48]
xor ebx, ebx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], 0xb0fc64
call fcn.004eda63
mov ecx, dword [0x9a87dc]
mov al, byte [esi]
push ecx
push ebx
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 1
mov byte [esp + 0x30], al
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.004cc4f0
mov esi, 0x9a8834
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0xc]
mov byte [esp + 0x3c], 3
cmp eax, ebx
je 0x4cee47
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4cee3e
cmp al, 0xff
je 0x4cee3e
dec al
mov byte [ecx], al
jmp 0x4cee47
push ecx
call fcn.0050fc2b
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.0050a9b0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], 0xffffffff
cmp eax, ebx
mov dword [esp + 0x18], esi
je 0x4cee8d
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4cee84
cmp al, 0xff
je 0x4cee84
dec al
mov byte [ecx], al
jmp 0x4cee8d
push ecx
call fcn.0050fc2b
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.004edaea
mov ecx, dword [esp + 0x34]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x4d4070
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x527ae0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004d3c20
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004d3ca0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004d3ca0
lea ecx, [esi + 0xc]
call fcn.0050fe4c
lea ecx, [esi + 0x10]
call fcn.0050fe4c
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004d5230
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004d5230
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004d5230
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0050fec1
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0050fec1
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x6886c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x5af015
lea edi, [esi - 0x1ae015]
push edi
or ebp, 0xffffffff
jmp 0x6886e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6886e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6886d8
mov eax, 1
add ebx, ebx
jne 0x6886fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x68870c
jne 0x68872b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x68872b
dec eax
add ebx, ebx
jne 0x688718
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6886f0
add ebx, ebx
jne 0x688727
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x68877d
xor ecx, ecx
sub eax, 3
jb 0x688743
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6887b2
sar eax, 1
mov ebp, eax
jmp 0x68874e
add ebx, ebx
jne 0x68874e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x68871c
inc ecx
add ebx, ebx
jne 0x68875c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x68871c
add ebx, ebx
jne 0x688769
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x68875e
jne 0x68877a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x68875e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x68879c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x68878e
jmp 0x6886de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x68879c
add edi, ecx
jmp 0x6886de
pop esi
mov edi, esi
mov ecx, 0x43e3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6887ba
cmp byte [edi], 0x11
jne 0x6887ba
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x6887bf
lea edi, [esi + 0x283000]
mov eax, dword [edi]
or eax, eax
je 0x68882e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x288588]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x28863c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6887ec
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x288640]
or eax, eax
je 0x688828
mov dword [ebx], eax
add ebx, 4
jmp 0x688809
call dword [esi + 0x288650]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x68885f
cmp al, 0xef
ja 0x688852
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x688834
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x688841
mov ebp, dword [esi + 0x288644]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0x2888ba]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x6888ab
sub esp, 0xffffff80
jmp 0x4013f0
Function at 0x401040
Capabilities:
Set registry value

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push 0xf003f
push 0
push ecx
push 0x80000002
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40106d
xor eax, eax
pop ecx
ret
push esi
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 8]
push esi
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 4]
pop esi
test eax, eax
je 0x40109f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ecx
ret

Function at 0x4010b0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x404725
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x408
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push 0x400
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_1
mov esi, dword [esp + 0x420]
lea edx, [esp + 8]
mov edi, 1
push edx
mov ecx, esi
mov dword [esp + 0x41c], edi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0xc], edi
lea ecx, [esp + 8]
mov byte [esp + 0x418], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x410]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x414
ret 4
Function at 0x401160
Capabilities:
Get mac address on windows

Disassembly:
push 0xffffffffffffffff
push 0x40475f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
mov ebp, ecx
push esi
xor ebx, ebx
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
call fcn.004042de
mov edi, 1
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], edi
call fcn.004042de
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 2
call fcn.004042de
lea eax, [esp + 0x1c]
mov byte [esp + 0x30], 3
push eax
push ebx
call sub.iphlpapi.dll_GetAdaptersInfo
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x4011ee
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebp
call fcn.00401350
mov esi, dword [esp + 0x38]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x20], edi
jmp 0x40130e
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
lea eax, [esp + 0x1c]
push eax
push esi
mov dword [esp + 0x2c], esi
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
je 0x401231
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebp
call fcn.00401350
mov esi, dword [esp + 0x38]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x20], edi
jmp 0x40130e
mov edi, dword [esp + 0x3c]
lea eax, [esi + 0x1d8]
lea ecx, [esp + 0x18]
push eax
call sub.MFC42.DLL_CString::operator
xor ecx, ecx
xor edx, edx
mov cl, byte [esi + 0x199]
mov dl, byte [esi + 0x198]
xor eax, eax
push ecx
mov al, byte [esi + 0x197]
push edx
xor ecx, ecx
push eax
mov cl, byte [esi + 0x196]
xor edx, edx
mov dl, byte [esi + 0x195]
xor eax, eax
mov al, byte [esi + 0x194]
push ecx
push edx
push eax
lea ecx, [esp + 0x2c]
push 0x407030
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x38]
add esp, 0x20
cmp dword [edx - 8], ebx
je 0x4012ad
cmp dword [esi + 0x1a0], 6
jne 0x4012ad
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::operator_1
cmp edi, ebx
jne 0x4012bc
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 8], ebx
jne 0x4012d6
jmp 0x4012cc
mov eax, dword [edi + 8]
lea edx, [esp + 0x14]
push edx
push eax
mov ecx, edi
call sub.MFC42.DLL_CStringArray::SetAtGrow
mov esi, dword [esi]
cmp esi, ebx
jne 0x401235
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 8], ebx
jne 0x4012f6
lea edx, [esp + 0x10]
mov ecx, ebp
push edx
call fcn.00401350
mov esi, dword [esp + 0x38]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x20], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x40152d
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40481b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x20], esi
lea ebp, [esi + 4]
mov ecx, ebp
call fcn.004042de
lea ebx, [esi + 8]
mov dword [esp + 0x130], 0
mov ecx, ebx
call fcn.004042de
lea ecx, [esi + 0xc]
mov byte [esp + 0x130], 1
call fcn.004042de
lea edi, [esi + 0x10]
push 0
mov ecx, edi
mov byte [esp + 0x134], 2
call sub.MFC42.DLL_CSyncObject::CSyncObject
mov dword [edi], 0x405278
add edi, 8
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea edi, [esi + 0x30]
push 0
mov ecx, edi
mov byte [esp + 0x134], 3
call sub.MFC42.DLL_CSyncObject::CSyncObject
mov dword [edi], 0x405278
add edi, 8
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov al, byte [esp + 0x1f]
mov byte [esi + 0x60], al
xor eax, eax
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], eax
push 0x407080
mov ecx, ebx
mov byte [esp + 0x134], 5
mov dword [esi], 0x405274
call sub.MFC42.DLL_CString::operator
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x25]
mov byte [esp + 0x24], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x10]
stosb byte es:[edi], al
call fcn.004042de
lea ecx, [esp + 0x24]
push 0x104
xor edi, edi
push ecx
push edi
mov byte [esp + 0x13c], 6
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x24]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::operator
push 0x5c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea ecx, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], 7
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x130], 6
call sub.MFC42.DLL_CString::CString
push 0x2e
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReverseFind
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push 0x407078
lea edx, [esp + 0x18]
push eax
push edx
mov byte [esp + 0x13c], 8
call sub.MFC42.DLL_operator
push eax
mov ecx, ebp
mov byte [esp + 0x134], 9
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x130], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x130], 6
call sub.MFC42.DLL_CString::CString
push ebp
lea eax, [esp + 0x1c]
push ebx
push eax
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esi + 0xc]
mov byte [esp + 0x134], 0xa
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x130], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x58], 0x1f
mov byte [esp + 0x130], 5
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x128]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x124
ret
mov ecx, 0x4075a0
jmp 0x401510
Function at 0x401750
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x40485c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], 0x405274
mov edi, dword [esi + 0x64]
mov eax, dword [esi + 0x68]
xor ebx, ebx
cmp edi, eax
mov dword [esp + 0x20], 3
jae 0x4017a7
mov eax, dword [edi]
cmp eax, ebx
je 0x4017a7
push eax
call sub.MFC42.DLL_operatordelete
mov dword [edi], ebx
mov eax, dword [esi + 0x68]
add edi, 4
add esp, 4
cmp edi, eax
jb 0x40178c
mov edx, dword [esi + 0x68]
mov eax, dword [esi + 0x64]
cmp edx, edx
mov ecx, edx
je 0x4017c1
mov edi, dword [ecx]
add ecx, 4
mov dword [eax], edi
add eax, 4
cmp ecx, edx
jne 0x4017b3
mov ecx, dword [esi + 0x68]
mov dword [esi + 0x68], eax
mov eax, dword [esi + 0x64]
mov dword [esp + 0x14], ecx
push eax
mov dword [esp + 0x18], eax
call sub.MFC42.DLL_operatordelete
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea edi, [esi + 0x30]
add esp, 4
mov dword [esi + 0x64], ebx
lea edx, [edi + 8]
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
push edx
mov dword [edi], 0x405278
call ebp
mov ecx, edi
call fcn.00404326
lea edi, [esi + 0x10]
mov byte [esp + 0x20], 2
lea eax, [edi + 8]
mov dword [edi], 0x405278
push eax
call ebp
mov ecx, edi
call fcn.00404326
lea ecx, [esi + 0xc]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 8]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 4]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4019a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
lea edi, [ecx + 4]
xor ebx, ebx
xor eax, eax
mov edx, edi
mov byte [edx], al
inc eax
inc edx
cmp ax, 0x100
jl 0x4019b0
mov byte [ecx + 0x105], bl
mov byte [ecx + 0x104], bl
mov byte [esp + 0x10], bl
xor ecx, ecx
mov esi, edi
mov dword [esp + 0x14], 0x100
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x20]
mov dl, byte [esi]
and eax, 0xff
xor ebx, ebx
mov bl, byte [eax + ebp]
mov ebp, edx
and ebp, 0xff
add ecx, ebx
add ecx, ebp
and ecx, 0x800000ff
jns 0x401a06
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x18], cl
mov ecx, dword [esp + 0x18]
and ecx, 0xff
inc eax
mov bl, byte [ecx + edi]
mov byte [esi], bl
mov byte [ecx + edi], dl
cdq
idiv dword [esp + 0x24]
mov eax, dword [esp + 0x14]
inc esi
dec eax
mov dword [esp + 0x14], eax
mov byte [esp + 0x10], dl
jne 0x4019d6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x401a40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push esi
mov esi, ecx
push edi
push 0x10
lea eax, [esi + 0x106]
push eax
call fcn.004019a0
mov cl, byte [esi + 0x104]
mov dl, byte [esi + 0x105]
mov byte [esp + 8], cl
mov ecx, dword [esp + 0x18]
xor eax, eax
xor edi, edi
cmp ecx, eax
mov byte [esp + 0xc], dl
jle 0x401b41
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
and eax, 0xff
and ecx, 0xff
inc eax
and eax, 0x800000ff
jns 0x401aa1
dec eax
or eax, 0xffffff00
inc eax
mov byte [esp + 0x10], al
mov eax, dword [esp + 0x10]
and eax, 0xff
mov dl, byte [eax + esi + 4]
mov ebx, edx
and ebx, 0xff
add ebx, ecx
and ebx, 0x800000ff
jns 0x401acc
dec ebx
or ebx, 0xffffff00
inc ebx
mov byte [esp + 0x14], bl
mov byte [esp + 0x1c], dl
mov ecx, dword [esp + 0x14]
and ecx, 0xff
mov bl, byte [ecx + esi + 4]
mov byte [eax + esi + 4], bl
mov byte [ecx + esi + 4], dl
mov edx, dword [esp + 0x1c]
and edx, 0xff
and edx, 0x800000ff
jns 0x401b04
dec edx
or edx, 0xffffff00
inc edx
mov bl, byte [eax + esi + 4]
add dl, bl
mov bl, byte [edi + ebp]
and edx, 0xff
mov dl, byte [edx + esi + 4]
xor bl, dl
mov edx, dword [esp + 0x20]
mov byte [edi + ebp], bl
inc edi
cmp edi, edx
jl 0x401a92
xor al, al
pop ebp
pop ebx
mov byte [esi + 0x104], al
mov byte [esi + 0x105], al
pop edi
pop esi
add esp, 8
ret 8
mov byte [esi + 0x104], al
mov byte [esi + 0x105], al
pop edi
pop esi
add esp, 8
ret 8