joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403804
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x40382d
cmp al, 0x22
je 0x403825
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x403819
cmp byte [esi], 0x22
jne 0x403837
inc esi
jmp 0x403837
cmp al, 0x20
jle 0x403837
inc esi
cmp byte [esi], 0x20
jg 0x403831
mov al, byte [esi]
test al, al
je 0x403841
cmp al, 0x20
jle 0x40382a
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004038af
push 0x405004
push section..data
call fcn.00403895
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x403871
movzx eax, word [ebp - 0x14]
jmp 0x403874
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.004038c7
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x41ff30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x414015
lea edi, [esi - 0x13015]
push edi
or ebp, 0xffffffff
jmp 0x41ff52
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41ff59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41ff48
mov eax, 1
add ebx, ebx
jne 0x41ff6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41ff60
jne 0x41ff7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41ff60
xor ecx, ecx
sub eax, 3
jb 0x41ff90
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x420002
mov ebp, eax
add ebx, ebx
jne 0x41ff9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41ffa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41ffcc
inc ecx
add ebx, ebx
jne 0x41ffb8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41ffad
jne 0x41ffc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41ffad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41ffec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41ffdd
jmp 0x41ff4e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41ffec
add edi, ecx
jmp 0x41ff4e
pop esi
mov edi, esi
mov ecx, 0x3ca
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42000a
cmp byte [edi], 7
jne 0x42000a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x42000f
lea edi, [esi + 0x1d000]
mov eax, dword [edi]
or eax, eax
je 0x42007e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x203a0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x203f0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42003c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x203f4]
or eax, eax
je 0x420078
mov dword [ebx], eax
add ebx, 4
jmp 0x420059
call dword [esi + 0x203f8]
popal
jmp section.UPX0
Function at 0x402dfb
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
mov eax, dword [0x47a800]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x402e64
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.004021d2
lea eax, [esp + 0x14]
push 0x235
push eax
call fcn.00404a64
pop ecx
pop ecx
cmp eax, dword [esp + 0x38]
je 0x402e7c
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00403cdf
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x402e2c
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004067c8
add esp, 0x20
ret
mov eax, dword [ebx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00403cdf
jmp 0x402e66

Function at 0x405401
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x18]
mov ebp, ecx
test esi, esi
jg 0x405421
jl 0x405418
test ebx, ebx
jne 0x405421
xor eax, eax
xor edx, edx
jmp 0x4054e4
cmp dword [ebp + 0x38], 0
je 0x405437
push esi
push ebx
push dword [esp + 0x18]
call fcn.004054ea
jmp 0x4054e4
mov eax, dword [ebp + 0x1c]
push edi
mov edi, ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x40547b
mov eax, dword [ebp + 0x2c]
cmp dword [eax], 0
jbe 0x40547b
cmp dword [eax], ebx
mov esi, ebx
mov edi, dword [esp + 0x14]
cmovb esi, dword [eax]
push esi
push ecx
push edi
call fcn.00403f4c
mov eax, dword [ebp + 0x2c]
add edi, esi
mov dword [esp + 0x20], edi
add esp, 0xc
mov edi, ebx
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebp + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x1c]
jmp 0x405483
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
cmp dword [ebp + 0x4c], 0
je 0x4054da
mov ecx, ebp
call fcn.00403bb6
mov ecx, dword [esp + 0x14]
mov edx, edi
mov eax, 0xfff
cmp edi, eax
jbe 0x4054c5
push dword [ebp + 0x4c]
push eax
push 1
push ecx
call fcn.0040c0ec
mov ecx, dword [esp + 0x24]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [esp + 0x14], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x4054da
jmp 0x405496
test edx, edx
je 0x4054da
push dword [ebp + 0x4c]
push edi
push 1
push ecx
call fcn.0040c0ec
add esp, 0x10
sub edi, eax
sub ebx, edi
mov eax, ebx
sbb esi, 0
mov edx, esi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x4057b4
Capabilities:
Access peb ldr_data
Delete file
Get kernel32 base address
Get number of processors

