joyce8/EMBER2024-capa huggingface dataset:
Function at 0x55329c
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov edi, ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x5533ec
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [esi + 0x30]
call fcn.0054b8b8
cmp ebx, eax
jl 0x5532fe
mov dword [ebp - 8], ebx
mov byte [ebp - 4], 0
lea eax, [ebp - 8]
push eax
push 0
lea edx, [ebp - 0xc]
mov eax, dword [0x595e6c]
call fcn.0040a5c4
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x42d380]
call fcn.0041a538
call fcn.00405af0
mov edx, ebx
mov eax, dword [esi + 0x30]
call fcn.0054b8a4
mov ebx, eax
movzx eax, byte [ebx + 0x6a]
sub al, 2
jne 0x553323
mov dl, 1
mov eax, dword [0x5428d4]
call fcn.00544088
call fcn.00405af0
cmp byte [ebx + 0x6a], 1
jne 0x553385
lea edx, [ebp - 0x10]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x553345
sub eax, 4
mov eax, dword [eax]
cmp eax, 0x64
jl 0x55334e
mov al, 1
jmp 0x553370
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.00550458
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x55336a
sub eax, 4
mov eax, dword [eax]
cmp eax, 0x64
setge al
test al, al
je 0x553385
mov dl, 1
mov eax, dword [0x5428d4]
call fcn.00544088
call fcn.00405af0
mov eax, dword [ebx + 0xac]
shl eax, 9
cdq
add eax, dword [ebx + 0xa0]
adc edx, dword [ebx + 0xa4]
push edx
push eax
mov eax, dword [esi + 4]
call fcn.0043c894
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x24]
cmp edx, 0
jne 0x5533b4
cmp eax, 0
je 0x5533c9
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x24]
push edx
push eax
mov edx, dword [esi + 4]
mov eax, edi
call fcn.0043cb38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5533f3
lea eax, [ebp - 0x18]
call fcn.00406ecc
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00406ed4
ret
Function at 0x55f15c
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov ebx, eax
cmp dword [ebp - 0xc], 0
jne 0x55f187
mov ecx, 0x18e
mov edx, 0x55f354
mov eax, 0x55f3a8
call fcn.00406204
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.0055f708
mov dword [ebp - 0x14], 0xa
lea edi, [ebp - 0x20]
mov eax, pe_nt_image_headers32
call fcn.0040475c
mov byte [ebp - 0xd], al
mov esi, dword [ebx + 0x10]
and esi, 0xffff
or esi, 2
mov eax, esi
xor eax, 1
imul esi
shr eax, 8
mov esi, eax
mov edx, dword [ebx + 8]
movzx eax, byte [ebp - 0xd]
call fcn.00545bfc
mov dword [ebx + 8], eax
mov eax, dword [ebx + 8]
and eax, 0xff
add dword [ebx + 0xc], eax
imul eax, dword [ebx + 0xc], 0x8088405
inc eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 0xc]
shr eax, 0x18
mov edx, dword [ebx + 0x10]
call fcn.00545bfc
mov dword [ebx + 0x10], eax
mov eax, esi
xor al, byte [ebp - 0xd]
mov byte [edi], al
inc edi
dec dword [ebp - 0x14]
jne 0x55f19b
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.0055f708
mov dword [ebp - 0x14], 0xa
lea edi, [ebp - 0x20]
mov esi, dword [ebx + 0x10]
and esi, 0xffff
or esi, 2
mov eax, esi
xor eax, 1
imul esi
shr eax, 8
mov esi, eax
movzx eax, byte [edi]
mov edx, dword [ebx + 8]
call fcn.00545bfc
mov dword [ebx + 8], eax
mov eax, dword [ebx + 8]
and eax, 0xff
add dword [ebx + 0xc], eax
imul eax, dword [ebx + 0xc], 0x8088405
inc eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 0xc]
shr eax, 0x18
mov edx, dword [ebx + 0x10]
call fcn.00545bfc
mov dword [ebx + 0x10], eax
mov eax, esi
xor byte [edi], al
inc edi
dec dword [ebp - 0x14]
jne 0x55f217
movzx eax, byte [ebp + 0xa]
mov byte [ebp - 0xd], al
mov esi, dword [ebx + 0x10]
and esi, 0xffff
or esi, 2
mov eax, esi
xor eax, 1
imul esi
shr eax, 8
mov esi, eax
mov edx, dword [ebx + 8]
movzx eax, byte [ebp - 0xd]
call fcn.00545bfc
mov edi, eax
mov dword [ebx + 8], edi
and edi, 0xff
add dword [ebx + 0xc], edi
imul edi, dword [ebx + 0xc], 0x8088405
inc edi
mov dword [ebx + 0xc], edi
mov eax, edi
shr eax, 0x18
mov edx, dword [ebx + 0x10]
call fcn.00545bfc
mov dword [ebx + 0x10], eax
mov eax, esi
xor al, byte [ebp - 0xd]
mov byte [ebp - 0x16], al
movzx eax, byte [ebp + 0xb]
mov byte [ebp - 0xd], al
mov esi, dword [ebx + 0x10]
and esi, 0xffff
or esi, 2
mov eax, esi
xor eax, 1
imul esi
shr eax, 8
mov esi, eax
mov edx, dword [ebx + 8]
movzx eax, byte [ebp - 0xd]
call fcn.00545bfc
mov edi, eax
mov dword [ebx + 8], edi
and edi, 0xff
add dword [ebx + 0xc], edi
imul edi, dword [ebx + 0xc], 0x8088405
inc edi
mov dword [ebx + 0xc], edi
mov eax, edi
shr eax, 0x18
mov edx, dword [ebx + 0x10]
call fcn.00545bfc
mov dword [ebx + 0x10], eax
mov eax, esi
xor al, byte [ebp - 0xd]
mov byte [ebp - 0x15], al
mov byte [ebx + 4], 1
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
mov dword [eax], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x18]
mov dword [eax + 8], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x55f560
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov ebp, ecx
mov ebx, edx
mov dword [esp], eax
lea edi, [esp + 4]
mov eax, dword [esp]
cmp byte [eax + 4], 0
jne 0x55f58f
mov ecx, 0x1f9
mov edx, 0x55f634
mov eax, 0x55f688
call fcn.00406204
mov eax, dword [esp]
mov eax, dword [eax + 8]
mov dword [edi], eax
mov eax, dword [esp]
mov eax, dword [eax + 0xc]
mov dword [edi + 4], eax
mov eax, dword [esp]
mov eax, dword [eax + 0x10]
mov dword [edi + 8], eax
mov esi, ebx
dec ebp
test ebp, ebp
jl 0x55f604
inc ebp
mov eax, dword [edi + 8]
and eax, 0xffff
or eax, 2
movzx ebx, byte [esi]
mov edx, ebx
mov ecx, eax
xor ecx, 1
imul ecx, eax
shr ecx, 8
xor dl, cl
mov byte [esi], dl
mov edx, dword [edi]
mov eax, ebx
call fcn.00545bfc
mov dword [edi], eax
mov eax, dword [edi]
and eax, 0xff
add dword [edi + 4], eax
imul ebx, dword [edi + 4], 0x8088405
inc ebx
mov dword [edi + 4], ebx
mov eax, ebx
shr eax, 0x18
mov edx, dword [edi + 8]
call fcn.00545bfc
mov dword [edi + 8], eax
inc esi
dec ebp
jne 0x55f5b1
mov eax, dword [esp]
mov edx, dword [edi]
mov dword [eax + 8], edx
mov eax, dword [esp]
mov edx, dword [edi + 4]
mov dword [eax + 0xc], edx
mov eax, dword [esp]
mov edx, dword [edi + 8]
mov dword [eax + 0x10], edx
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x55f708
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040688c
xor eax, eax
push ebp
push 0x55f7c6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebx + 8], 0x12345678
mov dword [ebx + 0xc], 0x23456789
mov dword [ebx + 0x10], 0x34567890
mov eax, dword [ebp - 4]
test eax, eax
je 0x55f75e
mov edx, eax
sub edx, 0xa
cmp word [edx], 1
je 0x55f75e
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.004064f4
test eax, eax
je 0x55f767
sub eax, 4
mov eax, dword [eax]
mov esi, eax
test esi, esi
jle 0x55f7b0
mov edi, 1
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edi - 1]
mov edx, dword [ebx + 8]
call fcn.00545bfc
mov dword [ebx + 8], eax
mov eax, dword [ebx + 8]
and eax, 0xff
add dword [ebx + 0xc], eax
imul eax, dword [ebx + 0xc], 0x8088405
inc eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 0xc]
shr eax, 0x18
mov edx, dword [ebx + 0x10]
call fcn.00545bfc
mov dword [ebx + 0x10], eax
inc edi
dec esi
jne 0x55f772
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55f7cd
lea eax, [ebp - 4]
call fcn.004062d8
ret
Function at 0x560e24
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp + 4], ecx
mov dword [esp], edx
mov ebx, eax
mov eax, dword [ebx + 0x2c]
sub eax, dword [ebx + 0x28]
cmp eax, dword [esp]
jge 0x560e53
mov ecx, 0xf0
mov edx, 0x560f78
mov eax, 0x560fc8
call fcn.00406204
mov eax, dword [esp + 4]
cmp eax, dword [esp]
je 0x560e7a
mov eax, dword [esp]
dec eax
cmp eax, dword [esp + 4]
je 0x560e7a
mov ecx, 0xf2
mov edx, 0x560f78
mov eax, 0x561054
call fcn.00406204
mov eax, dword [ebx + 0x28]
mov edx, dword [esp]
cmp edx, dword [esp + 4]
jle 0x560e87
inc eax
mov edx, dword [ebx + 0x18]
mov dword [esp + 8], edx
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x20]
mov esi, dword [esp + 4]
dec esi
test esi, esi
jl 0x560ec7
inc esi
shl edx, 5
movzx edi, byte [eax + 2]
xor edx, edi
and edx, 0x3fff
mov edi, eax
and edi, dword [ebx + 0x58]
mov ebp, dword [esp + 8]
lea ebp, [ebp + edi*4]
mov edi, dword [ecx + edx*4]
mov dword [ebp], edi
mov dword [ecx + edx*4], eax
inc eax
dec esi
jne 0x560e9e
mov esi, dword [esp + 8]
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x1c], ecx
mov dword [ebx + 0x20], edx
mov dword [ebx + 0x28], eax
cmp byte [ebx + 4], 0
je 0x560f00
mov eax, dword [esp]
add dword [ebx + 0x44], eax
mov eax, dword [esp]
add dword [ebx + 0x48], eax
cmp byte [ebx + 0x34], 0
je 0x560f1a
mov eax, dword [ebx + 0x44]
cmp eax, dword [ebx + 0x40]
jb 0x560f1a
mov eax, ebx
call fcn.00561418
jmp 0x560f1a
mov edx, eax
sub edx, dword [ebx + 0x44]
cmp edx, dword [ebx + 0x5c]
jl 0x560f1a
mov byte [ebx + 4], 1
sub eax, dword [ebx + 0x5c]
sub eax, dword [ebx + 0x44]
add dword [ebx + 0x44], eax
add dword [ebx + 0x48], eax
cmp word [ebx + 0x3a], 0
je 0x560f52
mov eax, dword [esp]
add dword [ebx + 0x10], eax
mov esi, dword [ebx + 0x10]
test esi, 0xfff
jne 0x560f52
mov dword [esp + 0xc], esi
fild dword [esp + 0xc]
fmul dword [0x5610c8]
fild dword [ebx + 0x50]
fdivp st(1)
call fcn.004047ec
mov edx, eax
mov eax, dword [ebx + 0x3c]
call dword [ebx + 0x38]
mov eax, dword [ebx + 0x44]
cmp eax, dword [ebx + 0x40]
jb 0x560f61
mov eax, ebx
call fcn.00561418
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x56ad70
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x56ae7f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebx + 0x20]
mov edx, dword [eax]
xor ecx, ecx
mov dword [eax], ecx
mov eax, edx
call fcn.00405018
inc dword [ebx + 0x10]
cmp dword [ebx + 0x2c], 0
jne 0x56adae
cmp dword [ebx + 0x28], 0
jbe 0x56ade2
jmp 0x56adb0
jle 0x56ade2
lea ecx, [ebp - 8]
mov edx, dword [ebx + 0x10]
mov eax, ebx
call fcn.0056a754
mov esi, dword [ebp - 8]
mov dword [ebp - 0xc], esi
mov eax, dword [ebp - 0xc]
call fcn.00406f68
push eax
mov eax, dword [ebx + 4]
call fcn.00406f68
push eax
call sub.kernel32.dll_MoveFileW
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x56ae44
cmp word [ebx + 0x32], 0
je 0x56ae23
mov byte [ebp - 1], 0
lea ecx, [ebp - 1]
mov edx, ebx
mov eax, dword [ebx + 0x34]
call dword [ebx + 0x30]
cmp byte [ebp - 1], 0
je 0x56ae0f
mov dl, 1
mov eax, dword [0x5419cc]
call fcn.005433bc
call fcn.00405af0
mov eax, dword [ebx + 4]
call fcn.00544720
cmp edx, 0xffffffff
jne 0x56ae1f
cmp eax, 0xffffffff
je 0x56aded
jmp 0x56ae34
mov dl, 1
mov eax, dword [0x5419cc]
call fcn.005433bc
call fcn.00405af0
mov eax, dword [ebx + 4]
call fcn.00544590
mov edx, dword [ebx + 0x10]
call fcn.005460f4
push 0xff20
mov ecx, dword [ebx + 4]
mov dl, 1
mov eax, dword [0x431008]
call fcn.0043d248
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56ae86
lea eax, [ebp - 8]
call fcn.00406ecc
ret
Function at 0x5814a0
Capabilities:
Get session user name

Disassembly:
push ebx
add esp, 0xffffff94
mov ebx, eax
mov dword [esp], 0x66
push esp
lea eax, [esp + 8]
push eax
call sub.advapi32.dll_GetUserNameW
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x33
call fcn.004070ec
add esp, 0x6c
pop ebx
ret
Function at 0x408960
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.0040b9cd

Function at 0x4089d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4089e9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x408a24
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x408a20
lea ebx, [ebx]
cmp esi, eax
jae 0x408a24
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x408a10
cmp esi, eax
jb 0x408a2a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x40a36a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x40a3b2
call fcn.0040d9e8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40a3b2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x40a3f5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x40a3de
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x40a3de
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x40a3f2
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x413a79
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x413ac0
call fcn.0040d9e8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x413ac0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x413adc
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004135f3
mov esi, eax
test edi, edi
je 0x413ada
test ebx, ebx
je 0x413ada
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x414d0e
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x43d4a5
call fcn.00425bd4
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x414d33
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x414d79
lea ecx, [ebp - 0x10]
call fcn.00408db0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040e081
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00408d70
mov eax, esi
call fcn.00425cac
ret 8
Function at 0x424daa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x450670]
jne 0x424db4
repz ret
jmp fcn.004297ff

Function at 0x434fcb
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.00429977
and dword [ebp - 4], 0
cmp dword [0xf5459c], 0
mov ebx, eax
jne 0x43507c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x43512d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x445684
push edi
call esi
test eax, eax
je 0x43512d
push eax
call fcn.00429905
mov dword [esp], 0x445674
push edi
mov dword [0xf5459c], eax
call esi
push eax
call fcn.00429905
mov dword [esp], 0x445660
push edi
mov dword [0xf545a0], eax
call esi
push eax
call fcn.00429905
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0xf545a4], eax
call esi
push eax
call fcn.00429905
pop ecx
mov dword [0xf545ac], eax
test eax, eax
je 0x43507c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00429905
pop ecx
mov dword [0xf545a8], eax
mov eax, dword [0xf545a8]
cmp eax, ebx
je 0x4350d4
cmp dword [0xf545ac], ebx
je 0x4350d4
push eax
call fcn.00429980
push dword [0xf545ac]
mov esi, eax
call fcn.00429980
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4350d4
test edi, edi
je 0x4350d4
call esi
test eax, eax
je 0x4350cb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4350cb
test byte [ebp - 0xc], 1
jne 0x4350d4
or dword [ebp + 0x10], 0x200000
jmp 0x43510d
mov eax, dword [0xf545a0]
cmp eax, ebx
je 0x43510d
push eax
call fcn.00429980
pop ecx
test eax, eax
je 0x43510d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x43510d
mov eax, dword [0xf545a4]
cmp eax, ebx
je 0x43510d
push eax
call fcn.00429980
pop ecx
test eax, eax
je 0x43510d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0xf5459c]
call fcn.00429980
pop ecx
test eax, eax
je 0x43512d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43512f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401480
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x4014d8
cmp byte [esi + ebx - 1], 0xa
je 0x4014ac
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x405084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x401b30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xfc
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x401d08
mov edi, dword [0x405084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x401c17
test byte [0x402018], 8
jne 0x401cb0
lea ebx, [ebp - 0xe0]
mov edi, ebx
test byte [0x402028], 8
jne 0x401c70
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x401bb9
cmp esi, 3
jbe 0x401c28
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x401bca
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xfc
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x4030e4]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x401bb9
mov dword [esp], 0x402028
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x401b90
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x401b90
mov dword [esp], 0x402018
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x401b7b
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xe0]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x401b83
mov eax, 0xffffffff
jmp 0x401c17

Function at 0x401d80
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
Function at 0x406020
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
call fcn.004059e0
mov edi, eax
add esp, 4
test edi, edi
jne 0x4060b8
push 0xaf
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.004039b0
push 0x57a5c0
push esi
push 0x57a5bc
push ebx
push str.fopen_
push 5
call fcn.00403c70
add esp, 0x2c
call fcn.00549249
cmp dword [eax], 2
jne 0x40609a
push 0xb2
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.004039b0
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0xb4
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.004039b0
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0x5d02d8
call fcn.00405950
mov esi, eax
add esp, 4
test esi, esi
jne 0x4060da
push edi
call fcn.00545d43
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0
push esi
call fcn.00405290
push edi
push 1
push 0x6a
push esi
call fcn.00405680
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x4070f0
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.005458d0
mov eax, dword [0x5d86f0]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x407155
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x407155
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call fcn.00546dec
add eax, 0x40
push eax
call fcn.0054a03a
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0054546b
add esp, 0x108
ret
mov eax, dword [esp + 0x10c]
lea edx, [esp + 0x110]
push edx
push eax
lea ecx, [esp + 0xc]
push 0xff
push ecx
call fcn.00549f73
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4071e8
call fcn.00406fb0
test eax, eax
jle 0x4071e8
push esi
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x4071d2
push 0
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [esp + 0x28]
push esi
mov dword [esp + 0x28], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0054546b
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0054546b
add esp, 0x108
ret

Function at 0x407250
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
xor cl, cl
test edi, edi
je 0x407272
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
sub esi, eax
mov dl, byte [esi + eax]
xor dl, byte [eax]
inc eax
or cl, dl
dec edi
jne 0x407266
pop esi
movzx eax, cl
pop edi
ret