joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416450
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 0x416490
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 0x4164c2
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 0x4164c2
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 0x416ee0
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x484002
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.004187c6
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x416f4d
push 0x80004005
call fcn.00402580
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 0x417010
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 0x4950e4
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.0043671a
add esp, 0x128
ret 4
Function at 0x417040
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push esi
call fcn.0041bc6f
mov esi, dword [eax + 8]
test esi, esi
jne 0x417053
xor al, al
pop esi
ret 8
movzx eax, word [esp + 8]
push edi
push 0x4975d0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x4170e1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4170e1
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4170d9
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 0x4170d3
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 0x4170d3
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 0x41a773
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 0x41a79e
call fcn.0041bc6f
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 0x41a7c1
push eax
push dword [esi + 4]
call fcn.0041a6f9
push esi
push eax
mov ecx, 0x4bd124
call fcn.0041a3ad
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x421a21
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 0x421a68
call fcn.0041bc6f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x421a68
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x421a84
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0042159b
mov esi, eax
test edi, edi
je 0x421a82
test ebx, ebx
je 0x421a82
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x42288b
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x481078
call fcn.0043a491
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4228b0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4228f6
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.0040ebe0
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.00402640
mov eax, esi
call fcn.0043a569
ret 8
Function at 0x42cdd6
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 0x42ce1e
call fcn.0041bc6f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x42ce1e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x42ce61
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 0x42ce4a
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 0x42ce4a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x42ce5e
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 0x43671a
Capabilities:
Terminate process

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

Function at 0x4482d6
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.00440174
and dword [ebp - 4], 0
cmp dword [0x4bfa04], 0
mov ebx, eax
jne 0x448387
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x448438
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x48b588
push edi
call esi
test eax, eax
je 0x448438
push eax
call fcn.00440102
mov dword [esp], 0x48b578
push edi
mov dword [0x4bfa04], eax
call esi
push eax
call fcn.00440102
mov dword [esp], 0x48b564
push edi
mov dword [0x4bfa08], eax
call esi
push eax
call fcn.00440102
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4bfa0c], eax
call esi
push eax
call fcn.00440102
pop ecx
mov dword [0x4bfa14], eax
test eax, eax
je 0x448387
push 0x48b530
push edi
call esi
push eax
call fcn.00440102
pop ecx
mov dword [0x4bfa10], eax
mov eax, dword [0x4bfa10]
cmp eax, ebx
je 0x4483df
cmp dword [0x4bfa14], ebx
je 0x4483df
push eax
call fcn.0044017d
push dword [0x4bfa14]
mov esi, eax
call fcn.0044017d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4483df
test edi, edi
je 0x4483df
call esi
test eax, eax
je 0x4483d6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4483d6
test byte [ebp - 0xc], 1
jne 0x4483df
or dword [ebp + 0x10], 0x200000
jmp 0x448418
mov eax, dword [0x4bfa08]
cmp eax, ebx
je 0x448418
push eax
call fcn.0044017d
pop ecx
test eax, eax
je 0x448418
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x448418
mov eax, dword [0x4bfa0c]
cmp eax, ebx
je 0x448418
push eax
call fcn.0044017d
pop ecx
test eax, eax
je 0x448418
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4bfa04]
call fcn.0044017d
pop ecx
test eax, eax
je 0x448438
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44843a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44dae0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x482231
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.0044e7b0
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.0044eac0
mov ecx, dword [esp + 0x14]
push ecx
push esi
push ebp
call fcn.0044e970
mov dword [esp + 0x24], eax
add esp, 0xc
mov byte [eax], bl
lea ecx, [esp + 0x20]
mov byte [esp + 0x134], 2
call fcn.00437007
mov edx, dword [esp + 0x14]
push 0x100
lea eax, [esp + 0x30]
push edx
push eax
mov dword [esp + 0x2c], 0x48be54
call fcn.004373a0
add esp, 0xc
lea ecx, [esp + 0x20]
mov byte [esp + 0x12b], bl
mov dword [esp + 0x20], 0x48be54
push 0x49e2e8
push ecx
call fcn.0043a59b
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 0x44dcc0
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.0044dc20
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 0x44dd43
pop edi
add esp, 0x290
ret
lea edx, [esp + 0xc]
push esi
push edx
call fcn.00439f97
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 0x44ddd4
test edx, edx
lea esi, [esp + 0x10]
jbe 0x44dd98
mov eax, edx
mov di, word [esi]
add esi, 2
mov word [ecx], di
add ecx, 2
dec eax
jne 0x44dd7e
mov eax, dword [0x4bfb14]
mov ecx, dword [0x4bfb10]
mov esi, eax
lea edi, [ecx + edx*2]
cmp edi, esi
je 0x44de1b
sub eax, esi
sar eax, 1
inc eax
push eax
push esi
push edi
call fcn.0044de30
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 0x44ddfa
mov ax, word [esi]
add esi, 2
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x44dde0
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.0044e9a0
pop esi
mov eax, 1
pop edi
add esp, 0x290
ret
Function at 0x4514c0
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4829eb
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.00450330
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.004180ea
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], 0x48c69c
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.00451490
mov edi, dword [esp + 0x38]
cmp edi, ebp
je 0x4515ff
push edi
call fcn.00439f97
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 0x4515c4
cmp eax, ebp
jbe 0x451594
mov ecx, eax
mov bp, word [edi]
add edi, 2
mov word [edx], bp
add edx, 2
dec ecx
jne 0x451585
mov edx, dword [esi]
mov edi, dword [esi + 4]
lea ebp, [edx + eax*2]
cmp ebp, edi
je 0x4515ff
mov eax, edi
sub eax, edi
sar eax, 1
inc eax
push eax
push edi
push ebp
call fcn.0044de30
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 0x4515ff
cmp ecx, ebp
mov eax, edi
jbe 0x4515d9
mov bp, word [eax]
add eax, 2
mov word [edx], bp
add edx, 2
dec ecx
jne 0x4515ca
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.0044e9a0
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 0x4524e0
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 0x45257e
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.00480d07
lea ecx, [esp + 0x2c]
push ecx
call fcn.00480ce0
add esp, 8
test eax, eax
je 0x45253d
push eax
push str._Y__m__d__H:_M:_S
lea edx, [esp + 0x10]
push 0x19
push edx
call fcn.00439920
add esp, 0x10
cmp dword [esi + 4], 0x100
jne 0x45257e
mov eax, dword [esi + 0x218]
test eax, eax
jne 0x45255e
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 0x218], eax
mov eax, dword [esi + 0x218]
test eax, eax
je 0x45257e
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 0x452595
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x1c
ret
Function at 0x45a6e0
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x48303a
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.0044ed00
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], 0x48c930
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.0044e7b0
push 0x10
mov byte [esp + 0x1e4], 3
call fcn.004180ea
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.0044e7b0
push 0x10
mov byte [esp + 0x1e4], 7
call fcn.004180ea
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.0044e7b0
push 0x10
mov byte [esp + 0x1e4], 0xb
call fcn.004180ea
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.0045a4f0
mov edx, dword [esp + 0x14]
push edx
call fcn.0048021f
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.00452e20
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.0044e6d0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1e0], 0xe
call fcn.0044e6d0
lea ecx, [esp + 0x20]
mov byte [esp + 0x1e0], 0xf
call fcn.0044e6d0
lea ecx, [esp + 0x14]
mov byte [esp + 0x1e0], 0x10
call fcn.0044e6d0
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 0x45ae60
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
push edi
jne 0x45ae7c
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 0x45af09
mov edx, dword [esp + 0x18]
test edx, edx
jne 0x45aea3
push str.pulDecodedLenNull
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
xor eax, eax
pop esi
ret 0x10
cmp byte [esi], 0x35
jne 0x45aefe
cmp byte [esi + 1], 0x46
jne 0x45aefe
mov edi, dword [esp + 0x14]
add eax, 0xfffffff4
test edi, edi
jne 0x45aec5
mov dword [edx], eax
pop edi
mov eax, 1
pop esi
ret 0x10
cmp dword [edx], eax
jae 0x45aedd
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

Function at 0x45af10
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x45af4d
mov esi, dword [esp + 0x10]
test esi, esi
jbe 0x45af4d
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x45af4d
xor eax, eax
mov byte [ecx], 0
test esi, esi
jbe 0x45af43
push ebx
mov dl, byte [eax + edi]
mov bl, byte [ecx]
xor bl, dl
inc eax
cmp eax, esi
mov byte [ecx], bl
jb 0x45af34
pop ebx
pop edi
mov eax, 1
pop esi
ret 0xc
pop edi
xor eax, eax
pop esi
ret 0xc
Function at 0x45ce90
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x404
push esi
push edi
mov esi, ecx
push 1
call fcn.0045ce60
push 0
mov ecx, esi
call fcn.0045ce60
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, esi
stosb byte es:[edi], al
call fcn.0045cf10
test eax, eax
jbe 0x45cf02
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 0x400
mov dword [esp + 8], 0
jbe 0x45cee4
mov eax, 0x400
lea ecx, [esp + 8]
push 0
push ecx
push eax
mov eax, dword [esi + 0x2c]
lea edx, [esp + 0x18]
push edx
push eax
call edi
mov ecx, esi
call fcn.0045cf10
test eax, eax
ja 0x45ced0
pop edi
pop esi
add esp, 0x404
ret
Function at 0x45e0c0
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
push edi
jne 0x45e0dc
push str.pToDecodeNull
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
xor eax, eax
pop esi
ret 0x10
mov edi, dword [esp + 0x10]
cmp edi, 0xe
ja 0x45e106
call fcn.00452280
push edi
push esi
push str.pToDecode:
mov ecx, eax
mov dword [eax + 4], 1
call fcn.00452460
pop edi
xor eax, eax
pop esi
ret 0x10
mov edx, dword [esp + 0x18]
test edx, edx
jne 0x45e120
push str.pulDecodedLenNull
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
xor eax, eax
pop esi
ret 0x10
cmp byte [esi], 0x6f
jne 0x45e1f9
cmp byte [esi + 1], 0x6b
jne 0x45e1f9
cmp byte [esi + 2], 0xa5
je 0x45e14b
push str.A5Err
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
xor eax, eax
pop esi
ret 0x10
cmp byte [esi + 5], 0x52
je 0x45e163
push str.52Err
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
xor eax, eax
pop esi
ret 0x10
cmp byte [esi + 6], 0x5f
je 0x45e17b
push str.5FErr
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
xor eax, eax
pop esi
ret 0x10
mov al, byte [esi + 7]
xor ecx, ecx
mov cl, byte [esi + 8]
and eax, 3
shl eax, 8
add eax, ecx
cmp eax, 3
jbe 0x45e1e7
lea ecx, [eax + 0xb]
cmp ecx, edi
ja 0x45e1e7
mov edi, dword [esp + 0x14]
sub eax, 3
test edi, edi
jne 0x45e1ae
mov dword [edx], eax
pop edi
mov eax, 1
pop esi
ret 0x10
cmp dword [edx], eax
jae 0x45e1c6
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, 0xb
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.3Err
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
xor eax, eax
pop esi
ret 0x10
push str.okErr
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
xor eax, eax
pop esi
ret 0x10