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

Disassembly:
push 0xffffffffffffffff
push 0x4e3093
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
mov eax, dword [0xde8598]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov esi, ecx
push 0xde9e70
push 0xde9e58
push 0xde9e6c
lea ecx, [esp + 0x20]
call fcn.00499380
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x58], 0
call fcn.00499860
lea ecx, [esp + 0x30]
push ecx
mov ebx, 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x58], bl
call dword [0x4eb9b0]
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0x54], 2
jb 0x4ba5cd
mov eax, dword [eax + 4]
jmp 0x4ba5d0
add eax, 4
push eax
lea edx, [esp + 0x24]
push 0x5099e8
push edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], 0x5099cc
mov dword [esp + 0x34], 0x50987c
mov dword [esp + 0x38], 0x46
call fcn.0040c600
add esp, 0xc
lea ecx, [esp + 0x30]
mov byte [esp + 0x54], bl
call dword [0x4eb23c]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.004b9aa0
lea edx, [esp + 0x10]
push edx
mov ecx, esi
mov byte [esp + 0x58], 3
call fcn.004ba110
mov ecx, dword [esp + 0x5c]
mov dword [ecx], eax
mov dword [ecx + 4], edx
test edx, edx
jl 0x4ba648
jg 0x4ba642
test eax, eax
jbe 0x4ba648
mov byte [esp + 0x5c], bl
jmp 0x4ba64d
mov byte [esp + 0x5c], 0
mov eax, dword [esp + 0x10]
mov byte [esp + 0x54], bl
or ecx, 0xffffffff
lock xadd dword [eax], ecx
mov esi, dword [0x4eba10]
jne 0x4ba66e
mov edx, dword [esp + 0x10]
push edx
call esi
add esp, 4
mov eax, dword [esp + 0xc]
mov byte [esp + 0x54], 0
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4ba68a
mov edx, dword [esp + 0xc]
push edx
call esi
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x54], 0xffffffff
call fcn.00401050
mov al, byte [esp + 0x5c]
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x4c
ret 4

Function at 0x4c0d90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e3973
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0xde8598]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], 0x50a4d0
lea ecx, [esi + 0x44]
mov dword [esp + 0x14], 1
call dword [0x4eb23c]
mov eax, dword [esi + 0x30]
test eax, eax
je 0x4c0ddf
push eax
call fcn.004cab6a
add esp, 4
mov eax, dword [esi + 0x24]
push eax
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
call fcn.004cab6a
add esp, 4
lea ecx, [esi + 8]
mov dword [esp + 0x14], 0xffffffff
mov dword [esi], 0x4efde8
call dword [0x4eb23c]
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x4079eb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x497fa4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, 0x244
push edi
xor esi, esi
lea eax, [ebp - 0x248]
push esi
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push edi
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x407a3a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00439878
leave
ret
push str.kernel32.dll
lea eax, [ebp - 0x248]
push 0x122
push eax
call dword [sym.imp.MSVCR100.dll_wcscat_s]
add esp, 0xc
lea eax, [ebp - 0x248]
push eax
call fcn.00407963
mov edi, eax
cmp edi, esi
je 0x407a2a
push 0x477c1c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
jne 0x407a81
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x407a2c
push esi
push esi
push 1
push esi
call eax
mov esi, eax
neg esi
sbb esi, esi
neg esi
jmp 0x407a76

Function at 0x40a483
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, ecx
push dword [esi + 4]
call edi
xor ecx, ecx
cmp eax, ecx
je 0x40a4a6
mov eax, dword [eax]
mov dword [ebp - 4], eax
jmp 0x40a4a9
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], ecx
jne 0x40a4d3
push ecx
push 0xffffffffffffffff
push str.must_own_monitor_prior_to_calling_wait__
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], vtable.RSException.0
call fcn.00409030
push 0x485a5c
lea eax, [ebp - 0x20]
push eax
call sub.MSVCR100.dll__CxxThrowException
lea ebx, [esi + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [esi + 4]
call edi
push eax
mov ecx, esi
call fcn.0040a2b7
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.0040a1b7
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp - 4]
mov ecx, esi
call fcn.0040a3be
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40a552
Capabilities:
Create thread

Disassembly:
push esi
push 4
mov esi, ecx
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
xor ecx, ecx
cmp eax, ecx
je 0x40a567
mov dword [eax], ecx
jmp 0x40a569
xor eax, eax
push ecx
push ecx
push esi
push 0x40a540
push ecx
push ecx
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esi + 0x10]
mov dword [ecx], eax
pop esi
ret
Function at 0x40ab58
Capabilities:
Check if file exists

