joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ed30
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x128
mov eax, dword [0x4a55d0]
xor eax, esp
mov dword [esp + 0x124], eax
push ebx
push ebp
mov ebp, dword [esp + 0x134]
push esi
push edi
mov ebx, ecx
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
lea edx, [esp + 0x20]
push edx
xor edi, edi
or eax, 0x2001f
push eax
push edi
push ebp
push ecx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 0x14]
mov esi, eax
cmp esi, edi
jne 0x40eda5
xor eax, eax
cmp ecx, edi
je 0x40ed93
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x18], edi
mov esi, eax
mov dword [esp + 0x14], ecx
cmp eax, edi
je 0x40edb3
cmp ecx, edi
je 0x40ee50
push ecx
jmp 0x40ee4a
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [esp + 0x28]
push eax
push edi
push edi
push edi
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push edi
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
jne 0x40ee1e
jmp 0x40ede0
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x18]
call fcn.0040ed30
mov ebp, eax
cmp ebp, edi
jne 0x40ee6d
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x18]
push edi
push edi
push edi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x44]
push ecx
push edi
push edx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
je 0x40ede0
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x40ee31
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], edi
mov eax, dword [ebx]
push ebp
push eax
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x40ee50
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00436738
add esp, 0x128
ret 4
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x40ee7c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
jmp 0x40ee52
Function at 0x410460
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax - 0xd4]
sub esp, 8
push ebx
push esi
push ecx
lea ecx, [esp + 0xc]
call fcn.0041bcec
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov edx, 0x8000
test dx, ax
je 0x41052a
mov esi, dword [esp + 0x18]
cmp dword [esi + 4], 0x100
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
jne 0x41052a
push 0x4f
call ebx
test ax, ax
jge 0x4104cc
cmp dword [esp + 0xc], 0
je 0x4104c2
mov eax, dword [esp + 8]
push eax
push 0
call fcn.0041b3d4
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 0x10
cmp dword [esi + 4], 0x100
jne 0x41052a
push 0x50
call ebx
test ax, ax
jge 0x4104fb
cmp dword [esp + 0xc], 0
je 0x4104f1
mov ecx, dword [esp + 8]
push ecx
push 0
call fcn.0041b3d4
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 0x10
cmp dword [esi + 4], 0x100
jne 0x41052a
push 0x4e
call ebx
test ax, ax
jge 0x41052a
cmp dword [esp + 0xc], 0
je 0x410520
mov edx, dword [esp + 8]
push edx
push 0
call fcn.0041b3d4
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 0x10
cmp dword [esp + 0xc], 0
je 0x41053d
mov eax, dword [esp + 8]
push eax
push 0
call fcn.0041b3d4
pop esi
mov eax, 1
pop ebx
add esp, 8
ret 0x10

Function at 0x411c40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x484b70
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x4a55d0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x28], esi
mov dword [esp + 0xc], vtable.CArray_class_ATL::CStringT_char__class_StrTraitMFC_char__class_ATL::ChTraitsCRT_char_____class_ATL::CStringT_char__class_StrTraitMFC_char__class_ATL::ChTraitsCRT_char____.0
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
mov eax, 1
mov byte [esp + 0x28], al
mov edx, dword [esp + 0x30]
sub eax, dword [edx - 4]
mov ecx, dword [edx - 8]
or ecx, eax
jge 0x411ca8
push esi
lea ecx, [esp + 0x34]
call fcn.00402360
mov edx, dword [esp + 0x30]
push edx
lea edi, [esp + 0x10]
call fcn.00405700
mov esi, eax
call fcn.00405a80
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411ce1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret 4
Function at 0x416470
Capabilities:
Get disk size

Disassembly:
sub esp, 0x28
push str.GetDiskFreeSpaceExA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4164b0
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x28]
push ecx
push esi
call eax
test eax, eax
je 0x4164e2
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
add esp, 0x28
ret
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x4164e2
mov eax, dword [esp]
imul eax, dword [esp + 4]
imul eax, dword [esp + 8]
xor edx, edx
add esp, 0x28
ret
xor eax, eax
xor edx, edx
add esp, 0x28
ret

Function at 0x416f00
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x484012
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x4a55d0]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a55d0]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x140]
xor esi, esi
mov dword [esp + 0x138], esi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], esi
call fcn.00418804
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x416f6d
push 0x80004005
call fcn.004025a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp], eax
push 0x104
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x140], esi
push esi
mov dword [esp + 0x2c], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x1c], esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
cmp ebx, esi
je 0x417030
push ebx
push 2
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esp + 0x14]
mov edi, eax
push edi
push ebx
push ecx
lea edx, [esp + 0x34]
push edx
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0x495104
push edi
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x1c]
mov dx, word [eax + 0x10]
mov cx, word [eax + 0x12]
mov di, word [eax + 0x16]
movzx eax, word [eax + 0x14]
push eax
movzx eax, di
push eax
movzx edx, dx
push edx
movzx eax, cx
push eax
push str._d._d._d._d
push ebp
call fcn.004020f0
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, ebp
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.00436738
add esp, 0x128
ret 4
Function at 0x417060
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push esi
call fcn.0041bca0
mov esi, dword [eax + 8]
test esi, esi
jne 0x417073
xor al, al
pop esi
ret 8
movzx eax, word [esp + 8]
push edi
push 0x497568
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x417101
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x417101
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4170f9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
push 0
push 0
push 2
push 0
push 1
push 0xc0000000
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
test esi, esi
je 0x4170f3
lea edx, [esp + 0x14]
push edx
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
je 0x4170f3
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov al, 1
pop esi
ret 8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor al, al
pop esi
ret 8
pop edi
xor al, al
pop esi
ret 8
Function at 0x41a7a4
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x41a7cf
call fcn.0041bca0
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 8], eax
test eax, eax
jne 0x41a7f2
push eax
push dword [esi + 4]
call fcn.0041a72a
push esi
push eax
mov ecx, 0x4bd124
call fcn.0041a3de
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x421a49
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x421a90
call fcn.0041bca0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x421a90
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x421aac
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004215c3
mov esi, eax
test edi, edi
je 0x421aaa
test ebx, ebx
je 0x421aaa
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4228c4
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4810c8
call fcn.0043a4b1
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4228e9
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x42292f
lea ecx, [ebp - 0x10]
call fcn.00402550
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040ec00
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402660
mov eax, esi
call fcn.0043a589
ret 8
Function at 0x42cebe
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x42cf06
call fcn.0041bca0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x42cf06
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x42cf49
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x42cf32
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x42cf32
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x42cf46
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x436738
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a55d0]
jne 0x436742
repz ret
jmp fcn.0043c91f

Function at 0x4482f6
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00440194
and dword [ebp - 4], 0
cmp dword [0x4bfa04], 0
mov ebx, eax
jne 0x4483a7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x448458
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x48b5b0
push edi
call esi
test eax, eax
je 0x448458
push eax
call fcn.00440122
mov dword [esp], 0x48b5a0
push edi
mov dword [0x4bfa04], eax
call esi
push eax
call fcn.00440122
mov dword [esp], 0x48b58c
push edi
mov dword [0x4bfa08], eax
call esi
push eax
call fcn.00440122
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4bfa0c], eax
call esi
push eax
call fcn.00440122
pop ecx
mov dword [0x4bfa14], eax
test eax, eax
je 0x4483a7
push 0x48b558
push edi
call esi
push eax
call fcn.00440122
pop ecx
mov dword [0x4bfa10], eax
mov eax, dword [0x4bfa10]
cmp eax, ebx
je 0x4483ff
cmp dword [0x4bfa14], ebx
je 0x4483ff
push eax
call fcn.0044019d
push dword [0x4bfa14]
mov esi, eax
call fcn.0044019d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4483ff
test edi, edi
je 0x4483ff
call esi
test eax, eax
je 0x4483f6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4483f6
test byte [ebp - 0xc], 1
jne 0x4483ff
or dword [ebp + 0x10], 0x200000
jmp 0x448438
mov eax, dword [0x4bfa08]
cmp eax, ebx
je 0x448438
push eax
call fcn.0044019d
pop ecx
test eax, eax
je 0x448438
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x448438
mov eax, dword [0x4bfa0c]
cmp eax, ebx
je 0x448438
push eax
call fcn.0044019d
pop ecx
test eax, eax
je 0x448438
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4bfa04]
call fcn.0044019d
pop ecx
test eax, eax
je 0x448458
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44845a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44db00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x482281
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push ebp
push esi
push edi
xor ebx, ebx
lea eax, [esp + 0x13]
push ebx
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x13c], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.0044e4e0
mov ebp, dword [esp + 0x13c]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x134], 1
mov esi, ecx
lea ecx, [esp + 0x14]
add esi, ebp
mov eax, esi
sub eax, ebp
inc eax
push eax
call fcn.0044eaf0
mov ecx, dword [esp + 0x14]
push ecx
push esi
push ebp
call fcn.0044e9a0
mov dword [esp + 0x24], eax
add esp, 0xc
mov byte [eax], bl
lea ecx, [esp + 0x20]
mov byte [esp + 0x134], 2
call fcn.00437025
mov edx, dword [esp + 0x14]
push 0x100
lea eax, [esp + 0x30]
push edx
push eax
mov dword [esp + 0x2c], 0x48c6bc
call fcn.004373c0
add esp, 0xc
lea ecx, [esp + 0x20]
mov byte [esp + 0x12b], bl
mov dword [esp + 0x20], 0x48c6bc
push 0x49e280
push ecx
call fcn.0043a5bb
pop edi
pop esi
pop ebp
pop ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea eax, [ecx + 0xc]
ret

Function at 0x44dce0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x290
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x8e]
mov word [esp + 0x8c], 0
mov dword [esp + 8], 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
lea ecx, [esp + 0x8c]
push eax
push ecx
call fcn.0044dc40
add esp, 8
lea edx, [esp + 0x8c]
push str.SetURL.ini
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [esp + 0x8c]
lea ecx, [esp + 0xc]
push eax
push 0x40
push ecx
push 0x4bfc3c
push 0x4a69b0
push 0x4a69a8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x44dd63
pop edi
add esp, 0x290
ret
lea edx, [esp + 0xc]
push esi
push edx
call fcn.00439fb7
mov ecx, dword [0x4bfb10]
lea edi, [esp + eax*2 + 0x14]
mov edx, edi
lea eax, [esp + 0x14]
sub edx, eax
mov eax, dword [0x4bfb14]
mov esi, eax
add esp, 4
sub esi, ecx
sar edx, 1
sar esi, 1
cmp edx, esi
ja 0x44ddf4
test edx, edx
lea esi, [esp + 0x10]
jbe 0x44ddb8
mov eax, edx
mov di, word [esi]
add esi, 2
mov word [ecx], di
add ecx, 2
dec eax
jne 0x44dd9e
mov eax, dword [0x4bfb14]
mov ecx, dword [0x4bfb10]
mov esi, eax
lea edi, [ecx + edx*2]
cmp edi, esi
je 0x44de3b
sub eax, esi
sar eax, 1
inc eax
push eax
push esi
push edi
call fcn.0044de50
mov ecx, dword [0x4bfb14]
sub esi, edi
sar esi, 1
add esp, 0xc
mov eax, 1
neg esi
lea edx, [ecx + esi*2]
pop esi
mov dword [0x4bfb14], edx
pop edi
add esp, 0x290
ret
mov edx, eax
lea esi, [esp + 0x10]
sub edx, ecx
sar edx, 1
je 0x44de1a
mov ax, word [esi]
add esi, 2
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x44de00
mov eax, dword [0x4bfb14]
mov ecx, dword [0x4bfb10]
mov dl, byte [esp + 0xb]
sub eax, ecx
mov byte [esp + 0xb], dl
lea edx, [esp + 0xb]
sar eax, 1
push edx
push edi
lea eax, [esp + eax*2 + 0x18]
mov ecx, 0x4bfb10
push eax
call fcn.0044e9d0
pop esi
mov eax, 1
pop edi
add esp, 0x290
ret
Function at 0x4514f0
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x482a3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x14], ebx
call fcn.00450360
lea esi, [ebx + 0x14]
xor ebp, ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x10], esi
mov dword [esi], ebp
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
push 0x10
mov byte [esp + 0x34], 1
call fcn.00418106
lea ecx, [eax + 0x10]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
add esp, 4
mov word [eax], bp
xor edx, edx
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], edx
push eax
mov dword [esp + 0x24], edx
push str.53F56308_B6BF_11D0_94F2_00A0C91EFB8B
mov byte [esp + 0x38], 2
mov dword [ebx], 0x48c6c4
mov dword [esp + 0x20], ebp
mov dword [esp + 0x2c], edx
call dword [sym.imp.ole32.dll_IIDFromString]
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
call fcn.004514c0
mov edi, dword [esp + 0x38]
cmp edi, ebp
je 0x45162f
push edi
call fcn.00439fb7
mov edx, dword [esi]
mov ecx, dword [esi + 4]
lea eax, [edi + eax*2]
sub ecx, edx
mov dword [esp + 0x14], eax
sub eax, edi
sar eax, 1
sar ecx, 1
add esp, 4
cmp eax, ecx
ja 0x4515f4
cmp eax, ebp
jbe 0x4515c4
mov ecx, eax
mov bp, word [edi]
add edi, 2
mov word [edx], bp
add edx, 2
dec ecx
jne 0x4515b5
mov edx, dword [esi]
mov edi, dword [esi + 4]
lea ebp, [edx + eax*2]
cmp ebp, edi
je 0x45162f
mov eax, edi
sub eax, edi
sar eax, 1
inc eax
push eax
push edi
push ebp
call fcn.0044de50
mov eax, dword [esi + 4]
sub edi, ebp
sar edi, 1
neg edi
shl edi, 1
add esp, 0xc
add eax, edi
mov dword [esi + 4], eax
jmp 0x45162f
cmp ecx, ebp
mov eax, edi
jbe 0x451609
mov bp, word [eax]
add eax, 2
mov word [edx], bp
add edx, 2
dec ecx
jne 0x4515fa
mov cl, byte [esp + 0x38]
mov ebp, dword [esi]
mov eax, dword [esp + 0x10]
mov byte [esp + 0x38], cl
mov ecx, dword [esi + 4]
lea edx, [esp + 0x38]
sub ecx, ebp
push edx
sar ecx, 1
push eax
lea edx, [edi + ecx*2]
mov ecx, esi
push edx
call fcn.0044e9d0
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x452470
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x1c
push esi
mov esi, dword [esp + 0x24]
push edi
mov al, byte [esi + 0x21c]
test al, al
je 0x45250e
mov ecx, 6
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
call fcn.00480d57
lea ecx, [esp + 0x2c]
push ecx
call fcn.00480d30
add esp, 8
test eax, eax
je 0x4524cd
push eax
push str._Y__m__d__H:_M:_S
lea edx, [esp + 0x10]
push 0x19
push edx
call fcn.00439940
add esp, 0x10
cmp dword [esi + 4], 0x100
jne 0x45250e
mov eax, dword [esi + 0x218]
test eax, eax
jne 0x4524ee
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 0x218], eax
mov eax, dword [esi + 0x218]
test eax, eax
je 0x45250e
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push 0xc
push eax
call edi
mov eax, dword [esi + 0x218]
push 7
push eax
call edi
mov al, byte [esi + 0x21d]
pop edi
test al, al
pop esi
je 0x452525
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x1c
ret
Function at 0x45a6c0
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x48308a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c8
push ebx
push ebp
mov ebp, dword [esp + 0x1e0]
push esi
push edi
mov esi, ecx
push ebp
mov dword [esp + 0x3c], esi
call fcn.0044ed30
xor ebx, ebx
mov ecx, 0x63
xor eax, eax
lea edi, [esp + 0x4a]
mov word [esp + 0x48], bx
mov dword [esp + 0x1e0], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x48]
mov dword [esi], 0x48c958
push eax
push 0x102
call sub.WS2_32.dll_WSAStartup
lea ecx, [esp + 0x13]
push ebx
push ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0x1e8], 1
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.0044e4e0
push 0x10
mov byte [esp + 0x1e4], 3
call fcn.00418106
lea edx, [eax + 0x10]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
add esp, 4
mov word [eax], bx
lea eax, [esp + 0x13]
push ebx
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x1e8], 5
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.0044e4e0
push 0x10
mov byte [esp + 0x1e4], 7
call fcn.00418106
lea ecx, [eax + 0x10]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
add esp, 4
mov word [eax], bx
lea edx, [esp + 0x13]
push ebx
push edx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1e8], 9
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call fcn.0044e4e0
push 0x10
mov byte [esp + 0x1e4], 0xb
call fcn.00418106
add esp, 4
mov dword [esp + 0x2c], eax
lea ecx, [eax + 0x10]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov word [eax], bx
lea edx, [esp + 0x2c]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
push ebp
mov ecx, esi
mov byte [esp + 0x1f0], 0xc
call fcn.0045a4d0
mov edx, dword [esp + 0x14]
push edx
call fcn.0048026f
add esp, 4
mov word [esi + 0x2c], 2
push eax
call sub.WS2_32.dll_htons
mov word [esi + 0x2e], ax
push 0xfde9
lea eax, [esp + 0x24]
push 0xfde9
lea ecx, [esp + 0x44]
push eax
push ecx
call fcn.00452d40
mov eax, dword [eax]
add esp, 0x10
push eax
call sub.WS2_32.dll_inet_addr
mov dword [esi + 0x30], eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1e0], 0xd
call fcn.0044e2c0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1e0], 0xe
call fcn.0044e2c0
lea ecx, [esp + 0x20]
mov byte [esp + 0x1e0], 0xf
call fcn.0044e2c0
lea ecx, [esp + 0x14]
mov byte [esp + 0x1e0], 0x10
call fcn.0044e2c0
mov ecx, dword [esp + 0x1d8]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1d4
ret 4
Function at 0x45ae40
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
push edi
jne 0x45ae5c
push str.pToDecodeNull
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
xor eax, eax
pop esi
ret 0x10
mov eax, dword [esp + 0x10]
cmp eax, 0xe
jbe 0x45aee9
mov edx, dword [esp + 0x18]
test edx, edx
jne 0x45ae83
push str.pulDecodedLenNull
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
xor eax, eax
pop esi
ret 0x10
cmp byte [esi], 0x35
jne 0x45aede
cmp byte [esi + 1], 0x46
jne 0x45aede
mov edi, dword [esp + 0x14]
add eax, 0xfffffff4
test edi, edi
jne 0x45aea5
mov dword [edx], eax
pop edi
mov eax, 1
pop esi
ret 0x10
cmp dword [edx], eax
jae 0x45aebd
push str.LenErr
mov dword [edx], eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
xor eax, eax
pop esi
ret 0x10
mov ecx, eax
push ebx
mov ebx, ecx
add esi, 0xa
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [edx], eax
pop edi
mov eax, 1
pop esi
ret 0x10
push str.okErr
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
xor eax, eax
pop esi
ret 0x10