joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4681ec
Capabilities:
Get common file path
Set current directory

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

Function at 0x401080
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x13c
mov eax, dword [0x404008]
xor eax, esp
mov dword [esp + 0x138], eax
push esi
lea eax, [esp + 8]
mov dword [esp + 4], 0
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionOpenWith
xorps xmm0, xmm0
mov dword [esp + 0x18], 0
push reloc.OLEAUT32.dll_SysReAllocString
movaps xmmword [esp + 0x34], xmm0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401191
mov esi, dword [esp + 8]
test esi, esi
je 0x401191
push pe_nt_image_headers32
push eax
lea eax, [esp + 0x40]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x1c], pe_nt_image_headers32
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0x403224
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x401191
lea ecx, [esp + 0x38]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401130
sub ecx, edx
sar ecx, 1
cmp ecx, 0x26
jne 0x401191
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
js 0x401191
lea eax, [esp + 4]
mov dword [esp + 0xc], 0x6a283fe2
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 0x4599ecfa
push eax
push 4
push 0
lea eax, [esp + 0x30]
mov dword [esp + 0x24], 0x9e8c491
push eax
mov dword [esp + 0x2c], 0x267b1357
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [esp + 0x13c]
mov eax, dword [esp + 4]
pop esi
xor ecx, esp
call fcn.004012f0
mov esp, ebp
pop ebp
ret