Disassembly:
sub esp, 0xd0
mov eax, dword [0x47a800]
xor eax, esp
mov dword [esp + 0xcc], eax
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x24
mov dword [esp + 0x14], ebx
call fcn.00406785
pop ecx
mov esi, eax
push 0x64
pop ebp
test esi, esi
je 0x40581a
push str.Window1
lea ecx, [esp + 0xc8]
call fcn.004021d2
lea eax, [esp + 0xc4]
push eax
push ebp
push ecx
push ecx
mov dword [esp + 4], 0x40000000
mov ecx, esi
mov dword [esp], 0x40400000
call fcn.0040222b
mov esi, eax
inc ebx
jmp 0x40581c
xor esi, esi
test bl, 1
je 0x40582d
lea ecx, [esp + 0xc4]
call fcn.00403cdf
test esi, esi
je 0x40584e
mov ecx, esi
call fcn.0040307d
test esi, esi
je 0x40584e
lea ecx, [esi + 0xc]
call fcn.00403cdf
push 0x24
push esi
call fcn.004067b5
pop ecx
pop ecx
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x47b770], eax
push 0x27
push 0x47a220
push 0x547
mov edi, 0x47a248
push edi
call fcn.00402e9a
push 1
push 0x424458
call fcn.004059c0
push 0x8aafdc01
push dword [0x47b770]
call fcn.00402dfb
add esp, 0x20
lea ecx, [esp + 0x14]
mov ebx, str.static.lib
mov esi, eax
push 1
push 0x40
push 2
push ebx
call fcn.0040201e
lea eax, [esp + 0x14]
push 0x424468
push eax
call fcn.004010ef
push eax
call fcn.00401dba
add esp, 0xc
sub ebp, 1
jne 0x4058b4
lea ecx, [esp + 0x14]
call fcn.00403f1c
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x10]
push eax
push 0x40
push 0x4e4
push edi
call esi
test eax, eax
je 0x405943
call fcn.00404efa
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x400
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x405943
push 0x42446c
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
pop ecx
xor ebx, ebx
push ebx
push ebx
push eax
push esi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
push esi
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [esp + 0x14]
call fcn.00402baa
mov ecx, dword [esp + 0xdc]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004067c8
add esp, 0xd0
ret 0x10

Function at 0x407516
Capabilities:
Parse pe header

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

Function at 0x415527
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4282f8
push 0x4282f0
push str.FlsAlloc
push 0x1e
call fcn.004153f1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41555b
push dword [ebp + 8]
mov ecx, esi
call dword [0x424140]
call esi
jmp 0x415561
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x416c86
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416af7

Function at 0x417080
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407680
mov eax, dword [0x47a800]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00415b5a
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4170c2
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41721e
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00423450
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x47c210]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00418078
mov ecx, dword [esi*4 + 0x47c210]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x417217
cmp eax, dword [edi + ecx + 0x24]
jne 0x417217
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417217
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418078
add esp, 0x14
test edx, edx
jl 0x417217
jg 0x41718d
test eax, eax
jb 0x417217
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x417217
jl 0x4171a7
cmp dword [ebp - 0x1008], eax
ja 0x417217
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4171c5
test ebx, ebx
je 0x4171fe
cmp ecx, edi
jae 0x4171fe
mov al, byte [ecx]
cmp al, 0xd
jne 0x4171df
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4171eb
cmp byte [ecx + 1], 0xa
jne 0x4171eb
inc ecx
jmp 0x4171eb
movzx eax, al
movsx eax, byte [eax + 0x47aad0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4171c5
cmp edx, ebx
jne 0x4171c5
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41721c
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004067c8
leave
ret
Function at 0x417515
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x47c210]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x417555
cmp byte [ebx], 0xa
jne 0x417555
or byte [eax + edi + 0x28], 4
jmp 0x41755a
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x417658
mov al, byte [edx]
cmp al, 0x1a
je 0x41763a
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x417589
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4175ae
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4175b8
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41756b
jmp 0x417658
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417635
cmp dword [ebp - 0xc], 0
je 0x417635
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47c210]
test byte [eax + edi + 0x28], 0x48
je 0x41760f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4175fa
mov byte [esi], dl
jmp 0x41760b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47c210]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x417658
cmp byte [ebp - 1], 0xa
jne 0x41761e
cmp esi, ebx
jne 0x41761e
mov byte [esi], 0xa
jmp 0x417657
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00418096
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x417658
mov byte [esi], 0xd
jmp 0x417657
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47c210]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x417654
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x417658
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x417661
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x47c210]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4176a4
cmp word [esi], dx
jne 0x4176a4
or byte [edi + eax + 0x28], 4
jmp 0x4176a9
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4177fc
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4177dc
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4176eb
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x417721
cmp eax, edx
jae 0x41772d
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4176c3
jmp 0x4177fc
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4177d8
cmp dword [ebp - 0x14], 0
je 0x4177d8
mov eax, dword [ebx*4 + 0x47c210]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4177b0
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x417779
mov word [esi], cx
jmp 0x4177ac
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47c210]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47c210]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47c210]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4177fc
pop ebx
cmp word [ebp - 4], bx
jne 0x4177c1
cmp esi, dword [ebp + 0xc]
jne 0x4177c1
mov word [esi], bx
jmp 0x4177f9
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00418096
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4177fc
push 0xd
jmp 0x4177f5
mov ecx, dword [ebx*4 + 0x47c210]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4177f3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4177fc
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x406b28
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
mov ecx, dword [ebp + 8]
add ecx, eax
push ebx
push edi
mov edi, dword [ecx]
add eax, 4
mov dword [esi], eax
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044d3f6
mov ecx, dword [esi]
add ecx, dword [ebp + 8]
lea ebx, [edi + edi]
push ebx
push ecx
push eax
mov dword [ebp - 4], eax
call fcn.0044f750
mov eax, dword [ebp - 4]
add dword [esi], ebx
xor ecx, ecx
add esp, 0x10
cmp edi, ecx
mov word [ebx + eax], cx
jle 0x406b81
xor word [eax + ecx*2], di
inc ecx
cmp ecx, edi
jl 0x406b78
pop edi
pop ebx
leave
ret 4

Function at 0x40ae87
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [esi]
test al, 3
je 0x40af07
push ebx
xor ebx, ebx
inc ebx
test bl, al
je 0x40aeb0
lea eax, [ebp - 8]
push eax
push dword [esi + 4]
call fcn.0045041b
mov eax, dword [ebp - 8]
or eax, dword [ebp - 4]
pop ecx
pop ecx
jne 0x40af06
mov eax, dword [esi]
test al, 0x20
je 0x40aecb
push dword [esi + 4]
push 2
push ebx
push 0x46ae30
call fcn.004505e5
mov dword [esi + 0xc], ebx
jmp 0x40af03
test al, 0x40
je 0x40aee8
push dword [esi + 4]
push 2
push ebx
push 0x46ae34
call fcn.004505e5
mov dword [esi + 0xc], 2
jmp 0x40af03
test al, al
jns 0x40af06
push dword [esi + 4]
push 3
push ebx
push 0x46ae38
call fcn.004505e5
mov dword [esi + 0xc], 4
add esp, 0x10
pop ebx
leave
ret

Function at 0x40af3b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and dword [esi + 0xc], 0
push edi
push 0x46ae3c
push dword [ebp + 8]
mov byte [esi + 8], 0
call fcn.004502fc
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x40afc6
push ebx
push edi
push 3
lea eax, [ebp + 8]
push 1
push eax
call fcn.004509f1
push edi
mov ebx, eax
call fcn.004506d9
add esp, 0x14
push 2
pop eax
cmp ebx, eax
jb 0x40afa3
cmp byte [ebp + 8], 0xff
jne 0x40af92
cmp byte [ebp + 9], 0xfe
jne 0x40afa3
mov dword [esi + 0xc], 1
jmp 0x40afc1
cmp byte [ebp + 8], 0xfe
jne 0x40afa3
cmp byte [ebp + 9], 0xff
jne 0x40afa3
mov dword [esi + 0xc], eax
jmp 0x40afc1
cmp ebx, 3
jb 0x40afc5
cmp byte [ebp + 8], 0xef
jne 0x40afc5
cmp byte [ebp + 9], 0xbb
jne 0x40afc5
cmp byte [ebp + 0xa], 0xbf
jne 0x40afc5
mov dword [esi + 0xc], 4
mov byte [esi + 8], 1
pop ebx
pop edi
pop ebp
ret 4

Function at 0x40b086
Capabilities:
Read file on windows

Disassembly:
test byte [esi], 4
push ebx
je 0x40b0b6
mov ebx, dword [edi]
push 0
push edi
push ebx
push dword [esp + 0x14]
push dword [esi + 4]
call dword [0x4652a8]
test eax, eax
jne 0x40b0dc
and dword [edi], eax
push 1
push eax
push ebx
push dword [esi + 4]
call dword [0x4651d4]
xor al, al
jmp 0x40b0de
push dword [esi + 4]
push dword [edi]
push 1
push dword [esp + 0x14]
call fcn.004509f1
mov dword [edi], eax
push dword [esi + 4]
call fcn.00450a3b
add esp, 0x14
test eax, eax
je 0x40b0dc
and dword [edi], 0
jmp 0x40b0b2
mov al, 1
pop ebx
ret 4
Function at 0x40b3f7
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, dword [esi + 0x58]
cmp dword [esi + 0x5c], edi
jne 0x40b476
cmp edi, 4
jle 0x40b408
push 4
pop edi
push 4
pop eax
sub eax, edi
push eax
lea eax, [edi + esi + 0x10]
push eax
lea eax, [esi + 0x10]
push eax
call fcn.00450c60
mov eax, dword [esi + 0x58]
sub eax, edi
lea eax, [eax + esi + 0x14]
push edi
push eax
mov eax, esi
sub eax, edi
add eax, 0x14
push eax
call fcn.0044f750
push dword [esi + 4]
lea eax, [esi + 0x14]
push 0x40
push 1
push eax
mov dword [esi + 0x54], edi
call fcn.004509f1
and dword [esi + 0x5c], 0
add esp, 0x28
test eax, eax
mov dword [esi + 0x58], eax
jne 0x40b476
push dword [esi + 4]
call fcn.00450a0c
test eax, eax
pop ecx
jne 0x40b471
push dword [esi + 4]
call fcn.00450a3b
test eax, eax
pop ecx
jne 0x40b471
pop edi
ret
or eax, 0xffffffff
pop edi
ret
mov ecx, dword [esi + 0x5c]
movzx eax, byte [ecx + esi + 0x14]
inc ecx
mov dword [esi + 0x5c], ecx
pop edi
ret

Function at 0x40ba48
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
mov edi, eax
xor esi, esi
cmp edi, ebx
mov byte [0x477662], bl
je 0x40ba8e
mov byte [0x477663], 1
call dword [0x4652e4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push 0x40bacf
push ebx
push ebx
mov dword [ebp - 8], edi
call fcn.00451734
add esp, 0x18
mov esi, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4655d4]
cmp esi, ebx
mov edi, eax
je 0x40baba
push 0xffffffffffffffff
push esi
mov byte [0x477663], bl
call dword [0x465114]
push esi
call dword [0x4652c8]
cmp byte [0x477662], 1
jne 0x40bac8
or eax, 0xffffffff
jmp 0x40baca
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x411238
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
xor esi, esi
inc esi
mov dword [0x4876c0], eax
push edi
mov edx, esi
mov eax, 0x4876c0
mov ecx, dword [eax]
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
mov dword [eax + 4], edi
add eax, 4
inc edx
cmp eax, 0x48807c
jl 0x411249
pop edi
mov dword [0x475c94], esi
mov dword [0x488090], esi
pop esi
ret