joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41fefc
Capabilities:
Query environment variable
Read .ini file

Disassembly:
mov eax, dword [0x432040]
mov dword [0x432044], eax
mov edx, dword [0x432034]
mov ecx, dword [0x432038]
add dword [0x432040], ecx
lea eax, [edx + ecx]
call fcn.00418346
jb 0x4186f6
ret

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

Disassembly:
mov al, byte [0x432191]
cmp al, 3
je 0x421945
cmp al, 4
je 0x421d10
cmp al, 5
je 0x422499
ret
call fcn.00420db0
mov edx, dword [0x432034]
mov dword [edx + 0x50], eax
call fcn.004185ea
mov edx, dword [0x432034]
mov dword [edx + 8], eax
mov eax, dword [0x432118]
mov word [edx + 6], ax
imul eax, eax, 0x28
movzx ecx, word [edx + 0x14]
lea eax, [eax + ecx + 0x18]
add eax, dword [0x43211c]
mov ecx, dword [edx + 0x3c]
dec ecx
add eax, ecx
not ecx
and eax, ecx
cmp eax, dword [edx + 0x54]
je 0x421991
or byte [0x432190], 0xff
xor ecx, ecx
add edx, 0x78
test dword [0x432108], 4
je 0x4219a5
add edx, 0x10
mov eax, dword [edx + ecx*8]
or eax, eax
je 0x4219c3
cmp dword [edx + ecx*8 + 4], 0xffffffff
jne 0x4219c3
mov ebx, dword [edx + ecx*8]
mov eax, dword [ebx + 0xc]
mov dword [edx + ecx*8], eax
mov eax, dword [ebx + 8]
mov dword [edx + ecx*8 + 4], eax
inc cl
cmp cl, 0x10
jb 0x4219a5
cmp dword [edx + 0x28], 0
jne 0x4219f1
mov eax, dword [0x432114]
shl eax, 2
sub dword [0x43202c], eax
btr dword [0x43210c], 0
jae 0x421a13
or byte [0x432190], 0xff
jmp 0x421a13
push edi
mov edi, dword [0x432148]
call fcn.004212b2
pop edi
add dword [0x432144], eax
cmp eax, dword [0x43214c]
je 0x421a13
or byte [0x432190], 0xff
mov ebx, dword [0x432034]
sub ebx, dword [0x43211c]
mov ecx, edi
sub ecx, ebx
mov ebp, ecx
shr ecx, 1
xor eax, eax
cdq
mov dx, word [ebx]
add eax, edx
mov dx, ax
shr eax, 0x10
add eax, edx
add ebx, 2
loop 0x421a2a
add eax, ebp
mov ebx, dword [0x432034]
mov dword [ebx + 0x58], eax
ret
call fcn.00421c07
cmp byte [0x432190], 0
je 0x421d28
mov eax, dword [0x432110]
mov dword [0x43202c], eax
ret
bt dword [0x432108], 0
jb 0x42313b
call fcn.00421c07
cmp byte [0x432190], 0
je 0x4224bf
mov eax, dword [0x432110]
mov dword [0x43202c], eax
ret
test dword [0x432108], 8
jne 0x423177
call fcn.00422e9f
mov edx, dword [0x432034]
mov eax, dword [0x432118]
mov byte [edx + 0x1c], 0x34
mov word [edx + 0x2c], ax
shl eax, 5
add eax, edx
add eax, 0x34
cmp eax, dword [0x432110]
je 0x423176
or byte [0x432190], 0xff
ret
call fcn.00423086
mov edx, dword [0x432034]
mov eax, dword [0x432118]
mov byte [edx + 0x20], 0x40
mov word [edx + 0x38], ax
imul eax, eax, 0x38
add eax, edx
add eax, 0x40
cmp eax, dword [0x432110]
je 0x4231a6
or byte [0x432190], 0xff
ret
Function at 0x4204f4
Capabilities:
Query environment variable
Read .ini file

Disassembly:
mov edx, dword [0x432008]
bt dword [0x432108], 4
jb 0x420520
mov eax, dword [0x43203c]
dec eax
shr eax, 4
inc eax
mov word [edx + 0xe], ax
shl eax, 4
movzx ecx, word [edx + 0x10]
add eax, ecx
mov dword [0x43203c], eax
mov edi, dword [0x43202c]
mov eax, dword [0x432114]
shl eax, 2
add eax, 0x1c
sub edi, eax
xchg dword [0x43202c], edi
mov ecx, 0xf
add eax, 0xf
and eax, 0xf
sub ecx, eax
xor al, al
rep stosb byte es:[edi], al
sub edi, dword [0x43202c]
mov ecx, edi
shr edi, 4
mov word [edx], 0x5a4d
mov word [edx + 8], di
mov eax, dword [0x432114]
mov word [edx + 6], ax
mov eax, dword [0x432038]
add eax, ecx
mov esi, eax
shr esi, 9
and eax, 0x1ff
inc si
or ax, ax
jne 0x420581
dec si
mov word [edx + 2], ax
mov word [edx + 4], si
mov eax, dword [0x43203c]
dec eax
shr eax, 4
inc eax
mov esi, dword [0x432038]
dec esi
shr esi, 4
inc esi
sub eax, esi
mov word [edx + 0xa], ax
add word [edx + 0xc], ax
salc
mov ah, al
or word [edx + 0xc], ax
mov word [edx + 0x18], 0x1c
add dword [0x432040], ecx
call fcn.00418346
jb 0x4186f6
ret

Function at 0x420db0
Capabilities:
Query environment variable
Read .ini file

Disassembly:
mov ebx, dword [0x432124]
mov edx, dword [0x432034]
mov eax, edi
sub eax, dword [ebx + 0x14]
jne 0x420dd1
bt dword [0x432108], 5
jb 0x420dd1
mov eax, dword [ebx + 0xc]
ret
mov dword [ebx + 8], eax
cmp edi, dword [0x4320a0]
jne 0x420deb
cmp dword [edx + 0x38], 0x1000
jb 0x420deb
mov edi, dword [0x43209c]
and dword [0x4320a0], 0
mov ebp, edi
sub ebp, dword [ebx + 0x14]
mov ecx, dword [edx + 0x3c]
dec ecx
lea eax, [ebp + ecx]
not ecx
and eax, ecx
mov dword [ebx + 0x10], eax
sub eax, ebp
mov ecx, eax
xor al, al
rep stosb byte es:[edi], al
mov eax, dword [0x432034]
sub eax, dword [0x43211c]
sub dword [ebx + 0x14], eax
mov ecx, dword [ebx + 0x10]
test byte [ebx + 0x24], 0x20
je 0x420e34
add dword [edx + 0x1c], ecx
cmp dword [edx + 0x2c], 0
jne 0x420e34
mov eax, dword [ebx + 0xc]
mov dword [edx + 0x2c], eax
test byte [ebx + 0x24], 0x40
je 0x420e55
add dword [edx + 0x20], ecx
test dword [0x432108], 4
jne 0x420e55
cmp dword [edx + 0x30], 0
jne 0x420e55
mov eax, dword [ebx + 0xc]
mov dword [edx + 0x30], eax
mov eax, dword [ebx + 8]
or eax, eax
je 0x420e69
cmp dword [ebx + 0x10], 0
jne 0x420e69
or byte [ebx + 0x24], 0x80
add dword [edx + 0x24], ecx
mov ecx, dword [edx + 0x38]
dec ecx
add eax, ecx
not ecx
and eax, ecx
add eax, dword [ebx + 0xc]
add ebx, 0x28
mov dword [0x432124], ebx
inc word [0x432118]
je 0x418707
ret

Function at 0x42256c
Capabilities:
Query environment variable
Read .ini file

Disassembly:
inc ecx
mov eax, ecx
shl eax, 8
mov dword [ebx], eax
inc dx
je 0x418707
mov eax, edx
shl eax, 0x10
mov al, 3
test byte [ebx + 0x14], 0x40
je 0x422594
or ah, 0xff
inc dx
je 0x418707
stosd dword es:[edi], eax
ret
Function at 0x428b70
Capabilities:
Query environment variable
Read .ini file

Disassembly:
xor ah, ah
cmp al, 0x11
jne 0x428ba4
mov byte [0x432183], 1
lodsw ax, word [esi]
xchg ah, al
or byte [0x43216d], 1
cmp ah, byte [0x43216c]
je 0x428ba3
cmp byte [0x43216c], 0
jne 0x418798
mov byte [0x43216c], ah
ret
mov byte [0x432183], 0
cmp al, 0x5b
jne 0x428ba3
and byte [0x43216d], 0xfe
ret
Function at 0x405c8c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422aa4], 0
push esi
jne 0x405cc3
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405c9d
mov dword [ecx*4 + 0x422aa0], eax
inc ecx
cmp ecx, 0x100
jl 0x405c98
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405cf4
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422aa0]
xor eax, esi
inc ecx
dec edx
jne 0x405cd6
pop edi
not eax
pop esi
ret 0xc

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0xf077bfb
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x1b3c2e70
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x10015217
Capabilities:
Enumerate processes

Disassembly:
push 0x238
mov eax, 0x1002d711
call fcn.10017005
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x10015234
xor eax, eax
jmp 0x10015311
xor edi, edi
push edi
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x1001530f
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x22c
push eax
push esi
call sub.kernel32.dll_Process32FirstW
jmp 0x100152e5
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x244]
call fcn.1000128b
push ebx
lea ecx, [ebp - 0x240]
mov dword [ebp - 4], edi
call fcn.1000128b
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 1
call fcn.10001cc6
lea ecx, [ebp - 0x240]
call fcn.10001cc6
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.10029ea1
pop ecx
pop ecx
mov ecx, dword [ebp - 0x240]
lea ecx, [ecx - 0x10]
test al, al
jne 0x100152ef
call fcn.10001eb4
mov ecx, dword [ebp - 0x244]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.10001eb4
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.kernel32.dll_Process32NextW
test eax, eax
jne 0x10015264
jmp 0x10015308
mov edi, dword [ebp - 0x234]
call fcn.10001eb4
mov ecx, dword [ebp - 0x244]
add ecx, 0xfffffff0
call fcn.10001eb4
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
call fcn.10016faf
ret

Function at 0x10029ea1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x10029eb0
pop dword [ebp - 4]
mov eax, 0x10029eb0
sub dword [ebp - 4], eax
push 0x40
push 0x1000
push 0x40bfe
push 0
mov eax, 0x859dba00
add eax, 0x8a65375c
add eax, dword [ebp - 4]
call dword [eax]
mov ecx, 0x1d4c0244
sub ecx, 0x1d4bb82b
mov esi, eax
mov edx, 0x1004ac00
add edx, dword [ebp - 4]
mov ebx, 0x7e9fcb7b
mov edi, dword [edx]
xor edi, ebx
mov dword [esi], edi
add esi, 0xcb47ef3b
add esi, 0x34b810c9
add edx, 0xe1da3e0c
sub edx, 0xe1da3e08
loop 0x10029efe
add eax, 0x7098c2cd
add eax, 0x8f68586a
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x9142c42c
add ecx, 0x7ebd3bd4
add ecx, dword [ebp - 4]
call ebx
leave
ret
Function at 0x5510d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xfa000]
push edi
jmp 0x5510ea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5510f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5510e0
mov eax, 1
add ebx, ebx
jne 0x551103
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x551114
jne 0x551133
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x551133
dec eax
add ebx, ebx
jne 0x551120
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5510f8
add ebx, ebx
jne 0x55112f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x551185
xor ecx, ecx
sub eax, 3
jb 0x55114b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5511ba
sar eax, 1
mov ebp, eax
jmp 0x551156
add ebx, ebx
jne 0x551156
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x551124
inc ecx
add ebx, ebx
jne 0x551164
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x551124
add ebx, ebx
jne 0x551171
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x551166
jne 0x551182
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x551166
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5511a4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x551196
jmp 0x5510e6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5511a4
add edi, ecx
jmp 0x5510e6
pop esi
mov edi, esi
mov ecx, 0x3ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5511c2
cmp byte [edi], 0x11
jne 0x5511c2
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 al, bl
loop 0x5511c7
lea edi, [esi + 0x14a000]
mov eax, dword [edi]
or eax, eax
je 0x55123f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1c99b4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1c9b30]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5511f4
mov ecx, edi
jns 0x551223
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1c9b34]
or eax, eax
je 0x551239
mov dword [ebx], eax
add ebx, 4
jmp 0x551211
call dword [esi + 0x1c9b44]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x551270
cmp al, 0xef
ja 0x551263
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x551245
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x551252
mov ebp, dword [esi + 0x1c9b38]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5512a4
sub esp, 0xffffff80
jmp 0x42800a
Function at 0x4010bf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401115
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401115
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x401107
cmp esi, ecx
jae 0x401115
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x4010f5
cmp esi, ecx
jae 0x401115
cmp word [esi], 0
je 0x401115
mov eax, esi
jmp 0x401117
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x401590
Capabilities:
Delete directory
Delete file

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xc], 0x8004ffff
lea ebx, [esi + 0x10]
je 0x4015d9
xor edi, edi
cmp dword [esi + 0x14], edi
je 0x4015be
push edi
mov ecx, ebx
call fcn.0040234a
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc edi
cmp edi, dword [esi + 0x14]
jne 0x4015a8
mov ecx, ebx
call fcn.0040236f
lea edi, [esi + 0x1c]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, edi
call fcn.0040262e
jmp 0x4015dc
lea edi, [esi + 0x1c]
lea ecx, [esi + 0x20]
call fcn.00402953
mov ecx, edi
call fcn.00402953
mov ecx, ebx
call fcn.0040236f
lea ecx, [esi + 8]
call fcn.00402953
pop edi
lea ecx, [esi + 4]
pop esi
pop ebx
jmp fcn.00402953

Function at 0x401591
Capabilities:
Delete directory
Delete file

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xc], 0x8004ffff
lea ebx, [esi + 0x10]
je 0x4015d9
xor edi, edi
cmp dword [esi + 0x14], edi
je 0x4015be
push edi
mov ecx, ebx
call fcn.0040234a
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc edi
cmp edi, dword [esi + 0x14]
jne 0x4015a8
mov ecx, ebx
call fcn.0040236f
lea edi, [esi + 0x1c]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, edi
call fcn.0040262e
jmp 0x4015dc
lea edi, [esi + 0x1c]
lea ecx, [esi + 0x20]
call fcn.00402953
mov ecx, edi
call fcn.00402953
mov ecx, ebx
call fcn.0040236f
lea ecx, [esi + 8]
call fcn.00402953
pop edi
lea ecx, [esi + 4]
pop esi
pop ebx
jmp fcn.00402953
Function at 0x5397e0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0
jmp 0x539805
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0xc]
jae 0x539878
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
movzx edx, byte [ebp - 8]
xor ecx, edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 8]
shr eax, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x53983a
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 8
jge 0x53986d
mov edx, dword [ebp - 0x10]
and edx, 1
neg edx
sbb edx, edx
neg edx
mov byte [ebp - 0x15], dl
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x10], eax
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
je 0x53986b
mov edx, dword [ebp - 0x10]
xor edx, 0xedb88320
mov dword [ebp - 0x10], edx
jmp 0x539831
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x5397fc
mov eax, dword [ebp - 8]
not eax
mov esp, ebp
pop ebp
ret
Function at 0x401069
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42c030]
jne 0x401073
repz ret
jmp fcn.00401e51

Function at 0x408b0b
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.00404d5a
and dword [ebp - 4], 0
cmp dword [0x42eb68], 0
mov ebx, eax
jne 0x408bbc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408c6d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408c6d
push eax
call fcn.00404ce8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42eb68], eax
call esi
push eax
call fcn.00404ce8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42eb6c], eax
call esi
push eax
call fcn.00404ce8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42eb70], eax
call esi
push eax
call fcn.00404ce8
pop ecx
mov dword [0x42eb78], eax
test eax, eax
je 0x408bbc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404ce8
pop ecx
mov dword [0x42eb74], eax
mov eax, dword [0x42eb74]
cmp eax, ebx
je 0x408c14
cmp dword [0x42eb78], ebx
je 0x408c14
push eax
call fcn.00404d63
push dword [0x42eb78]
mov esi, eax
call fcn.00404d63
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408c14
test edi, edi
je 0x408c14
call esi
test eax, eax
je 0x408c0b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408c0b
test byte [ebp - 0xc], 1
jne 0x408c14
or dword [ebp + 0x10], 0x200000
jmp 0x408c4d
mov eax, dword [0x42eb6c]
cmp eax, ebx
je 0x408c4d
push eax
call fcn.00404d63
pop ecx
test eax, eax
je 0x408c4d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408c4d
mov eax, dword [0x42eb70]
cmp eax, ebx
je 0x408c4d
push eax
call fcn.00404d63
pop ecx
test eax, eax
je 0x408c4d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42eb68]
call fcn.00404d63
pop ecx
test eax, eax
je 0x408c6d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408c6f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40af60
Capabilities:
Set console window title

Disassembly:
sub esp, 0x820
mov eax, dword [0x42c030]
xor eax, esp
mov dword [esp + 0x81c], eax
mov eax, dword [0x2c0c55c]
push ebx
mov ebx, dword [0x2c0c280]
push esi
mov esi, dword [0x42cf60]
push edi
mov edi, eax
cmp eax, 0x930
jne 0x40afa1
push 0x42a2f8
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, dword [0x2c0c55c]
mov dword [0x42ed0c], esi
cmp eax, 0x114e
jne 0x40afcb
lea eax, [esp + 0xc]
push eax
push str.Gijetuhe_batawuwafadis_fomikayemes_zeruru
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov eax, dword [0x2c0c55c]
cmp eax, 0x2f
jne 0x40afeb
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
push 0
lea ecx, [esp + 0x2c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
call fcn.0040ae60
mov ecx, dword [esp + 0x828]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401069
add esp, 0x820
ret
Function at 0x10002cd0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x74
test byte [0x10006018], 8
jne 0x10002de0
mov eax, dword [ebp + 8]
lea ebx, [ebp - 0x64]
mov esi, dword [ebp + 8]
mov ecx, 0x16
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [eax + 0x10]
test esi, esi
je 0x10002da3
mov edx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 8], esi
mov dword [esp + 0x14], 0
mov dword [ebp - 0x68], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
call edx
mov edi, eax
sub esp, 0x18
lea ecx, [edi + edi]
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x10002e10
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], edi
mov edx, dword [ebp - 0x68]
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [eax + 0x10]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], 0
call edx
mov dword [ebp - 0x54], esi
sub esp, 0x18
mov dword [esp], ebx
call sym.cryptdlg.dll_CertViewPropertiesW
sub esp, 4
mov ebx, eax
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], str.__p__n
mov dword [esp + 8], str.CertViewPropertiesA
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x10006018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10002ce6
xor ebx, ebx
jmp 0x10002dd4
Function at 0x100050a0
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 0x100050f8
cmp byte [esi + ebx - 1], 0xa
je 0x100050cc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x10006218], 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 0x4c1268
Capabilities:
Parse pe header

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

Function at 0x4c4bc7
Capabilities:
Parse pe header

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

Function at 0x4c76c4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x61bc98
push str.FlsAlloc
push 0x1f
call fcn.004c7396
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4c76f8
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x4c76fe
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4c7742
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x61bcbc
push str.FlsGetValue
push 0x21
call fcn.004c7396
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4c7779
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4c7781
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x61bcd0
push str.FlsSetValue
push 0x22
call fcn.004c7396
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4c77bb
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]