Function at 0x4011b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push 2
push 0
mov dword [ebp - 4], eax
call dword [sym.imp.ole32.dll_CoInitializeEx]
call fcn.00401080
mov ebx, eax
push 0
push ebx
call dword [sym.imp.ole32.dll_CoAllowSetForegroundWindow]
push str..pdf
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
test esi, esi
je 0x401232
mov edi, dword [ebx]
push 4
push esi
push dword [ebp - 4]
mov edi, dword [edi + 0xc]
mov ecx, edi
push ebx
call dword [0x403110]
call edi
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebx]
push ebx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x403110]
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x8007000e
call fcn.00401030
int3
Function at 0x5089c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb2000]
push edi
jmp 0x5089da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5089e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5089d0
mov eax, 1
add ebx, ebx
jne 0x5089f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x508a04
jne 0x508a23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x508a23
dec eax
add ebx, ebx
jne 0x508a10
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5089e8
add ebx, ebx
jne 0x508a1f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x508a75
xor ecx, ecx
sub eax, 3
jb 0x508a3b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x508aaa
sar eax, 1
mov ebp, eax
jmp 0x508a46
add ebx, ebx
jne 0x508a46
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x508a14
inc ecx
add ebx, ebx
jne 0x508a54
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x508a14
add ebx, ebx
jne 0x508a61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x508a56
jne 0x508a72
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x508a56
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x508a94
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x508a86
jmp 0x5089d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x508a94
add edi, ecx
jmp 0x5089d6
pop esi
mov edi, esi
mov ecx, 0x3ed3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x508ab2
cmp byte [edi], 0x11
jne 0x508ab2
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 0x508ab7
lea edi, [esi + 0x101000]
mov eax, dword [edi]
or eax, eax
je 0x508b2f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1385a0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x13871c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x508ae4
mov ecx, edi
jns 0x508b13
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x138720]
or eax, eax
je 0x508b29
mov dword [ebx], eax
add ebx, 4
jmp 0x508b01
call dword [esi + 0x138730]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x508b60
cmp al, 0xef
ja 0x508b53
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x508b35
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x508b42
mov ebp, dword [esi + 0x138724]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x508b94
sub esp, 0xffffff80
jmp 0x427dcd
Function at 0x402050
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47afd8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4ade78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0xc]
mov dword [esi + 8], 0
call fcn.00401e60
mov dword [esi], vtable.CSandBox.0
mov dword [esi + 4], vtable.CSandBox.1.0
mov eax, dword [0x4adbb8]
mov ecx, 0x4adbb8
mov dword [ebp - 4], 0
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x1c], eax
mov eax, dword [0x4adbb8]
mov ecx, 0x4adbb8
mov byte [ebp - 4], 1
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 5
call fcn.00401fe0
xorps xmm0, xmm0
mov dword [esi + 0x40], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x4c], 0
movq qword [esi + 0x80], xmm0
movq qword [esi + 0x88], xmm0
push 0x3004
mov byte [ebp - 4], 6
mov dword [esi + 0x7c], 0
mov dword [esi + 0x78], 0
mov byte [esi + 0x34], 0
mov dword [esi + 0x38], 0xffffffff
mov word [esi + 0x3c], 1
mov dword [esi + 0x90], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x18], 0
call fcn.004601e0
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 7
test eax, eax
je 0x40218e
push fcn.00402850
push 0x4021b0
push 0x400
lea edi, [eax + 4]
push 0xc
push edi
mov dword [eax], 0x400
call fcn.00461d1f
jmp 0x402190
xor edi, edi
mov dword [esi + 0x98], edi
mov word [esi + 0x74], 0x100
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4078a0
Capabilities:
Access peb ldr_data
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b958
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4ade78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [0x4adbb8]
mov ecx, 0x4adbb8
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
cmp dword [ebx + 0x30], 0
mov dword [ebp - 4], 0
je 0x4079cf
mov edi, dword [0x4af2c0]
mov eax, edi
imul eax, edi
imul eax, edi
cdq
mov ecx, 0x12
idiv ecx
cmp edx, 0xf
jne 0x407910
dec edi
mov dword [0x4af2c0], edi
call fcn.0040cf90
test al, al
jne 0x40793d
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edi, dword [0x4af2c0]
mov dword [ebp - 0x10], 0
mov eax, edi
imul eax, edi
imul eax, edi
cdq
mov ecx, 0xd
idiv ecx
mov byte [ebp - 4], 1
cmp edx, 7
jne 0x407976
lea ecx, [edx - 6]
cmp edi, ecx
jle 0x407970
mov eax, edi
cdq
idiv ecx
inc ecx
add ecx, edx
cmp ecx, edi
jl 0x407964
mov dword [0x4af2c0], ecx
mov eax, dword [ebx + 0x30]
lea edx, [ebp - 0x10]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x64]
test eax, eax
mov eax, dword [ebp - 0x10]
jne 0x4079c1
test eax, eax
je 0x4079c1
mov dword [ebp - 0x14], 0
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push eax
mov byte [ebp - 4], 2
call dword [ecx + 0x28]
test eax, eax
jne 0x4079b5
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.00402a20
mov esi, dword [ebp - 0x18]
push dword [ebp - 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 0
test eax, eax
je 0x4079cf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, 1
call fcn.00412b90
xor ecx, ecx
push ecx
push ecx
test al, al
push ecx
cmovne edi, ecx
push edi
push esi
call dword [sym.imp.WININET.dll_InternetOpenA]
add esi, 0xfffffff0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407a0e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4087b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 8
call fcn.00460a63
mov esi, eax
add esp, 4
test esi, esi
je 0x4087ec
mov eax, dword [0x4adbb8]
mov ecx, 0x4adbb8
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [0x4adbb8]
mov ecx, 0x4adbb8
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 4], eax
jmp 0x4087ee
xor esi, esi
push dword [ebp + 8]
mov ecx, esi
call fcn.00402970
push dword [ebp + 0xc]
lea ecx, [esi + 4]
call fcn.00402970
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x403230
push 0
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp byte [ebp + 0x10], 0
mov esi, eax
jne 0x408831
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x408850
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x408865
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4088a4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4088a0
lea ebx, [ebx]
cmp esi, edx
jae 0x4088a4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x408890
cmp esi, edx
jb 0x4088a9
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x40a370
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3bc
mov eax, dword [0x4ade78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x4af2c0]
mov ecx, 0x14
lea eax, [ebx + 1]
imul eax, ebx
cdq
idiv ecx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x3bc], edi
cmp edx, 9
jne 0x40a3cc
push 4
call fcn.00460a63
mov esi, eax
call fcn.00461e71
mov dword [esi], eax
push esi
mov dword [0x4af2c0], eax
call fcn.00460a34
mov ebx, dword [0x4af2c0]
add esp, 8
test edi, edi
jne 0x40a3ff
lea eax, [ebx + 1]
imul eax, ebx
cdq
mov ecx, 0xc
idiv ecx
cmp edx, 1
jne 0x40a4b1
xor esi, esi
mov edi, ebx
jmp 0x40a3f0
inc esi
dec edi
cmp esi, 0xab
jb 0x40a3f0
jmp 0x40a4b1
mov eax, dword [0x4adbb8]
mov ecx, 0x4adbb8
call dword [eax + 0xc]
lea esi, [eax + 0x10]
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov dword [ebp - 0x3b8], esi
mov byte [ebp - 0x108], 0
call fcn.00462e00
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0
push 0
push 6
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x40a476
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a454
sub ecx, edx
push ecx
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x3b8]
call fcn.00408620
mov esi, dword [ebp - 0x3b8]
push ecx
add esi, 0xfffffff0
mov edi, esp
push esi
call fcn.00403ee0
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00452960
mov ecx, dword [ebp - 0x3bc]
add esp, 4
mov dword [ecx], eax
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a4b1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00461234
mov esp, ebp
pop ebp
ret 8
Function at 0x40ccf0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 4
call fcn.00460a63
add esp, 4
test eax, eax
je 0x40cd13
push dword [ebp + 0xc]
push eax
call fcn.00452c50
add esp, 8
mov esi, eax
jmp 0x40cd15
xor esi, esi
call fcn.0040cf90
test al, al
jne 0x40cd28
call fcn.00461e71
mov dword [0x4af2c0], eax
push edi
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x405d70
push 0
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
mov eax, dword [0x4af2c0]
imul eax, eax
cdq
mov ecx, 0x13
idiv ecx
cmp edx, 0xc
jne 0x40cd7f
mov eax, 0x96
mov esi, 0xb9
test esi, esi
je 0x40cd78
cdq
idiv esi
mov ecx, esi
mov eax, ecx
mov esi, edx
test ecx, ecx
jne 0x40cd67
add eax, esi
mov dword [0x4af2c0], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4af2c0]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 0x8000000f
jns 0x40cd9e
dec ecx
or ecx, 0xfffffff0
inc ecx
pop edi
cmp ecx, 5
jne 0x40cdc8
mov eax, 0xa1
mov esi, 0xfb
mov edi, edi
test esi, esi
je 0x40cdc1
cdq
idiv esi
mov ecx, esi
mov eax, ecx
mov esi, edx
test ecx, ecx
jne 0x40cdb0
add eax, esi
mov dword [0x4af2c0], eax
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40f4a0
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x4ade78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x1a0], eax
test eax, eax
jne 0x40f4de
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00461234
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 0x194]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40f657
mov eax, 0x101
cmp ax, word [ebp - 0x194]
jne 0x40f657
push esi
lea ecx, [ebp - 0x1a4]
call fcn.004022d0
mov esi, dword [eax]
test esi, esi
je 0x40f531
cmp dword [esi + 4], 0
jne 0x40f52c
push dword [esi]
call fcn.0045fcc0
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
jmp 0x40f533
xor eax, eax
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
lea ecx, [ebp - 0x1a4]
mov dword [ebp - 0x19c], ebx
call fcn.00408a60
test ebx, ebx
je 0x40f4c6
mov eax, dword [0x4adbb8]
mov ecx, 0x4adbb8
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x198], esi
cmp dword [eax], 0
je 0x40f616
xor ebx, ebx
lea esp, [esp]
mov eax, dword [ebx + eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
cmp dword [esi - 0xc], 0
mov edi, eax
lea ebx, [ebx + 4]
jle 0x40f5da
push 1
push 0x491778
lea ecx, [ebp - 0x198]
call fcn.004035a0
test edi, edi
jne 0x40f5bd
xor ecx, ecx
push ecx
push edi
lea ecx, [ebp - 0x198]
call fcn.004035a0
jmp 0x40f5fd
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f5c2
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x198]
call fcn.004035a0
jmp 0x40f5fd
test edi, edi
jne 0x40f5e2
xor ecx, ecx
jmp 0x40f5f0
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f5e7
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x198]
call fcn.00408620
mov eax, dword [ebp - 0x19c]
mov esi, dword [ebp - 0x198]
mov eax, dword [eax + 0xc]
cmp dword [ebx + eax], 0
jne 0x40f580
call dword [sym.imp.WS2_32.dll_WSACleanup]
push ecx
add esi, 0xfffffff0
mov edi, esp
push esi
call fcn.00403ee0
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00452960
mov ecx, dword [ebp - 0x1a0]
add esp, 4
mov dword [ecx], eax
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f657
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00461234
mov esp, ebp
pop ebp
ret 0xc
Function at 0x411110
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
call fcn.004114c0
test al, al
jne 0x411189
mov esi, dword [0x4af2c0]
mov eax, 0x24168e19
imul esi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul ecx, ecx, 0xe3
mov eax, esi
sub eax, ecx
xor edi, edi
cmp eax, 0x8b
je 0x411183
lea ebx, [ebx]
mov eax, esi
or eax, 0xffffffcf
add esi, eax
mov eax, esi
imul eax, esi
inc edi
cmp edi, eax
jg 0x411183
mov eax, 0x24168e19
imul esi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul ecx, ecx, 0xe3
mov eax, esi
sub eax, ecx
cmp eax, 0x8b
jne 0x411150
mov dword [0x4af2c0], edi
mov esi, dword [ebp + 0xc]
push esi
call fcn.004112e0
mov ebx, dword [ebp + 8]
add esp, 4
mov dword [ebp - 4], eax
test ebx, ebx
je 0x41128e
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x41128e
cmp eax, dword [ebp + 0x14]
ja 0x41128e
xor eax, eax
test esi, esi
je 0x411248
cmp eax, esi
jae 0x4111cc
movzx edx, byte [eax + ebx]
inc eax
jmp 0x4111ce
xor edx, edx
cmp eax, esi
jae 0x4111dc
movzx ecx, byte [eax + ebx]
mov dword [ebp + 8], ecx
inc eax
jmp 0x4111e3
mov dword [ebp + 8], 0
cmp eax, esi
jae 0x4111ee
movzx ecx, byte [eax + ebx]
inc eax
jmp 0x4111f0
xor ecx, ecx
shl edx, 8
add edx, dword [ebp + 8]
add edi, 4
shl edx, 8
add edx, ecx
mov ecx, edx
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi - 4], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi - 3], cl
mov ecx, edx
shr ecx, 6
and ecx, 0x3f
and edx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi - 2], cl
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi - 1], cl
cmp eax, esi
jb 0x4111c5
mov edi, dword [ebp + 0x10]
mov eax, 0xaaaaaaab
mul esi
shr edx, 1
xor ecx, ecx
lea eax, [edx + edx*2]
mov edx, dword [ebp - 4]
sub esi, eax
cmp dword [esi*4 + 0x4919e0], ecx
jle 0x411280
lea eax, [edx - 1]
add eax, edi
lea esp, [esp]
mov byte [eax], 0x3d
inc ecx
lea eax, [eax - 1]
cmp ecx, dword [esi*4 + 0x4919e0]
jl 0x411270
mov eax, dword [ebp + 0x18]
pop edi
pop esi
mov dword [eax], edx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x411550
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41156b
test al, 0x10
je 0x41156b
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret
Function at 0x411660
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x4af2c0]
mov eax, ecx
imul eax, ecx
imul eax, ecx
cdq
mov ecx, 0x12
idiv ecx
cmp edx, 0xb
jne 0x411690
push 4
call fcn.00460a63
mov ecx, dword [0x4af2c0]
add esp, 4
mov dword [eax], ecx
push esi
push 0
push 0
push 3
push 0
push 0
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4116b5
xor eax, eax
pop esi
pop ebp
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
call fcn.004125f0
test al, al
jne 0x4116dc
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetMailslotInfo]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
pop ebp
ret

Function at 0x411700
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47bfc2
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x4ade78]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 0xf9
lea eax, [ebp - 0x10b]
push 0
mov dword [ebp - 0x110], 0
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x114], esi
mov byte [ebp - 0x10c], 0
call fcn.00462e00
add esp, 0xc
lea eax, [ebp - 0x10c]
push 0xfa
push eax
push str._userprofile_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x10c]
push eax
mov ecx, esi
call fcn.00401b30
mov ecx, dword [esi]
mov dword [ebp - 4], 0
cmp dword [ecx - 0xc], 0
mov dword [ebp - 0x110], 1
mov ecx, esi
je 0x4117ac
push 0x11
push str.AppDataLocalLow
jmp 0x4117b3
push 3
push 0x491a10
call fcn.004035a0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00461234
mov esp, ebp
pop ebp
ret
Function at 0x4117e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47c01d
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x4ade78]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x11c], 0
mov eax, dword [0x4adbb8]
mov ecx, 0x4adbb8
mov dword [ebp - 4], 0
mov dword [ebp - 0x120], esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push 0x103
lea eax, [ebp - 0x113]
push 0
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x11c], 1
mov byte [ebp - 0x114], 0
call fcn.00462e00
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
push 0
push 0
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x4118cc
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x118]
call fcn.00401b30
mov eax, dword [eax]
mov ecx, esi
push dword [eax - 0xc]
mov dword [ebp - 4], 1
push eax
call fcn.004035a0
mov edi, dword [ebp - 0x118]
add edi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4118da
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x4118da
push 3
push 0x491a10
mov ecx, esi
call fcn.004035a0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00461234
mov esp, ebp
pop ebp
ret