Disassembly:
push 0x49c
mov eax, 0x4677c5
call fcn.00439973
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ecx, esi
call fcn.0040852a
xor ebx, ebx
cmp dword [esi + 4], ebx
jne 0x40ab85
mov eax, 0xffffe89d
jmp 0x40adb2
push ebx
push 0xffffffffffffffff
push 0x477eb0
lea ecx, [ebp - 0x488]
call fcn.00409030
push ebx
lea eax, [ebp - 0x488]
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00409ca4
cmp eax, 0xffffffff
setne bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x478]
call fcn.00403754
lea ecx, [ebp - 0x480]
call fcn.00403754
test bl, bl
je 0x40abd8
mov eax, 0xffffe8c2
jmp 0x40adb2
mov ecx, esi
call fcn.0040852a
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [ebp - 0x46c]
push ecx
push eax
call ebx
mov dword [ebp - 0x470], eax
cmp eax, 0xffffffff
jne 0x40ad12
mov ecx, esi
call fcn.0040852a
lea ecx, [ebp - 0x48c]
push ecx
lea ecx, [ebp - 0x21c]
push ecx
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov dword [ebp - 0x470], eax
test eax, eax
jne 0x40ac2f
inc eax
jmp 0x40adb2
cmp eax, 0x20a
jbe 0x40ac40
mov eax, 0xffffe8c1
jmp 0x40adb2
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x488]
call fcn.004089e6
lea esi, [ebp - 0x488]
mov dword [ebp - 4], 1
call fcn.0040a65c
test eax, eax
je 0x40ac9f
xor eax, eax
mov dword [edi], 2
mov dword [edi + 4], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
xor esi, esi
lea ecx, [ebp - 0x478]
call fcn.00403754
lea ecx, [ebp - 0x480]
call fcn.00403754
mov eax, esi
jmp 0x40adb2
mov ecx, dword [ebp - 0x470]
lea ecx, [ebp + ecx*2 - 0x21e]
movzx eax, word [ecx]
push eax
call fcn.0040a642
add esp, 4
test al, al
jne 0x40acd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40acd1
cmp eax, 3
je 0x40acd1
xor esi, esi
inc esi
jmp 0x40ac82
mov esi, 0xffffe8c2
jmp 0x40ac82
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x21c]
push eax
call ebx
mov dword [ebp - 0x470], eax
cmp eax, 0xffffffff
je 0x40acbc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x478]
call fcn.00403754
lea ecx, [ebp - 0x480]
call fcn.00403754
push dword [ebp - 0x470]
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x46c], 0x10
push 0
pop eax
setne al
xor ebx, ebx
inc eax
mov dword [edi], eax
cmp dword [ebp - 0x450], ebx
je 0x40ad66
push ebx
push 0xffffffffffffffff
push str.file_size_larger_than_4GB_encountered
lea ecx, [ebp - 0x4a4]
mov dword [ebp - method.RSException.virtual_0], vtable.RSException.0
call fcn.00409030
push 0x485a5c
lea eax, [ebp - 0x4a8]
push eax
call sub.MSVCR100.dll__CxxThrowException
mov eax, dword [ebp - 0x44c]
mov dword [edi + 4], eax
lea esi, [edi + 0x10]
lea eax, [ebp - 0x458]
push esi
push eax
call fcn.0040a823
pop ecx
pop ecx
cmp dword [ebp - 0x468], ebx
jne 0x40ad9e
cmp dword [ebp - 0x464], ebx
jne 0x40ad9e
mov eax, dword [esi]
mov dword [edi + 8], eax
mov eax, dword [esi + 4]
mov dword [edi + 0xc], eax
jmp 0x40adb0
add edi, 8
lea eax, [ebp - 0x468]
push edi
push eax
call fcn.0040a823
pop ecx
pop ecx
xor eax, eax
call fcn.004399f6
ret
Function at 0x40c6b4
Capabilities:
Set registry value

Disassembly:
push 0x88
mov eax, 0x467ac8
call fcn.0043990a
mov esi, ecx
xor edi, edi
push edi
push 0xffffffffffffffff
push 0x478080
lea ecx, [ebp - 0x2c]
call fcn.00409030
push dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 4], edi
call fcn.0041b98b
add esp, 0xc
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00403754
lea ecx, [ebp - 0x24]
call fcn.00403754
push esi
lea ecx, [ebp - 0x14]
call fcn.00403419
push 1
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.0040bea8
test eax, eax
je 0x40c7c8
cmp dword [esi + 0xc], edi
je 0x40c79f
lea ecx, [ebp - 0x44]
call fcn.0040852a
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push dword [ebp + 0xc]
mov ebx, eax
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
push ebx
push dword [esi + 8]
push eax
call dword [ecx + 0x78]
push ebx
test eax, eax
je 0x40c799
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edi
push 0xffffffffffffffff
push str.error_setting_key
lea ecx, [ebp - 0x2c]
call fcn.00409030
push dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x78]
push eax
mov byte [ebp - 4], 4
call fcn.0041b98b
add esp, 0xc
push eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 5
mov dword [ebp - 0x60], vtable.RSException.0
call fcn.00403cbd
push 0x485a5c
lea eax, [ebp - 0x60]
push eax
call sub.MSVCR100.dll__CxxThrowException
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x10], edi
je 0x40c7b0
mov ecx, dword [ebp - 0x14]
call fcn.0040a517
lea ecx, [ebp - 0x34]
call fcn.00403754
lea ecx, [ebp - 0x3c]
call fcn.00403754
call fcn.004399e2
ret 8
lea ecx, [ebp - 0x44]
call fcn.0040852a
push 4
lea ecx, [ebp + 0xc]
push ecx
push 4
push edi
push eax
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40c79f
push edi
push 0xffffffffffffffff
push str.error_setting_key
lea ecx, [ebp - 0x78]
call fcn.00409030
push dword [ebp + 8]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x5c]
push eax
mov byte [ebp - 4], 6
call fcn.0041b98b
add esp, 0xc
push eax
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 7
mov dword [ebp - 0x94], vtable.RSException.0
call fcn.00403cbd
push 0x485a5c
lea eax, [ebp - 0x94]
jmp 0x40c793
Function at 0x411a0d
Capabilities:
Authenticate hmac
Contain obfuscated stackstrings
Encode data using xor
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call fcn.004119ce
lea ecx, [eax + 0x94]
call fcn.0040f81b
call fcn.004119ce
mov ecx, eax
pop ebp
jmp fcn.0040fdcb

Function at 0x4197c1
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
pop ebp
ret

Function at 0x41a638
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
push edi
mov edi, eax
mov eax, dword [ebp + 8]
mov ebx, ecx
cmp eax, 3
jb 0x41a6aa
push 3
xor edx, edx
pop ecx
div ecx
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x12
movzx ecx, byte [eax + ebx]
mov edx, dword [ebp - 4]
shl edx, 8
or ecx, edx
inc eax
mov dword [ebp - 4], ecx
cmp eax, 3
jl 0x41a669
xor edx, edx
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
sub dword [ebp - 8], 6
shr eax, cl
and eax, 0x3f
mov al, byte [eax + esi]
mov byte [edx + edi], al
inc edx
cmp edx, 4
jl 0x41a680
sub dword [ebp + 8], 3
add ebx, 3
add edi, 4
dec dword [ebp - 0xc]
jne 0x41a65d
mov eax, dword [ebp + 8]
dec eax
je 0x41a6e9
dec eax
jne 0x41a708
movzx eax, byte [ebx]
shr eax, 2
mov al, byte [eax + esi]
mov byte [edi], al
movzx eax, byte [ebx]
movzx ecx, byte [ebx + 1]
and eax, 3
shl eax, 4
shr ecx, 4
or eax, ecx
mov al, byte [eax + esi]
mov byte [edi + 1], al
movzx eax, byte [ebx + 1]
and eax, 0xf
mov al, byte [esi + eax*4]
mov byte [edi + 2], al
mov byte [edi + 3], 0x3d
jmp 0x41a708
movzx eax, byte [ebx]
shr eax, 2
mov al, byte [eax + esi]
mov byte [edi], al
movzx eax, byte [ebx]
and eax, 3
add eax, eax
mov al, byte [esi + eax*8]
mov byte [edi + 1], al
mov word [edi + 2], 0x3d3d
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41ac78
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
cmp dword [edi + 4], esi
jne 0x41ac93
push 1
mov ecx, edi
call fcn.0044b261
push edi
push esi
push esi
push esi
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
jne 0x41accd
push esi
push 0xffffffffffffffff
push str.Unable_to_decrypt_data
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], vtable.RSException.0
call fcn.00409030
push 0x485a5c
lea eax, [ebp - 0x1c]
push eax
call sub.MSVCR100.dll__CxxThrowException
pop edi
pop esi
leave
ret 0xc
Function at 0x41acd3
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
cmp dword [esi + 4], edi
jne 0x41acee
push 1
mov ecx, esi
call fcn.0044b261
push esi
push edi
push edi
push edi
push dword [ebp + 0x10]
push str.Acrobat_Credential
push dword [ebp + 8]
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
jne 0x41ad2c
push edi
push 0xffffffffffffffff
push str.Unable_to_encrypt_data
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], vtable.RSException.0
call fcn.00409030
push 0x485a5c
lea eax, [ebp - 0x1c]
push eax
call sub.MSVCR100.dll__CxxThrowException
pop edi
pop esi
leave
ret 0xc

Function at 0x428b05
Capabilities:
Read file on windows

Disassembly:
push 0x90
mov eax, 0x46b6b8
call fcn.0043990a
mov edi, ecx
xor esi, esi
push 0x14
lea eax, [ebp - 0x64]
push esi
push eax
mov dword [ebp - 0x10], esi
call sub.MSVCR100.dll_memset
add esp, 0xc
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ebx, eax
mov dword [ebp - 0x38], ebx
mov eax, dword [edi + 8]
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x34], ebx
mov eax, dword [eax + 4]
mov dword [ebp - 4], esi
mov dword [ebp - 0x30], eax
cmp ebx, 0xffffffff
jne 0x428b8c
push esi
push ebx
push str.Failed_to_create_connection
lea ecx, [ebp - 0x50]
call fcn.00409030
mov byte [ebp - 4], 1
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], vtable.RSException.0
call fcn.00403cbd
mov dword [ebp - 0x2c], vtable.CMessageException.0
push 0x48b144
lea eax, [ebp - 0x2c]
push eax
call sub.MSVCR100.dll__CxxThrowException
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, esi
jne 0x428bfd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x428c49
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x34]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
sub eax, esi
je 0x428be6
dec eax
jne 0x428b8c
lea ecx, [ebp - 0x9c]
call fcn.00428a91
push 0x48b134
lea eax, [ebp - 0x9c]
jmp 0x428b86
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x64]
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x428c10
or dword [ebp - 4], 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004399e2
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x428c30
lea ecx, [ebp - 0x80]
call fcn.00428a91
push 0x48b134
lea eax, [ebp - 0x80]
jmp 0x428b86
push esi
push 0xffffffffffffffff
push str.unexpected_error
lea ecx, [ebp - 0x50]
call fcn.00409030
mov byte [ebp - 4], 2
jmp 0x428b64
cmp eax, 0x6d
je 0x428c1b
push esi
push 0xffffffffffffffff
push str.Read_Error
lea ecx, [ebp - 0x50]
call fcn.00409030
mov byte [ebp - 4], 3
jmp 0x428b64
Function at 0x428c82
Capabilities:
Write file on windows

Disassembly:
push 0x74
mov eax, 0x46b6ee
call fcn.0043990a
mov edi, ecx
cmp dword [edi + 4], 0xffffffff
jne 0x428cac
lea ecx, [ebp - 0x80]
call fcn.00428a91
push 0x48b134
lea eax, [ebp - 0x80]
push eax
call sub.MSVCR100.dll__CxxThrowException
xor esi, esi
push 0x14
lea eax, [ebp - 0x30]
push esi
push eax
mov dword [ebp - 0x10], esi
call sub.MSVCR100.dll_memset
add esp, 0xc
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ebx, eax
mov dword [ebp - 0x14], ebx
mov eax, dword [edi + 8]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov eax, dword [eax + 4]
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], eax
cmp ebx, 0xffffffff
jne 0x428d1e
push esi
push ebx
push str.Failed_to_create_connection
lea ecx, [ebp - 0x48]
call fcn.00409030
mov byte [ebp - 4], 1
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x64], vtable.RSException.0
call fcn.00403cbd
mov dword [ebp - 0x64], vtable.CMessageException.0
push 0x48b144
lea eax, [ebp - 0x64]
jmp 0x428ca6
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, esi
jne 0x428d74
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x428d87
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x1c]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
sub eax, esi
je 0x428d61
dec eax
jne 0x428d1e
jmp 0x428c96
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
or dword [ebp - 4], 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004399e2
ret 8
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xe8
je 0x428c96
call edi
cmp eax, 0xe9
je 0x428c96
push esi
push 0xffffffffffffffff
push str.Connection_Closed
lea ecx, [ebp - 0x48]
call fcn.00409030
mov byte [ebp - 4], 2
jmp 0x428cfa
Function at 0x45445e
Capabilities:
Parse url

Disassembly:
push 0x4c
mov eax, 0x4724f1
call fcn.0043990a
mov esi, dword [ebp + 0xc]
push 0x3c
pop edi
push edi
push 0
push esi
call sub.MSVCR100.dll_memset
mov dword [esi], edi
mov edi, dword [ebp + 8]
xor ebx, ebx
inc ebx
add esp, 0xc
mov ecx, edi
mov dword [esi + 8], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x38], ebx
call fcn.00408498
mov eax, dword [edi + 4]
mov ecx, edi
mov dword [ebp + 0xc], eax
call fcn.00408498
push esi
xor esi, esi
push esi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x454501
push esi
push 0xffffffffffffffff
push str.Unable_to_crack_url
lea ecx, [ebp - 0x24]
call fcn.00409030
push edi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 4], esi
call fcn.0041b98b
add esp, 0xc
push eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
mov dword [ebp - 0x58], vtable.RSException.0
call fcn.00403cbd
push 0x485a5c
lea eax, [ebp - 0x58]
push eax
call sub.MSVCR100.dll__CxxThrowException
call fcn.004399e2
ret

Function at 0x454722
Capabilities:
Connect to http server

Disassembly:
push 0x4c
mov eax, 0x4725d3
call fcn.0043990a
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x10], edi
mov eax, dword [esi + 0x24]
cmp eax, edi
je 0x45475f
push dword [esi + 0x28]
lea ecx, [ebp - 0x58]
push eax
call fcn.0040fc9d
mov ecx, eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 1
call fcn.00408498
mov dword [ebp + 8], eax
jmp 0x454762
mov dword [ebp + 8], edi
mov eax, dword [esi + 0x1c]
cmp eax, edi
je 0x454789
push dword [esi + 0x20]
lea ecx, [ebp - 0x40]
push eax
call fcn.0040fc9d
or dword [ebp - 0x10], 2
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.00408498
mov edi, eax
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4547b0
push dword [esi + 0x14]
lea ecx, [ebp - 0x28]
push eax
call fcn.0040fc9d
or dword [ebp - 0x10], 4
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.00408498
jmp 0x4547b2
xor eax, eax
movzx ecx, word [esi + 0x18]
push 0
push 0x400a00
push 3
push dword [ebp + 8]
push edi
push ecx
push eax
push dword [0x49d288]
call dword [sym.imp.WININET.dll_InternetConnectA]
test byte [ebp - 0x10], 4
mov esi, eax
je 0x4547ed
and dword [ebp - 0x10], 0xfffffffb
lea ecx, [ebp - 0x18]
call fcn.00403754
lea ecx, [ebp - 0x20]
call fcn.00403754
test byte [ebp - 0x10], 2
je 0x454807
and dword [ebp - 0x10], 0xfffffffd
lea ecx, [ebp - 0x30]
call fcn.00403754
lea ecx, [ebp - 0x38]
call fcn.00403754
test byte [ebp - 0x10], 1
je 0x45481d
lea ecx, [ebp - 0x48]
call fcn.00403754
lea ecx, [ebp - 0x50]
call fcn.00403754
mov eax, esi
call fcn.004399e2
ret
Function at 0x41ec7c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42a520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00415f82
and dword [ebp - 0x14], 0
cmp dword [0x46b150], 0
mov dword [ebp - 0x18], eax
jne 0x41ed2f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41edd7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41edd7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x46b150], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x46b154], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x46b158], eax
call edi
push eax
call esi
mov dword [0x46b160], eax
test eax, eax
je 0x41ed2f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x46b15c], eax
mov eax, dword [0x46b15c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41ed88
cmp dword [0x46b160], ecx
je 0x41ed88
push eax
call esi
push dword [0x46b160]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41ed88
test ebx, ebx
je 0x41ed88
call edi
test eax, eax
je 0x41ed7f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41ed7f
test byte [ebp - 8], 1
jne 0x41ed88
or dword [ebp + 0x10], 0x200000
jmp 0x41edbb
mov eax, dword [0x46b154]
cmp eax, dword [ebp - 0x18]
je 0x41edbb
push eax
call esi
test eax, eax
je 0x41edbb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41edbb
mov eax, dword [0x46b158]
cmp eax, dword [ebp - 0x18]
je 0x41edbb
push eax
call esi
test eax, eax
je 0x41edbb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x46b150]
call esi
test eax, eax
je 0x41edd7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41edd9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004106c7
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx