joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002890
Capabilities:
Initialize winhttp library

Disassembly:
sub esp, 0x104
mov eax, dword [0x10018090]
xor eax, esp
mov dword [esp + 0x100], eax
mov eax, dword [0x10019ca0]
push esi
push edi
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov esi, ecx
test eax, eax
je 0x100028c4
push eax
call edi
mov dword [0x10019ca0], 0
mov eax, dword [0x10019ca4]
test eax, eax
je 0x100028da
push eax
call edi
mov dword [0x10019ca4], 0
mov eax, dword [0x10019ca8]
test eax, eax
je 0x100028f0
push eax
call edi
mov dword [0x10019ca8], 0
mov edi, 8
test esi, esi
je 0x10002950
xor eax, eax
push 0xfe
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.1000c1f0
add esp, 0xc
cmp dword [esi + 0x34], edi
jb 0x1000291d
mov eax, dword [esi + 0x20]
jmp 0x10002920
lea eax, [esi + 0x20]
cmp dword [esi + 0x18], edi
jb 0x1000292a
mov esi, dword [esi + 4]
jmp 0x1000292d
add esi, 4
push eax
push esi
push 0x10016198
lea edx, [esp + 0x14]
call fcn.10001000
add esp, 0xc
push 0
push str._local_
lea edx, [esp + 0x10]
push edx
push 3
jmp 0x10002958
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [0x10019ca8], eax
test eax, eax
jne 0x10002983
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.10004eb9
add esp, 0x104
ret
mov ecx, dword [esp + 0x110]
push ecx
push ecx
push ecx
push ecx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
cmp dword [0x10019ca4], 0
jne 0x100029c9
cmp dword [ebx + 0x18], edi
jb 0x100029a8
mov eax, dword [ebx + 4]
jmp 0x100029ab
lea eax, [ebx + 4]
movzx ecx, word [ebx + 0x1c]
mov edx, dword [0x10019ca8]
push 0
push ecx
push eax
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [0x10019ca4], eax
test eax, eax
je 0x10002969
mov ecx, dword [esp + 0x108]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.10004eb9
add esp, 0x104
ret
Function at 0x10002a60
Capabilities:
Check http status code
Read http header
Receive http response

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, ecx
call fcn.100029f0
test eax, eax
jge 0x10002a7b
or eax, 0xffffffff
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [0x100190d0]
push eax
mov eax, dword [esp + 0x30]
call fcn.100019d0
add esp, 4
xor ebp, ebp
test eax, eax
jl 0x10002bb1
mov ecx, dword [0x10019ca0]
push ebp
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x10002ab1
lea esi, [ebp - 2]
jmp 0x10002bb4
mov ecx, dword [0x10019ca0]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push ebp
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x20]
push eax
push ebp
push 0x20000013
mov ebx, 4
push ecx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x38], ebx
call esi
test eax, eax
je 0x10002bb1
cmp dword [esp + 0x18], 0xc8
jne 0x10002bb1
mov ecx, dword [0x10019ca0]
push ebp
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x18]
push eax
push ebp
push 0x20000005
push ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x3c], ebx
call esi
test eax, eax
je 0x10002bb1
mov eax, dword [esp + 0x10]
xor esi, esi
cmp eax, ebp
ja 0x10002b30
cmp dword [edi], ebp
jne 0x10002bb4
inc eax
cmp eax, 0xf4240
jbe 0x10002b63
mov edx, dword [edi]
push edx
call fcn.10005a96
mov eax, dword [esp + 0x14]
inc eax
add esp, 4
push eax
call fcn.10004eae
mov ecx, dword [esp + 0x14]
add esp, 4
inc ecx
push ecx
push ebp
push eax
mov dword [edi], eax
call fcn.1000c1f0
add esp, 0xc
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov dword [esp + 0x14], ebp
lea ecx, [ecx]
mov eax, dword [0x10019ca0]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x10002bb1
mov edx, dword [esp + 0x14]
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [0x10019ca0]
push edx
add eax, esi
push eax
push ecx
mov dword [esp + 0x2c], ebp
call ebx
test eax, eax
je 0x10002bb1
add esi, dword [esp + 0x1c]
cmp dword [esp + 0x14], ebp
jne 0x10002b70
jmp 0x10002bb4
or esi, 0xffffffff
mov eax, dword [0x10019ca0]
cmp eax, ebp
je 0x10002bc4
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, esi
pop esi
mov dword [0x10019ca0], ebp
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x10002e20
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x2a4
mov eax, dword [0x10018090]
xor eax, esp
mov dword [esp + 0x2a0], eax
mov eax, dword [esp + 0x2a8]
push ebp
push esi
push edi
lea ecx, [esp + 0x18]
push ecx
push 0x202
mov dword [esp + 0x1c], eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x7f
lea edx, [esp + 0x22d]
push 0
push edx
mov byte [esp + 0x234], 0
call fcn.1000c1f0
push 0
call fcn.10006588
push eax
call fcn.10005d5e
call fcn.10005d70
push 0x7f
lea eax, [esp + 0x1c1]
push 0
push eax
mov byte [esp + 0x1c8], 0
call fcn.1000c1f0
add esp, 0x20
push 0x80
lea ecx, [esp + 0x1ac]
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x10002eb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10002f1d
lea edx, [esp + 0x1a8]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10002f1d
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
lea edi, [esp + 0x1a8]
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10002ee0
mov cx, word [0x10016268]
mov word [edi], cx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10002ef4
lea edi, [esp + 0x1a8]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10002f07
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edx, [esp + 0x1a8]
push edx
push 0
push str.V0.7
lea eax, [esp + 0x234]
push str._s_SN_d__s
push eax
call fcn.10005150
lea eax, [esp + 0x23c]
add esp, 0x14
lea edx, [eax + 1]
jmp 0x10002f50
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10002f50
sub eax, edx
lea esi, [eax + eax]
push esi
call fcn.10004eae
push esi
mov ebp, eax
push 0
push ebp
call fcn.1000c1f0
lea eax, [esp + 0x238]
add esp, 0x10
lea ecx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10002f80
sub eax, ecx
push esi
mov edi, eax
call fcn.10004eae
push esi
push 0
push eax
mov dword [esp + 0x20], eax
call fcn.1000c1f0
push esi
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x240]
push edx
mov eax, edi
call fcn.10001200
mov esi, dword [esp + 0x2c]
push ebp
mov ecx, esi
call fcn.10001320
push esi
mov edi, eax
call fcn.10005a96
add edi, edi
push edi
call fcn.10004eae
push edi
mov esi, eax
push 0
push esi
call fcn.1000c1f0
add esp, 0x34
mov eax, edi
mov ecx, esi
mov edx, ebp
call fcn.10001520
mov eax, esi
lea ecx, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10002ff0
push 0x80
sub eax, ecx
mov ecx, dword [esp + 0x18]
push ecx
inc eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
call fcn.10005a96
add esp, 4
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x2ac]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.10004eb9
add esp, 0x2a4
ret
Function at 0x10004eb9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10018090]
jne 0x10004ec3
repz ret
jmp fcn.10006dea

Function at 0x10012883
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.10007eb7
and dword [ebp - 4], 0
cmp dword [0x10019c88], 0
mov ebx, eax
jne 0x10012934
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100129e5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x100129e5
push eax
call fcn.10007e45
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10019c88], eax
call esi
push eax
call fcn.10007e45
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10019c8c], eax
call esi
push eax
call fcn.10007e45
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10019c90], eax
call esi
push eax
call fcn.10007e45
pop ecx
mov dword [0x10019c98], eax
test eax, eax
je 0x10012934
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10007e45
pop ecx
mov dword [0x10019c94], eax
mov eax, dword [0x10019c94]
cmp eax, ebx
je 0x1001298c
cmp dword [0x10019c98], ebx
je 0x1001298c
push eax
call fcn.10007ec0
push dword [0x10019c98]
mov esi, eax
call fcn.10007ec0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1001298c
test edi, edi
je 0x1001298c
call esi
test eax, eax
je 0x10012983
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10012983
test byte [ebp - 0xc], 1
jne 0x1001298c
or dword [ebp + 0x10], 0x200000
jmp 0x100129c5
mov eax, dword [0x10019c8c]
cmp eax, ebx
je 0x100129c5
push eax
call fcn.10007ec0
pop ecx
test eax, eax
je 0x100129c5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x100129c5
mov eax, dword [0x10019c90]
cmp eax, ebx
je 0x100129c5
push eax
call fcn.10007ec0
pop ecx
test eax, eax
je 0x100129c5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10019c88]
call fcn.10007ec0
pop ecx
test eax, eax
je 0x100129e5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100129e7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401334
Capabilities:
Check os version

Disassembly:
push ebx
add esp, 0xffffff64
xor ebx, ebx
push 0
push 0x80000
push 0
call sub.kernel32.dll_HeapCreate
mov dword [0x408030], eax
cmp dword [0x408030], 0
je 0x4013d8
mov bl, 1
mov byte [0x40802c], 1
mov eax, esp
xor ecx, ecx
mov edx, 0x9c
call fcn.00401784
mov dword [esp], 0x9c
push esp
call sub.kernel32.dll_GetVersionExA
push 0x4013e4
push 0x4013f8
call sub.kernel32.dll_GetModuleHandleA
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x40804c], eax
cmp dword [0x40804c], 0
je 0x4013d8
cmp dword [esp + 4], 5
jne 0x4013c3
cmp dword [esp + 8], 1
jne 0x4013c3
cmp dword [esp + 0xc], 0xa28
jne 0x4013c3
cmp word [esp + 0x94], 0
je 0x4013d8
push 4
push 0x408034
push 0
mov eax, dword [0x408030]
push eax
call dword [0x40804c]
mov eax, ebx
add esp, 0x9c
pop ebx
ret

Function at 0x402138
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41c040], 0
je 0x402199
cmp word [0x41c214], 0xd7b2
jne 0x402161
cmp dword [0x41c21c], 0
jbe 0x402161
mov eax, 0x41c210
call dword [0x41c22c]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x408080
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4021c0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x408020], 0
jne 0x4021b5
push 0
push 0x408078
push 0x408080
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4022ec
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00401568
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x41c041], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4022b4
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x402c78
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x402cde
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004024c0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004017c0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x402cc8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402ce5
lea eax, [ebp - 0x10]
call fcn.00402338
ret

Function at 0x4035c0
Capabilities:
Resume thread

Disassembly:
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_ResumeThread
ret
Function at 0x4035cc
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push 0x41c5f4
call sub.kernel32.dll_EnterCriticalSection
mov eax, dword [0x41c5f0]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x403606
inc ebx
xor esi, esi
push 1
mov edx, esi
mov eax, dword [0x41c5f0]
call fcn.00403288
mov eax, dword [eax + 0x100]
push eax
call sub.kernel32.dll_TerminateThread
inc esi
dec ebx
jne 0x4035e8
push 0x41c5f4
call sub.kernel32.dll_LeaveCriticalSection
pop esi
pop ebx
ret

Function at 0x403bd8
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xfffffbfc
mov ebx, eax
cmp dword [0x408178], 0
jne 0x403c13
mov dword [esp], 0x400
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x403c13
mov eax, 0x408178
lea edx, [esp + 4]
mov ecx, 0x400
call fcn.004024c0
mov eax, ebx
mov edx, dword [0x408178]
call fcn.0040238c
add esp, 0x404
pop ebx
ret

Function at 0x403c6c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
cmp dword [0x40817c], 0
jne 0x403ca2
push 0x105
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
test eax, eax
jle 0x403ca2
mov eax, 0x40817c
mov edx, esp
mov ecx, 0x105
call fcn.004024c0
mov eax, ebx
mov edx, dword [0x40817c]
call fcn.0040238c
add esp, 0x108
pop ebx
ret

Function at 0x403d1c
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x403db3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20]
push eax
call sub.kernel32.dll_GlobalMemoryStatus
mov ecx, 0x100000
mov eax, dword [ebp - 0x18]
xor edx, edx
div ecx
add eax, 3
and eax, 0xfffffff0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
xor edx, edx
div ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x24]
call fcn.00403960
push dword [ebp - 0x24]
push 0x403dc8
mov eax, dword [ebp - 0x14]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x28]
call fcn.00403960
push dword [ebp - 0x28]
mov eax, ebx
mov edx, 3
call fcn.004025bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403dba
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.0040235c
ret
Function at 0x4043d8
Capabilities:
Encode data using base64
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x48]
push ecx
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
pop ecx
mov dword [ebp - 4], ecx
mov esi, eax
mov ecx, edx
xor ebx, ebx
xor edi, edi
mov eax, dword [ebp - 4]
push ecx
mov ecx, 3
cdq
idiv ecx
pop ecx
test eax, eax
jle 0x404481
mov dword [ebp - 8], eax
xor eax, eax
mov al, byte [esi + ebx]
shr eax, 2
mov al, byte [ebp + eax - 0x48]
mov byte [ecx + edi], al
mov al, byte [esi + ebx]
and al, 3
and eax, 0xff
shl eax, 4
xor edx, edx
mov dl, byte [esi + ebx + 1]
shr edx, 4
add eax, edx
mov al, byte [ebp + eax - 0x48]
push eax
pop eax
mov byte [ecx + edi + 1], al
mov al, byte [esi + ebx + 1]
and al, 0xf
and eax, 0xff
shl eax, 2
xor edx, edx
mov dl, byte [esi + ebx + 2]
shr edx, 6
add eax, edx
mov al, byte [ebp + eax - 0x48]
push eax
pop eax
mov byte [ecx + edi + 2], al
mov al, byte [esi + ebx + 2]
and al, 0x3f
and eax, 0xff
mov al, byte [ebp + eax - 0x48]
mov byte [ecx + edi + 3], al
add edi, 4
add ebx, 3
dec dword [ebp - 8]
jne 0x40440f
mov eax, dword [ebp - 4]
push ecx
mov ecx, 3
cdq
idiv ecx
pop ecx
dec edx
je 0x404496
dec edx
je 0x4044c6
jmp 0x404512
xor eax, eax
mov al, byte [esi + ebx]
shr eax, 2
mov al, byte [ebp + eax - 0x48]
mov byte [ecx + edi], al
mov al, byte [esi + ebx]
and al, 3
and eax, 0xff
shl eax, 4
mov al, byte [ebp + eax - 0x48]
mov byte [ecx + edi + 1], al
mov byte [ecx + edi + 2], 0x3d
mov byte [ecx + edi + 3], 0x3d
jmp 0x404512
xor eax, eax
mov al, byte [esi + ebx]
shr eax, 2
mov al, byte [ebp + eax - 0x48]
mov byte [ecx + edi], al
mov al, byte [esi + ebx]
and al, 3
and eax, 0xff
shl eax, 4
xor edx, edx
mov dl, byte [esi + ebx + 1]
shr edx, 4
add eax, edx
mov al, byte [ebp + eax - 0x48]
push eax
pop eax
mov byte [ecx + edi + 1], al
mov al, byte [esi + ebx + 1]
and al, 0xf
and eax, 0xff
shl eax, 2
mov al, byte [ebp + eax - 0x48]
mov byte [ecx + edi + 2], al
mov byte [ecx + edi + 3], 0x3d
mov eax, dword [ebp - 4]
add eax, 2
mov ecx, 3
cdq
idiv ecx
shl eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40452c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ecx
mov dword [esp], ecx
movzx esi, byte [edx]
shl esi, 0x18
xor ecx, ecx
mov cl, byte [edx + 1]
shl ecx, 0x10
or esi, ecx
xor ecx, ecx
mov cl, byte [edx + 2]
shl ecx, 8
or esi, ecx
xor ecx, ecx
mov cl, byte [edx + 3]
or esi, ecx
xor ecx, ecx
mov cl, byte [edx + 4]
shl ecx, 0x18
xor ebx, ebx
mov bl, byte [edx + 5]
shl ebx, 0x10
or ecx, ebx
xor ebx, ebx
mov bl, byte [edx + 6]
shl ebx, 8
or ecx, ebx
movzx edx, byte [edx + 7]
or ecx, edx
mov edx, ecx
mov ecx, 0x10
xor esi, dword [eax + 0x44]
cmp ecx, 1
jb 0x404616
mov ebx, esi
shr ebx, 0x10
and ebx, 0xff
mov edi, dword [eax + ebx*4 + 0x448]
mov ebx, esi
shr ebx, 0x18
add edi, dword [eax + ebx*4 + 0x48]
mov ebx, esi
shr ebx, 8
and ebx, 0xff
xor edi, dword [eax + ebx*4 + 0x848]
mov ebx, esi
and ebx, 0xff
add edi, dword [eax + ebx*4 + 0xc48]
xor edx, dword [eax + ecx*4]
xor edi, edx
mov edx, edi
dec ecx
mov ebx, edx
shr ebx, 0x10
and ebx, 0xff
mov edi, dword [eax + ebx*4 + 0x448]
mov ebx, edx
shr ebx, 0x18
add edi, dword [eax + ebx*4 + 0x48]
mov ebx, edx
shr ebx, 8
and ebx, 0xff
xor edi, dword [eax + ebx*4 + 0x848]
xor ebx, ebx
mov bl, dl
add edi, dword [eax + ebx*4 + 0xc48]
xor esi, dword [eax + ecx*4]
xor edi, esi
mov esi, edi
dec ecx
cmp ecx, 1
jae 0x404589
xor edx, dword [eax]
mov eax, edx
shr eax, 0x18
mov ecx, dword [esp]
mov byte [ecx], al
mov eax, edx
shr eax, 0x10
mov ecx, dword [esp]
mov byte [ecx + 1], al
mov eax, edx
shr eax, 8
mov ecx, dword [esp]
mov byte [ecx + 2], al
mov eax, dword [esp]
mov byte [eax + 3], dl
mov eax, esi
shr eax, 0x18
mov edx, dword [esp]
mov byte [edx + 4], al
mov eax, esi
shr eax, 0x10
mov edx, dword [esp]
mov byte [edx + 5], al
mov eax, esi
shr eax, 8
mov edx, dword [esp]
mov byte [edx + 6], al
mov eax, esi
mov edx, dword [esp]
mov byte [edx + 7], al
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40466c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov dword [esp + 4], ecx
mov dword [esp], edx
mov esi, dword [esp]
mov esi, dword [esi]
mov ecx, dword [esp + 4]
mov ecx, dword [ecx]
mov edx, 1
xor esi, dword [eax]
cmp edx, 0x10
ja 0x404721
mov ebx, esi
shr ebx, 0x10
and ebx, 0xff
mov edi, dword [eax + ebx*4 + 0x448]
mov ebx, esi
shr ebx, 0x18
add edi, dword [eax + ebx*4 + 0x48]
mov ebx, esi
shr ebx, 8
and ebx, 0xff
xor edi, dword [eax + ebx*4 + 0x848]
mov ebx, esi
and ebx, 0xff
add edi, dword [eax + ebx*4 + 0xc48]
xor ecx, dword [eax + edx*4]
xor edi, ecx
mov ecx, edi
inc edx
mov ebx, ecx
shr ebx, 0x10
and ebx, 0xff
mov edi, dword [eax + ebx*4 + 0x448]
mov ebx, ecx
shr ebx, 0x18
add edi, dword [eax + ebx*4 + 0x48]
mov ebx, ecx
shr ebx, 8
and ebx, 0xff
xor edi, dword [eax + ebx*4 + 0x848]
xor ebx, ebx
mov bl, cl
add edi, dword [eax + ebx*4 + 0xc48]
xor esi, dword [eax + edx*4]
xor edi, esi
mov esi, edi
inc edx
cmp edx, 0x10
jbe 0x404694
xor ecx, dword [eax + 0x44]
mov eax, dword [esp]
mov dword [eax], ecx
mov eax, dword [esp + 4]
mov dword [eax], esi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x404738
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffec
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 8], edx
mov ebx, 0x12
mov eax, 0x4081c8
mov edx, dword [esp]
mov ecx, dword [eax]
mov dword [edx], ecx
add edx, 4
add eax, 4
dec ebx
jne 0x404757
mov ebx, pe_nt_image_headers32
mov edx, 0x408210
mov eax, dword [esp]
add eax, 0x48
mov esi, 0x408610
mov edi, 0x408a10
mov ecx, 0x408e10
mov ebp, dword [edx]
mov dword [eax], ebp
mov ebp, dword [esi]
mov dword [eax + 0x400], ebp
mov ebp, dword [edi]
mov dword [eax + 0x800], ebp
mov ebp, dword [ecx]
mov dword [eax + 0xc00], ebp
add ecx, 4
add edi, 4
add esi, 4
add eax, 4
add edx, 4
dec ebx
jne 0x404783
xor esi, esi
mov ebx, 0x12
mov ebp, dword [esp]
xor eax, eax
mov dword [esp + 0xc], eax
mov edi, 4
shl dword [esp + 0xc], 8
mov eax, dword [esp + 8]
movzx eax, byte [eax + esi]
or dword [esp + 0xc], eax
inc esi
mov eax, esi
cdq
idiv dword [esp + 4]
mov esi, edx
dec edi
jne 0x4047c6
mov eax, dword [esp + 0xc]
xor dword [ebp], eax
add ebp, 4
dec ebx
jne 0x4047bb
xor eax, eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 0x10], eax
xor ebx, ebx
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
mov eax, dword [esp]
call fcn.0040466c
mov eax, dword [esp]
mov edx, dword [esp + 0xc]
mov dword [eax + ebx*4], edx
mov eax, dword [esp]
mov edx, dword [esp + 0x10]
mov dword [eax + ebx*4 + 4], edx
add ebx, 2
cmp ebx, 0x12
jl 0x4047ff
xor esi, esi
xor edi, edi
mov eax, edi
sub eax, 1
jb 0x404841
je 0x404849
dec eax
je 0x404854
dec eax
je 0x40485f
jmp 0x404868
mov esi, dword [esp]
add esi, 0x48
jmp 0x404868
mov esi, dword [esp]
add esi, 0x448
jmp 0x404868
mov esi, dword [esp]
add esi, 0x848
jmp 0x404868
mov esi, dword [esp]
add esi, 0xc48
xor ebx, ebx
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
mov eax, dword [esp]
call fcn.0040466c
mov eax, dword [esp + 0xc]
mov dword [esi + ebx*4], eax
mov eax, dword [esp + 0x10]
mov dword [esi + ebx*4 + 4], eax
add ebx, 2
cmp ebx, 0x100
jl 0x40486a
inc edi
cmp edi, 4
jne 0x404830
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4048bc
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov ebp, ecx
mov dword [esp], edx
mov esi, eax
mov ebx, dword [esp]
cmp ebp, 8
jl 0x404932
mov edi, ebx
mov eax, dword [edi]
lea edx, [esp + 4]
mov dword [edx], eax
mov eax, dword [edi + 4]
lea edx, [esp + 4]
mov dword [edx + 4], eax
mov eax, ebx
mov ecx, eax
push eax
mov eax, esi
pop edx
call fcn.0040452c
lea eax, [esi + 0x1050]
mov eax, dword [eax]
xor dword [edi], eax
lea eax, [esi + 0x1050]
mov eax, dword [eax + 4]
xor dword [edi + 4], eax
lea eax, [esp + 4]
mov eax, dword [eax]
lea edx, [esi + 0x1050]
mov dword [edx], eax
lea eax, [esp + 4]
mov eax, dword [eax + 4]
lea edx, [esi + 0x1050]
mov dword [edx + 4], eax
add ebx, 8
sub ebp, 8
cmp ebp, 8
jge 0x4048d2
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4049a4
Capabilities:
Hash data using sha256

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404970
mov dword [ebx + 0xc], 0x6a09e667
mov dword [ebx + 0x10], 0xbb67ae85
mov dword [ebx + 0x14], 0x3c6ef372
mov dword [ebx + 0x18], 0xa54ff53a
mov dword [ebx + 0x1c], 0x510e527f
mov dword [ebx + 0x20], 0x9b05688c
mov dword [ebx + 0x24], 0x1f83d9ab
mov dword [ebx + 0x28], 0x5be0cd19
pop ebx
ret