joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4131a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, 0x5a4d
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
cmp word [edi], ax
jne 0x41341f
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x41341f
cmp eax, 0x7fffffff
jae 0x41341f
add eax, edi
mov dword [esp + 0xc], eax
cmp dword [eax], 0x4550
jne 0x41341f
lea edx, [eax + 0x78]
mov eax, dword [edx]
test eax, eax
je 0x41341f
cmp dword [edx + 4], 0
je 0x41341f
push dword [ebp + 8]
add eax, edi
push esi
push eax
call fcn.00413480
cmp dword [0x46dac0], 0x64
mov ebx, eax
jb 0x413414
call fcn.0041b780
nop dword [eax]
test eax, eax
je 0x413414
call fcn.0041b780
mov esi, eax
mov ecx, eax
call dword [0x441280]
call esi
nop dword [eax]
test al, al
je 0x413414
mov edx, dword ds:[esp + 0xc]
lea eax, [esp + 0x14]
push ecx
push eax
lea eax, [esp + 0x20]
mov ecx, edi
push eax
push 0xa
call fcn.00413440
test eax, eax
js 0x413414
mov edx, dword ds:[esp + 0x14]
mov ecx, dword [edx]
lea eax, [edx + 0x5c]
add ecx, edx
cmp eax, ecx
ja 0x413414
mov eax, dword [edx + 0x58]
shr eax, 0xe
test al, 1
je 0x413414
cmp byte [0x46ee68], 0
nop dword [eax]
jne 0x41333b
mov edx, dword [0x46ec90]
mov ecx, 0x28
mov byte [0x46ee68], 1
call fcn.00405ce0
mov esi, dword [0x46eca4]
mov edi, eax
push 0x40
push 4
push esi
mov dword [edi], 8
mov dword [edi + 4], 0x4076c0
mov dword [edi + 8], 0x4076e0
mov dword [edi + 0xc], 0x10
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, dword ds:[edi + 0xc]
shl ecx, 2
push ecx
push 0xff
push eax
mov dword [edi + 0x10], eax
call fcn.00422e10
mov eax, dword [edi + 0xc]
add esp, 0xc
mov dword [edi + 0x14], eax
shl eax, 4
push eax
push 4
push esi
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0xffffffff
mov dword [edi + 0x24], 0
mov dword [0x46ef9c], edi
jmp 0x413341
mov edi, dword [0x46ef9c]
test edi, edi
je 0x413414
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov ecx, edi
call fcn.004074c0
lea ecx, ds:[eax + 4]
neg eax
sbb eax, eax
test ecx, eax
jne 0x413414
mov dword [esp + 0x14], 0
call fcn.0041b5e0
test eax, eax
je 0x413414
mov eax, ebx
mov dword [esp + 0x10], 0x1000
and eax, 0xfffff000
mov dword [esp + 0x1c], 1
mov dword [esp + 0xc], eax
xorps xmm0, xmm0
mov eax, ebx
movlpd qword [esp + 0x38], xmm0
and eax, 0xfff
movlpd qword [esp + 0x40], xmm0
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x18]
push 0x20
mov dword [esp + 0x38], eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x30], 1
push eax
push 1
push 2
push 0xffffffffffffffff
mov dword [esp + 0x44], 0
call fcn.0041b5e0
call eax
xor ecx, ecx
cmp eax, 0xc0000045
cmovne ecx, eax
test ecx, ecx
js 0x413414
mov ecx, dword [0x46ef9c]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], 1
call fcn.004073a0
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x414440
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0x40
push ebx
push ebp
mov ebx, edx
mov dword [esp + 0xc], 0
xorps xmm0, xmm0
push esi
movups xmmword [esp + 0x24], xmm0
mov dword [esp + 0x2c], ecx
mov byte [esp + 0x31], 0
push edi
test ebx, ebx
je 0x41446e
mov edi, ebx
mov dword [esp + 0x14], edi
jmp 0x4144e1
cmp dword [0x46efc8], 3
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], 0
push eax
jge 0x4144cf
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 0x18
push eax
push 0x1000
lea eax, [esp + 0x20]
mov dword [esp + 0x48], 0
push eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
call dword [sym.imp.ntdll.dll_NtOpenProcess]
jmp 0x4144dd
mov edx, 0x1000
lea ecx, [esp + 0x18]
call fcn.0041b300
mov edi, dword [esp + 0x14]
test edi, edi
je 0x4145e4
cmp dword [0x46dac0], 0x3e
jb 0x4145e4
test byte [0x46de14], 1
nop dword [eax]
jne 0x4145c2
mov ebp, 0x46de14
lock bts dword [ebp], 0x1f
setb al
test al, al
je 0x414532
test byte [0x46de14], 1
nop
jne 0x4145c2
mov ecx, ebp
call fcn.00414d20
jmp 0x4145c2
cmp dword [0x46dac0], 0x3e
jb 0x414577
mov ecx, str.user32.dll
call fcn.00406640
add eax, eax
mov dword [esp + 0x1c], str.user32.dll
lea edx, [esp + 0x18]
mov dword [esp + 0x18], eax
call fcn.004130c0
nop dword [eax]
test eax, eax
je 0x414572
push 0
mov edx, str.IsImmersiveProcess
mov ecx, eax
call fcn.004131a0
mov dword [0x46efb4], eax
lock bts dword [ebp], 0
setb al
test al, al
jne 0x4145c2
mov esi, dword [0x46de18]
test esi, esi
je 0x414597
push 0
push esi
call dword [sym.imp.ntdll.dll_NtSetEvent]
mov eax, 0xfffffffe
lock xadd dword [ebp], eax
shr eax, 1
and eax, 0x7fff
sub eax, 1
jne 0x4145c2
test esi, esi
je 0x4145c2
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [0x46de18], 0
mov esi, dword [0x46efb4]
test esi, esi
jne 0x4145d0
xor al, al
jmp 0x4145e0
push edi
mov ecx, esi
call dword [0x441280]
call esi
test eax, eax
setne al
mov byte [esp + 0x34], al
lea eax, [esp + 0x28]
push eax
push 0x414380
call dword [sym.imp.USER32.dll_EnumWindows]
test ebx, ebx
jne 0x41460b
mov eax, dword ds:[esp + 0x14]
test eax, eax
je 0x41460b
push eax
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword ds:[esp + 0x2c]
test ecx, ecx
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebp
cmovne eax, ecx
pop ebx
add esp, 0x40
ret 4

Function at 0x414cc0
Capabilities:
Query service status

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x24
push edx
xorps xmm0, xmm0
movups xmmword [edx], xmm0
push 0
movups xmmword [edx + 0x10], xmm0
push ecx
mov dword [edx + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x414cf1
xor eax, eax
pop ecx
ret
cmp dword [0x46dac0], 0xffffffff
jae 0x414d0d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov ecx, eax
add esp, 4
jmp fcn.00414640
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
add esp, 4
jmp fcn.00414640
Function at 0x41a260
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jns 0x41a27d
xorps xmm3, xmm3
mov eax, 6
cvtss2sd xmm3, xmm2
mov dword [esp + 4], eax
jmp fcn.00419460
nop dword [eax]
cmp eax, 0x3b9aca00
jge 0x41a297
xorps xmm3, xmm3
cvtss2sd xmm3, xmm2
mov dword [esp + 4], eax
jmp fcn.00419460
mov ecx, 0x84
mov eax, edx
mov edx, ecx
ret 4

Function at 0x41a700
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jns 0x41a716
mov eax, 6
mov dword [esp + 4], eax
jmp fcn.00419460
cmp eax, 0x3b9aca00
jge 0x41a726
mov dword [esp + 4], eax
jmp fcn.00419460
mov ecx, 0x84
mov eax, edx
mov edx, ecx
ret 4
Function at 0x41fd60
Capabilities:
Hash data using sha1

Disassembly:
sub esp, 0x4c
mov eax, dword [0x46d040]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push ebp
push esi
mov ebp, ecx
mov ebx, edx
push edi
mov eax, 0x38
mov esi, 0x78
mov edi, dword [ebp + 0x30]
mov edx, edi
and edx, 0x3f
sub eax, edx
sub esi, edx
cmp edx, 0x38
cmovb esi, eax
lea eax, [esi - 1]
push eax
lea eax, [esp + 0x15]
push 0
push eax
call fcn.00422e10
mov eax, dword [ebp + 0x2c]
lea edx, [esp + 0x1c]
shl eax, 3
mov ecx, edi
shr ecx, 0x1d
add esp, 0xc
or ecx, eax
mov byte [esp + 0x10], 0x80
lea eax, [edi*8]
bswap eax
bswap ecx
mov dword [esp + esi + 0x14], eax
lea eax, [esi + 8]
mov dword [esp + esi + 0x10], ecx
mov ecx, ebp
push eax
call fcn.0041fcc0
mov ecx, dword [ebp + 0x18]
mov edx, ecx
and edx, 0xff0000
mov eax, ecx
shr eax, 0x10
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [ebx], edx
mov ecx, dword [ebp + 0x1c]
mov edx, ecx
and edx, 0xff0000
mov eax, ecx
shr eax, 0x10
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [ebx + 4], edx
mov ecx, dword [ebp + 0x20]
mov edx, ecx
mov eax, ecx
and edx, 0xff0000
shr eax, 0x10
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [ebx + 8], edx
mov ecx, dword [ebp + 0x24]
mov edx, ecx
mov eax, ecx
shr eax, 0x10
and edx, 0xff0000
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [ebx + 0xc], edx
mov ecx, dword [ebp + 0x28]
mov edx, ecx
mov eax, ecx
and edx, 0xff0000
shr eax, 0x10
or edx, eax
mov eax, ecx
and ecx, 0xff00
shl eax, 0x10
or eax, ecx
shr edx, 8
mov ecx, dword [esp + 0x58]
shl eax, 8
pop edi
or edx, eax
mov dword [ebx + 0x10], edx
pop esi
mov dword [ebp + 0x18], 0x67452301
mov dword [ebp + 0x1c], 0xefcdab89
mov dword [ebp + 0x20], 0x98badcfe
mov dword [ebp + 0x24], 0x10325476
mov dword [ebp + 0x28], 0xc3d2e1f0
mov dword [ebp + 0x2c], 0
mov dword [ebp + 0x30], 0
pop ebp
pop ebx
xor ecx, esp
call fcn.00421161
add esp, 0x4c
ret

Function at 0x421dba
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x421df9
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x421df9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x421df9
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x421df9
cmp dword [ecx + 0x74], 0xe
jbe 0x421df9
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4371db
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004332e1
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43724a
cmp esi, dword [ebp - 4]
je 0x437245
cmp dword [ebp + 0xc], 0
je 0x437245
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x437222
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00436d18
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x43724c
xor eax, eax
inc eax
jmp 0x43724c
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4372b7
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x46d040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004332e1
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004332e1
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x43732e
cmp word [ecx], dx
je 0x43732e
mov eax, dword [0x4616ec]
push edi
dec eax
push eax
push 0x4615d8
call fcn.00437250
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4373a1
cmp word [eax], dx
je 0x4373a1
mov eax, dword [edi]
test eax, eax
je 0x437352
cmp word [eax], dx
je 0x437352
lea eax, [ebp - 0x10]
push eax
call fcn.00436c1e
jmp 0x43735b
lea eax, [ebp - 0x10]
push eax
call fcn.00436cb9
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4373cb
mov eax, dword [0x4615d4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4612c8
call fcn.00437250
add esp, 0xc
test al, al
je 0x4373cb
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x437396
cmp word [eax], di
je 0x437396
lea eax, [ebp - 0x10]
push eax
call fcn.00436c1e
pop ecx
jmp 0x4373cd
lea eax, [ebp - 0x10]
push eax
call fcn.00436cb9
jmp 0x437393
mov eax, dword [edi]
test eax, eax
je 0x4373b8
cmp word [eax], dx
je 0x4373b8
lea eax, [ebp - 0x10]
push eax
call fcn.00436bd3
pop ecx
jmp 0x4373cb
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x437496
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004370d5
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x437496
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x437496
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x437496
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x437423
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00437ac2
test ebx, ebx
je 0x437491
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00437ac2
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x437496
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x437496
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0042b3e7
add esp, 0x10
xor eax, eax
inc eax
jmp 0x437498
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421161
leave
ret
Function at 0x4397e4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x46d040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x43982f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0043997d
test al, al
jne 0x439829
sub edx, 2
cmp edx, edi
jne 0x43980f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x439851
lea eax, [edi + 2]
cmp edx, eax
je 0x439851
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00439730
add esp, 0x10
jmp 0x439949
push esi
lea ecx, [ebp - 0x255]
call fcn.0043997d
sub edx, edi
xor ecx, ecx
sar edx, 1
inc edx
test al, al
lea eax, [ebp - 0x254]
cmovne ecx, edx
xor ebx, ebx
push ebx
push ebx
push ebx
push eax
push ebx
push edi
mov dword [ebp - 0x260], ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x439892
push dword [ebp - 0x25c]
jmp 0x439841
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4398cf
cmp word [ebp - 0x226], 0
je 0x4398f0
cmp word [ebp - 0x226], ax
jne 0x4398cf
cmp word [ebp - 0x224], 0
je 0x4398f0
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00439730
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x43993c
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4398a9
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x439924
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x439949
push 0x439560
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00430130
add esp, 0x10
jmp 0x439919
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421161
leave
ret

Function at 0x439a90
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x439aa1
pop esi
ret
push ebx
push edi
push esi
call fcn.00439a59
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004318d0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x439ac9
push ebx
push esi
push edi
call fcn.00422f70
add esp, 0xc
push 0
call fcn.00431880
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x439e98
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00439ade
Function at 0x43e8b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43e8dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43e8dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4022d0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov eax, dword [eax]
push esi
mov esi, dword [ecx]
push edi
mov edi, dword [esp + 0x14]
mov dword [esp + 0x14], 0x10
mov ebx, edi
xor eax, dword [ebx]
push eax
push edi
mov ebp, eax
call fcn.00402330
mov ecx, dword [esp + 0x1c]
add esp, 8
xor eax, esi
add ebx, 4
dec ecx
mov esi, ebp
mov dword [esp + 0x14], ecx
jne 0x4022ee
mov ecx, dword [edi + 0x40]
mov edx, dword [edi + 0x44]
xor ecx, eax
mov eax, dword [esp + 0x18]
xor edx, esi
pop edi
mov dword [eax], edx
mov edx, dword [esp + 0x18]
pop esi
pop ebp
mov dword [edx], ecx
pop ebx
ret

Function at 0x4023a0
Capabilities:
Encrypt data using blowfish

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov eax, 0x40d118
lea ecx, [esi + 0x48]
mov edx, 0x100
mov edi, dword [eax]
add eax, 4
mov dword [ecx], edi
add ecx, 4
dec edx
jne 0x4023b6
cmp eax, 0x40e118
jl 0x4023b1
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov edi, 0x40d0d0
xor eax, eax
sub edi, esi
mov dword [esp + 0x10], 0x12
xor ecx, ecx
mov dword [esp + 0x20], 4
xor ebx, ebx
mov bl, byte [eax + edx]
shl ecx, 8
or ecx, ebx
inc eax
cmp eax, ebp
jl 0x4023fe
xor eax, eax
mov ebx, dword [esp + 0x20]
dec ebx
mov dword [esp + 0x20], ebx
jne 0x4023ed
mov ebx, dword [edi + esi]
add esi, 4
xor ebx, ecx
mov ecx, dword [esp + 0x10]
mov dword [esi - 4], ebx
dec ecx
mov dword [esp + 0x10], ecx
jne 0x4023e3
mov ebx, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov esi, ebx
mov edi, 9
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push ecx
push ebx
call fcn.004022d0
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov dword [esi], edx
mov dword [esi + 4], eax
add esp, 0xc
add esi, 8
dec edi
jne 0x402434
lea esi, [ebx + 0x4c]
mov ebp, 4
mov edi, 0x80
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x20]
push ecx
push edx
push ebx
call fcn.004022d0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov dword [esi - 4], eax
mov dword [esi], ecx
add esp, 0xc
add esi, 8
dec edi
jne 0x402467
dec ebp
jne 0x402462
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x404880
Capabilities:
Terminate process

Disassembly:
push edi
call fcn.00404870
mov edi, eax
mov eax, dword [edi + 0x22c]
test eax, eax
je 0x40489e
mov eax, dword [esp + 8]
mov dword [edi + 0x230], eax
pop edi
ret
push str._nMIRACL_error_from_routine
call fcn.00404a70
add esp, 4
mov eax, dword [edi + 0x20]
cmp eax, 0x18
jge 0x4048c1
mov ecx, dword [edi + eax*4 + 0x24]
mov edx, dword [ecx*4 + 0x40f170]
push edx
jmp 0x4048c6
push 0x40fc88
call fcn.00404a70
add esp, 4
push esi
push 0x40fcd8
push 0xa
call fcn.004099d0
mov esi, dword [edi + 0x20]
add esp, 8
dec esi
js 0x40492a
lea edi, [edi + esi*4 + 0x24]
push str.______________called_from
call fcn.00404a70
add esp, 4
cmp esi, 0x18
jge 0x404906
mov eax, dword [edi]
mov ecx, dword [eax*4 + 0x40f170]
push ecx
jmp 0x40490b
push 0x40fc88
call fcn.00404a70
add esp, 4
push 0x40fcd8
push 0xa
call fcn.004099d0
add esp, 8
dec esi
sub edi, 4
test esi, esi
jge 0x4048e8
mov edx, dword [esp + 0xc]
pop esi
lea eax, [edx - 1]
cmp eax, 0x17
ja case.default.0x40493b
jmp dword [eax*4 + 0x404a08]
push str.Number_base_too_big_for_representation_n
jmp 0x4049f7
push str.Division_by_zero_attempted_n
jmp 0x4049f7
push str.Overflow___Number_too_big_n
jmp 0x4049f7
push str.Internal_result_is_negative_n
jmp 0x4049f7
push str.Input_format_error_n
jmp 0x4049f7
push str.Illegal_number_base_n
jmp 0x4049f7
push str.Illegal_parameter_usage_n
jmp 0x4049f7
push str.Out_of_space_n
jmp 0x4049f7
push str.Even_root_of_a_negative_number_n
jmp 0x4049f7
push str.Raising_integer_to_negative_power_n
jmp 0x4049f7
push str.Attempt_to_take_illegal_root_n
jmp 0x4049f7
push str.Integer_operation_attempted_on_Flash_number_n
jmp 0x4049f7
push str.Flash_overflow_n
jmp 0x4049f7
push str.Numbers_too_big_n
jmp 0x4049f7
push str.Log_of_a_non_positive_number_n
jmp 0x4049f7
push str.Flash_to_double_conversation_failure_n
jmp 0x4049f7
push str.I_O_buffer_overflow_n
jmp 0x4049f7
push str.MIRACL_not_initialised___no_call_to_mirsys___n
jmp 0x4049f7
push str.Illegal_modulus__n
jmp 0x4049f7
push str.No_modulus_defined_n
jmp 0x4049f7
push str.Exponent_too_big_n
jmp 0x4049f7
push str.Number_Base_must_be_power_of_2_n
jmp 0x4049f7
push str.Specified_double_length_type_isnt_double_length_n
jmp 0x4049f7
push str.Specified_basis_is_NOT_irreducible_n
call fcn.00404a70
add esp, 4
push 0
call fcn.004098fb
mov edi, edi
inc edx
dec ecx
inc eax
add byte [ecx + ecx*2 + 0x40], cl
add byte [esi + 0x49], dl
inc eax
add byte [eax + 0x49], ah
inc eax
add byte [edx + 0x49], ch
inc eax
add byte [ecx + ecx*2 + 0x40], dh
add byte [ebx + 0x49], bh
inc eax
add byte [edx - 0x76ffbfb7], al
dec ecx
inc eax
add byte [eax - 0x68ffbfb7], dl
dec ecx
inc eax
add byte [esi - 0x5affbfb7], bl
dec ecx
inc eax
add byte [ecx + ecx*2 + 0x49b30040], ch
inc eax
add byte [edx - 0x3effbfb7], bh
dec ecx
inc eax
add al, cl
dec ecx
inc eax
add bh, cl
dec ecx
inc eax
add dh, dl
dec ecx
inc eax
add ch, bl
dec ecx
inc eax
add ah, ah
dec ecx
inc eax
add bl, ch
dec ecx
inc eax
add dl, dh
dec ecx
inc eax
add byte [eax - 0x6f6f6f70], dl
nop
nop
nop
Function at 0x404b90
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, 1
call fcn.00404870
mov ebx, dword [esp + 0x14]
mov ecx, eax
xor eax, eax
mov edi, 0xe
mov dword [ecx + 0x134], eax
mov dword [ecx + 0x130], eax
xor dword [ecx + 0x9c], ebx
mov eax, edi
mov ebp, 0x25
cdq
idiv ebp
sub ebx, esi
add edi, 0xe
mov eax, dword [ecx + edx*4 + 0x9c]
xor eax, esi
cmp edi, 0x206
mov dword [ecx + edx*4 + 0x9c], eax
mov eax, esi
mov esi, ebx
mov ebx, eax
jl 0x404bbd
mov esi, 0x3e8
call fcn.00404b00
dec esi
jne 0x404bef
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x40a579
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40ffe0
cmp edx, dword [eax]
je 0x40a59b
add eax, 8
inc ecx
cmp eax, 0x410070
jl 0x40a58c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40ffe0]
jne 0x40a6c9
mov eax, dword [0x4104f4]
cmp eax, 1
je 0x40a6a3
test eax, eax
jne 0x40a5cc
cmp dword [0x40fcb4], 1
je 0x40a6a3
cmp edx, 0xfc
je 0x40a6c9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40a603
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040b710
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040b880
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40a646
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040b880
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40e3f8
push edi
call fcn.0040bcc0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040b710
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040b720
lea eax, [ebp - 0xa0]
push 0x40e3d8
push eax
call fcn.0040b720
push dword [esi + 0x40ffe4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040b720
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040bc35
add esp, 0x2c
pop edi
jmp 0x40a6c9
lea eax, [ebp + 8]
lea esi, [esi + 0x40ffe4]
push 0
push eax
push dword [esi]
call fcn.0040b880
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret