joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402039
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x407474], ebx
push esi
push edi
jne 0x4020b9
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4020f4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x407474], eax
je 0x4020f4
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x407478], eax
call esi
cmp dword [0x407318], 2
mov dword [0x40747c], eax
jne 0x4020b9
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x407484], eax
je 0x4020b9
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x407480], eax
mov eax, dword [0x407480]
test eax, eax
je 0x4020fe
call eax
test eax, eax
je 0x4020e5
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x407484]
test eax, eax
je 0x4020e5
test byte [ebp - 8], 1
jne 0x4020fe
cmp dword [0x407324], 4
jb 0x4020f8
or byte [ebp + 0x12], 0x20
jmp 0x40211d
xor eax, eax
jmp 0x40212d
or byte [ebp + 0x12], 4
jmp 0x40211d
mov eax, dword [0x407478]
test eax, eax
je 0x40211d
call eax
mov ebx, eax
test ebx, ebx
je 0x40211d
mov eax, dword [0x40747c]
test eax, eax
je 0x40211d
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x407474]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40382e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40385c
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x403863
cmp ebx, dword [eax + 4]
jae 0x403863
xor eax, eax
jmp 0x403a53
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x403874
xor eax, eax
inc eax
jmp 0x403a52
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40388a
cmp ecx, edx
jae 0x4039cf
cmp dword [eax + 4], 0
je 0x403893
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40387b
cmp dword [ebp + 8], 0
je 0x4038b5
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4039cf
cmp eax, esi
jae 0x4039cf
mov eax, dword [0x407490]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4038da
cmp dword [esi*4 + 0x407498], edi
je 0x4039d3
inc esi
cmp esi, eax
jl 0x4038c8
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x403a4f
cmp dword [ebp - 8], 0x1000000
jne 0x403a4f
test byte [ebp - 0xc], 0xcc
je 0x403958
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x403a4f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x403a4f
cmp word [eax + 0x18], 0x10b
jne 0x403a4f
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x403a4f
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x403958
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x403958
test byte [ecx + 0x27], 0x80
jne 0x4039cf
push 1
push 0x4074d8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40386c
mov ecx, dword [0x407490]
test ecx, ecx
mov edx, ecx
jle 0x40398c
lea eax, [ecx*4 + 0x407494]
cmp dword [eax], edi
je 0x40398c
dec edx
sub eax, 4
test edx, edx
jg 0x403980
test edx, edx
jne 0x4039bd
push 0xf
pop ebx
cmp ecx, ebx
jg 0x403999
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4039b1
lea eax, [edx*4 + 0x407498]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40399f
cmp ecx, 0x10
jge 0x4039bd
inc ecx
mov dword [0x407490], ecx
push 0
push 0x4074d8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40386c
xor eax, eax
jmp 0x403a52
test esi, esi
jle 0x40386c
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4074d8
call ebx
test eax, eax
jne 0x40386c
cmp dword [esi*4 + 0x407498], edi
je 0x403a29
mov eax, dword [0x407490]
lea esi, [eax - 1]
test esi, esi
jl 0x403a17
cmp dword [esi*4 + 0x407498], edi
je 0x403a13
dec esi
jns 0x403a07
test esi, esi
jge 0x403a27
cmp eax, 0x10
jge 0x403a22
inc eax
mov dword [0x407490], eax
lea esi, [eax - 1]
jmp 0x403a29
je 0x403a41
xor ecx, ecx
test esi, esi
jl 0x403a41
lea eax, [ecx*4 + 0x407498]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x403a2f
push 0
push 0x4074d8
call ebx
jmp 0x40386c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4048dc
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00401f40
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x404977
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x407318]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x404977
cmp eax, 1
je 0x404998
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x404977
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x404944
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x404973
xor eax, eax
inc eax
jmp 0x4049b7
cmp edi, eax
jae 0x40497b
xor eax, eax
jmp 0x4049b7
cmp eax, esi
jae 0x404982
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x407318]
jmp 0x40499b
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b2e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebx + 4]
push esi
push edi
mov edi, eax
mov eax, dword [edi]
mov edx, dword [ecx + eax*4]
mov eax, dword [edx]
mov esi, dword [eax]
push esi
call fcn.00414141
add esp, 4
mov dword [esp + 0x34], eax
inc eax
je 0x42f129
add eax, 7
shr eax, 3
add eax, eax
add eax, eax
add eax, eax
xor ecx, ecx
mov dword [esp + 0x38], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041286b
mov ecx, dword [esp + 0x38]
add esp, 4
lea edx, [ecx + ecx + 2]
push edx
push esi
push eax
mov dword [esp + 0x3c], eax
call fcn.00413de0
add esp, 0xc
push 4
call fcn.00414289
add esp, 4
test eax, eax
je 0x42f133
mov dword [eax], 1
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x140], 0
mov dword [esp + 0x3c], eax
je 0x42f209
cmp dword [eax], 1
jg 0x42f13a
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push eax
push ecx
call dword [0x487660]
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x13c]
test esi, esi
jne 0x42f1a1
mov esi, dword [eax + 0x134]
test esi, esi
je 0x42f209
mov dword [esp + 0x1c], esi
mov eax, 8
jmp 0x40b320
xor eax, eax
jmp 0x40b36c
mov eax, dword [esp + 0x3c]
dec dword [eax]
lea esi, [esp + 0x30]
call fcn.00402d00
mov edx, dword [esp + 0x34]
inc edx
push edx
call fcn.0044c254
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
mov dword [esp + 0x38], esi
neg ecx
or ecx, eax
push ecx
call fcn.0041286b
mov edx, dword [esp + 0x34]
mov esi, eax
mov eax, dword [esp + 0x38]
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
push edx
push esi
call fcn.00413de0
add esp, 0xc
mov dword [esp + 0x30], esi
jmp 0x40b389
mov eax, dword [eax + 0x140]
dec eax
js 0x42f209
mov dword [esp + 0x5c], 0
mov dword [esp + 0x70], eax
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x70]
lea eax, [eax + edx]
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [esi + eax*4]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x30]
call fcn.0040d890
test eax, eax
jns 0x42f1f0
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x70], eax
jmp 0x42f1ff
jle 0x42f226
mov ecx, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x5c], ecx
mov edx, dword [esp + 0x70]
cmp dword [esp + 0x5c], edx
jle 0x42f1ba
mov eax, dword [esp + 0x70]
cmp dword [esp + 0x5c], eax
jg 0x42f209
mov ecx, dword [esp + 0x1c]
mov esi, dword [esi + ecx*4]
lea ecx, [esp + 0x30]
call fcn.00403bb0
jmp 0x40b41b
Function at 0x410ce0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10020
call fcn.00427e30
xor eax, eax
nop
mov cl, byte [eax + 0x4a3248]
mov dl, byte [eax + 0x4a3240]
mov byte [ebp + eax - 0x20], cl
mov byte [ebp + eax - 0x18], dl
inc eax
cmp eax, 8
jl 0x410cf0
lea eax, [ebp - 8]
push 0x498d84
push eax
call fcn.00415070
push 4
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.00413de0
add esp, 0x14
push ebx
push esi
mov dword [ebp - 0xc], 0
push edi
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0x10000
lea edx, [ebp - 0x10020]
push 1
push edx
call fcn.00416a7b
add esp, 0x10
cmp eax, 0x18
jl 0x410db1
mov edi, eax
lea esi, [edi - 0x14]
test esi, esi
jle 0x410d80
xor edx, edx
xor ecx, ecx
mov bl, byte [ebp + ecx - 0x20]
lea eax, [ecx + edx]
cmp bl, byte [ebp + eax - 0x10020]
je 0x410d9e
cmp ecx, 0x14
je 0x42b8f9
inc edx
cmp edx, esi
jl 0x410d60
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
lea edx, [ecx + edi - 0x14]
mov ecx, dword [eax]
push 1
push 0xffffffffffffffec
push ecx
mov dword [ebp - 0xc], edx
call fcn.00416e41
add esp, 0xc
jmp 0x410d34
mov bl, byte [ebp + ecx - 0x1f]
lea eax, [ecx + edx]
cmp bl, byte [ebp + eax - 0x1001f]
je 0x410dbf
inc ecx
jmp 0x410d72
mov eax, 3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov bl, byte [ebp + ecx - 0x1e]
lea eax, [ecx + edx]
cmp bl, byte [ebp + eax - 0x1001e]
je 0x410dd4
add ecx, 2
jmp 0x410d72
mov bl, byte [ebp + ecx - 0x1d]
lea eax, [ecx + edx]
cmp bl, byte [ebp + eax - 0x1001d]
jne 0x42b8f1
mov bl, byte [ebp + ecx - 0x1c]
lea eax, [ecx + edx]
cmp bl, byte [ebp + eax - 0x1001c]
je 0x42b8e0
add ecx, 4
jmp 0x410d72
add ecx, 5
cmp ecx, 0x14
jl 0x410d62
jmp 0x410d72
add ecx, 3
jmp 0x410d72
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
lea ecx, [eax + edx + 0x14]
mov edx, dword [esi]
push 0
push ecx
push edx
call fcn.00416e41
mov eax, dword [esi]
push eax
push 4
lea ecx, [ebp - 8]
push 1
push ecx
call fcn.00416a7b
lea edx, [ebp - 8]
push 0x498d74
push edx
mov byte [ebp - 4], 0
call fcn.00416aa0
add esp, 0x24
neg eax
sbb eax, eax
and eax, 4
jmp 0x410db6
Function at 0x410e80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a8
push ebx
push esi
or ecx, 0xffffffff
mov ebx, 0x4956ec
call fcn.00410e10
mov esi, eax
lea eax, [esp + 0xa8]
push esi
push eax
call fcn.00415070
push esi
call fcn.00412876
add esp, 0xc
lea esi, [esp + 0x18]
call fcn.00410f40
lea eax, [esp + 0xa8]
mov ecx, esi
call fcn.00410f70
xor ebx, ebx
mov dword [edi + 8], ebx
xor ecx, ecx
mov eax, ebx
movzx edx, byte [esp + ecx + 0x18]
add eax, edx
movzx edx, byte [esp + ecx + 0x19]
add eax, edx
movzx edx, byte [esp + ecx + 0x1a]
add eax, edx
movzx edx, byte [esp + ecx + 0x1b]
add ecx, 4
add eax, edx
cmp ecx, 0x10
jl 0x410ed4
mov dword [edi + 8], eax
mov eax, dword [ebp + 8]
push 0x498d64
push eax
call fcn.00416739
add esp, 8
mov dword [edi], eax
cmp eax, ebx
je 0x42d6ba
push edi
call fcn.00410ce0
cmp eax, ebx
je 0x42d6c4
mov ecx, dword [edi]
push ecx
mov esi, eax
call fcn.004167bd
add esp, 4
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 1
jmp 0x410f33
mov edx, dword [edi]
push edx
push 0x10
lea eax, [esp + 0x10]
push 1
push eax
call fcn.00416a7b
add esp, 0x10
push 0x99f2
push 0x10
lea ecx, [esp + 0x10]
push ecx
call fcn.00450bc1
xor eax, eax
mov dword [edi + 8], ebx
xor ecx, ecx
movzx edx, byte [esp + eax + 8]
inc eax
imul ecx, edx
cmp eax, 0x10
jl 0x42d6f0
mov eax, dword [edi]
push eax
mov dword [edi + 8], ecx
call fcn.00416d52
add esp, 4
mov dword [edi + 4], eax
xor eax, eax
jmp 0x410f33

Function at 0x410f40
Capabilities:
Hash data with md5

Disassembly:
push 8
lea eax, [esi + 0x44]
push 0
push eax
call fcn.004141c0
add esp, 0xc
mov dword [esi + 0x34], 0x67452301
mov dword [esi + 0x38], 0xefcdab89
mov dword [esi + 0x3c], 0x98badcfe
mov dword [esi + 0x40], 0x10325476
ret
Function at 0x4347be
Capabilities:
Resolve function by parsing pe exports

Disassembly:
or al, ch
arpl word [0xc0850000], cx
adc byte [ebx - 0x74afdbac], cl
dec edx
add al, 0x8b
push esp
add dword [eax + eax*2], 0x87a8366
inc ecx
and al, 0x3c
add al, 0xe9
fnsave dword [ebp + edi*8 - 0x7af97401]
ror byte [edi], 0x84
sal dword [ebp + edi*8 - 0x6a17af01], cl
std
call dword [eax - 0x18]
xchg ebp, eax
std
call dword [eax - 0x18]
xchg ebp, eax
std
add dword [eax], eax
mov ah, 0xfd
call dword [eax - 0x18]
dec ebp
jae 0x431250
add bh, al
inc edi
or al, 0
add byte [eax], al
add cl, ch
scasb al, byte es:[edi]
mov dl, 0xfd
dec dword [ebx + 0xfc9850f]
test byte [eax + 0x51fffdb2], dh
add al, 0xe9
mov ebp, 0x8bfffdb2
pop es
dec dword [ebx - 0x13481739]
std
invalid
invalid
mov eax, dword [0x4ba6e4]
mov dword [edi + 4], eax
jmp fcn.0040c566
invalid
invalid
bound esi, qword [edx + 0x106afffd]
call fcn.00414289
add esp, 4
test eax, eax
je 0x43133c
mov ecx, dword [0x4ba6ec]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
inc dword [ecx]
mov dword [edi + 0xc], eax
jmp fcn.0040c566
xor eax, eax
mov dword [edi + 0xc], eax
jmp fcn.0040c566
add dword [ebx + 0x525c2454], ecx
add dh, al
inc esp
and al, 0x50
add byte [ebx + 0x50502444], cl
push eax
or byte [ebx + 0x38b0451], cl
mov eax, dword [edx + eax*4]
movsx ecx, word [eax + 0xa]
mov edx, dword [esp + 0x1c]
push ecx
push 0x6e
push edx
call fcn.004675f6
lea eax, [esp + 0xc]
push eax
jmp 0x43174a
add byte [eax], al
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov eax, dword [edx + eax*4]
movsx ecx, word [eax + 0xa]
mov edx, dword [esp + 0x1c]
push ecx
push 0xa9
push edx
call fcn.004675f6
lea esi, [esp + 0x40]
call fcn.0040ab70
lea eax, [esp + 0xc]
push eax
jmp 0x43174a
invalid
add byte [ebx + 0x4568b0f], cl
mov eax, dword [edx + ecx*4]
movsx ecx, word [eax + 0xa]
push ecx
push 0x6e
push ebx
call fcn.004675f6
lea esi, [esp + 0x60]
call fcn.0040ab70
lea esi, [esp + 0x40]
jmp 0x431740
xor eax, dword [eax]
add byte [eax], al
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
push eax
push 0x6c
push ecx
call fcn.004675f6
jmp 0x431745
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
test ecx, ecx
je 0x43486c
cmp ecx, 0x52
je 0x43486e
cmp ecx, 0x50
jne 0x4347ec
movzx ecx, byte [eax + 1]
movzx edx, byte [eax + 2]
shl ecx, 8
or ecx, edx
jmp 0x43485f
lea edx, [ecx - 0x39]
cmp edx, 0x38
ja case.default.0x4347fb
movzx edx, byte [edx + 0x433086]
jmp dword [edx*4 + 0x433072]
movzx edx, byte [ecx + 0x496e18]
add eax, edx
cmp dword [ebp + 0xc], 0
je case.default.0x434843
add ecx, 0xffffffe4
cmp ecx, 0xf
ja case.default.0x434843
movzx ecx, byte [ecx + 0x4330ca]
jmp dword [ecx*4 + 0x4330c2]
add eax, ecx
movzx ecx, byte [eax]
test ecx, ecx
jne 0x4347cf
xor eax, eax
pop ebp
ret
Function at 0x4376e1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x464]
test eax, eax
je 0x4376f9
cmp eax, 0x10000
jne 0x43771d
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x45c]
push eax
push 0x10000
push 1
push ecx
call fcn.00416a7b
add esp, 0x10
mov dword [esi + 0x464], 0
mov ecx, dword [esi + 0x464]
mov edx, dword [esi + 0x45c]
mov al, byte [ecx + edx]
inc ecx
mov dword [esi + 0x464], ecx
pop esi
pop ebp
ret 4

Function at 0x437738
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x460]
test eax, eax
je 0x437769
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x458]
push ecx
push eax
push 1
push edx
call fcn.00415cd6
add esp, 0x10
mov dword [esi + 0x460], 0
pop esi
pop ebp
ret 4

Function at 0x43776e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov dl, byte [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x460]
mov eax, dword [esi + 0x458]
mov byte [eax + ecx], dl
inc dword [esi + 0x460]
cmp dword [esi + 0x460], 0x10000
jne 0x4377bd
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x458]
push eax
push 0x10000
push 1
push ecx
call fcn.00415cd6
add esp, 0x10
mov dword [esi + 0x460], 0
pop esi
pop ebp
ret 8

Function at 0x43786e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 1
jne 0x437895
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00413de0
add esp, 0xc
jmp 0x4378a9
mov edx, dword [esi + 0x1c]
push edx
push 8
lea eax, [ebp - 8]
push 1
push eax
call fcn.00416a7b
add esp, 0x10
movzx ecx, byte [ebp - 4]
movzx edx, byte [ebp - 3]
movzx eax, byte [ebp - 2]
add dword [esi + 0xc], 8
shl ecx, 8
or ecx, edx
movzx edx, byte [ebp - 1]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp + 0xc]
shl ecx, 8
or ecx, edx
mov dword [eax], ecx
lea ecx, [ebp - 8]
push 0x498d74
push ecx
mov byte [ebp - 4], 0
call fcn.00416aa0
add esp, 8
neg eax
sbb eax, eax
neg eax
pop esi
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [0x4b8628], eax
mov edx, 1
mov eax, 0x4b8628
push edi
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, 0x4b8fe4
jl 0x437961
mov dword [0x4a3104], 1
mov dword [0x4b8ff8], 1
pop edi
pop ebp
ret
Function at 0x447f76
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x34]
push edi
push 0x498d98
push eax
mov dword [ebp - 4], 0x414fbd
call fcn.00416739
mov edi, eax
add esp, 8
mov dword [ebp - 8], edi
test edi, edi
jne 0x447fca
push eax
push 0xdeadbeef
push 0x1f
push esi
call fcn.00447e67
mov bl, al
lea eax, [ebp - 8]
push eax
call fcn.00436f2e
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp + 8], 1
jmp 0x447fd6
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 8]
push ecx
push 0x400
lea edx, [ebp - 0x408]
push edx
push eax
call dword [0x487764]
test eax, eax
je 0x448048
mov eax, dword [ebp + 8]
test eax, eax
je 0x44801c
push edi
push 1
push eax
lea ecx, [ebp - 0x408]
push ecx
call fcn.00415cd6
mov eax, dword [ebp + 8]
add esp, 0x10
add dword [esi + 8], eax
adc dword [esi + 0xc], 0
test eax, eax
jne 0x447fd6
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
jne 0x44806d
push eax
push 0xdeadbeef
push 0x21
push esi
call fcn.00447e67
lea ecx, [ebp - 8]
push ecx
mov bl, al
call fcn.00436f2e
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push 0xdeadbeef
push 0x20
push esi
call fcn.00447e67
lea edx, [ebp - 8]
push edx
mov bl, al
call fcn.00436f2e
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
push 1
push 0
push 0
push esi
call fcn.00447e67
lea edx, [ebp - 8]
push edx
mov bl, al
call fcn.00436f2e
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
cmp dword [0x4b8ff8], 0
push esi
push edi
mov esi, 0x4b8628
jne 0x4489c5
push 0
call fcn.0041662a
push eax
call fcn.0043794b
add esp, 8
mov dword [0x4a3104], 0x270
mov dword [0x4b8624], esi
mov edx, 0xe3
mov ecx, dword [esi + 4]
mov edi, dword [esi]
mov al, cl
and al, 1
movzx eax, al
neg eax
sbb eax, eax
xor edi, ecx
and edi, 0x7ffffffe
xor edi, dword [esi]
and eax, 0x9908b0df
shr edi, 1
xor edi, dword [esi + 0x634]
add esi, 4
xor edi, eax
dec edx
mov dword [esi - 4], edi
jne 0x4489da
mov edx, 0x18c
lea esp, [esp]
mov ecx, dword [esi + 4]
mov edi, dword [esi]
mov al, cl
and al, 1
movzx eax, al
neg eax
sbb eax, eax
xor edi, ecx
and edi, 0x7ffffffe
xor edi, dword [esi]
and eax, 0x9908b0df
shr edi, 1
xor edi, dword [esi - 0x38c]
add esi, 4
xor edi, eax
dec edx
mov dword [esi - 4], edi
jne 0x448a15
mov ecx, dword [0x4b8628]
mov dl, cl
and dl, 1
movzx eax, dl
mov edx, dword [esi]
neg eax
sbb eax, eax
xor edx, ecx
and edx, 0x7ffffffe
xor edx, dword [esi]
and eax, 0x9908b0df
shr edx, 1
xor edx, dword [esi - 0x38c]
pop edi
xor edx, eax
mov dword [esi], edx
pop esi
ret
Function at 0x4497c6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 0x18]
xor esi, esi
mov byte [0x4a85d6], 0
test edi, edi
je 0x44980b
mov byte [0x4a85d7], 1
call dword [0x48716c]
mov dword [ebp - 8], eax
lea eax, [ebp + 0x18]
push eax
push esi
lea ecx, [ebp - 8]
push ecx
push 0x447ea0
push esi
push esi
mov dword [ebp - 4], edi
call fcn.0041579f
add esp, 0x18
mov esi, eax
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call dword [0x4876dc]
mov edi, eax
test esi, esi
je 0x44983e
push 0xffffffffffffffff
push esi
mov byte [0x4a85d7], 0
call dword [0x4872fc]
push esi
call dword [0x487310]
cmp byte [0x4a85d6], 1
jne 0x449850
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x44a66a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
lea ecx, [eax + 4]
push edi
mov edi, dword [eax + edx]
mov dword [esi], ecx
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00414289
mov ebx, eax
lea eax, [edi + edi]
push eax
mov eax, dword [esi]
add eax, dword [ebp + 8]
push eax
push ebx
call fcn.00413de0
lea eax, [edi + edi]
add dword [esi], eax
xor ecx, ecx
mov word [eax + ebx], cx
add esp, 0x10
xor eax, eax
test edi, edi
jle 0x44a6c8
xor word [ebx + eax*2], di
inc eax
cmp eax, edi
jl 0x44a6bf
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8
Function at 0x450bc1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0xdc]
push eax
call fcn.004487f3
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0xdc]
push edx
call fcn.0044874d
xor esi, esi
test edi, edi
je 0x450c09
lea eax, [ebp - 0xdc]
push eax
call fcn.004487c2
xor byte [esi + ebx], al
inc esi
cmp esi, edi
jb 0x450bf5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x450ed6
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
dec dword [0x4a3104]
jne 0x450ee7
call fcn.004489a5
mov ecx, dword [0x4b8624]
mov eax, dword [ecx]
add ecx, 4
mov dword [0x4b8624], ecx
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
mov edx, eax
and edx, 0xff3a58ad
shl edx, 7
xor eax, edx
mov ecx, eax
and ecx, 0xffffdf8c
shl ecx, 0xf
xor eax, ecx
mov edx, eax
shr edx, 0x12
xor edx, eax
mov dword [ebp - 4], edx
fild dword [ebp - 4]
jns 0x450f2e
fadd qword [0x49d918]
fmul qword [0x49d928]
mov esp, ebp
pop ebp
ret