joyce8/EMBER2024-capa huggingface dataset:
Function at 0x438220
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x470318
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [0x47241c]
push 0
lea ecx, [esp + 0x20]
call fcn.00467741
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00437bc0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0046766f
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00463e59
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00463e59
push 1
push 0
push 0
mov ecx, esi
call fcn.00463e01
push 1
push 0
push 1
mov ecx, esi
call fcn.00463e01
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004677b3
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x4383a0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x470338
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00467741
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00437bc0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0046766f
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x47241c]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x438464
cmp dword [esp + 0x40], 1
jne 0x438462
cmp ecx, eax
jge 0x438464
mov eax, ecx
cmp eax, 0xc8
jge 0x438470
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00438220
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [0x472420]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004677b3
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x438be0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4703a3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00462276
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x6b9b28
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x6b87d0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x4720b0]
push eax
mov ecx, edi
call fcn.004679e9
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00468f41
test eax, eax
je 0x438cfc
mov ecx, dword [esp + 0x3c]
call fcn.00467a16
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x4723fc]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x438cc0
push edi
mov ecx, esi
call fcn.00464fd4
mov ecx, esi
call fcn.00438e60
cmp dword [esp + 0x38], 1
jne 0x438cf5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0046513e
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x43b720
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43b753
push esi
call fcn.0043e830
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43b74c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43b7d9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43b7c2
mov eax, dword [esi + 8]
test eax, eax
je 0x43b777
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43b7be
cmp eax, 2
je 0x43b7c2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43b76a
cmp eax, 3
je 0x43b79d
cmp eax, 1
jne 0x43b76a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43b76a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43b76a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043b800
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43b7e8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043b800
add esp, 4
pop esi
ret
Function at 0x1001100b
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x1001101d
xor eax, eax
jmp 0x10011119
push esi
mov esi, dword [ebp + 8]
push 0x50
call fcn.100191a7
mov esi, eax
pop ecx
test esi, esi
je 0x10011118
push ebx
push dword [ebp + 0x10]
mov ebx, dword [edi]
push dword [ebp + 8]
call fcn.100191a7
push dword [ebp + 0x10]
mov dword [esi], eax
push dword [edi + 8]
push dword [ebp + 8]
call fcn.100191a7
push 0
push dword [ebp + 0x10]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push eax
push dword [ebp + 8]
call fcn.100191a7
push dword [ebp + 0x10]
mov dword [esi + 0xc], eax
push dword [ebp + 8]
mov ebx, dword [edi + 0x10]
call fcn.100191a7
push 0
push dword [ebp + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
push eax
push dword [ebp + 8]
call fcn.100191a7
push dword [ebp + 0x10]
mov dword [esi + 0x14], eax
push dword [ebp + 8]
mov ebx, dword [edi + 0x18]
call fcn.100191a7
add esp, 0x44
push dword [ebp + 0x10]
mov dword [esi + 0x18], eax
mov al, byte [edi + 4]
mov byte [esi + 4], al
push dword [edi + 0x1c]
push dword [ebp + 8]
call fcn.100191a7
xor ebx, ebx
add esp, 0xc
mov dword [esi + 0x1c], eax
cmp eax, ebx
je 0x100110c4
mov dword [eax + 0x20], esi
push ebx
push dword [ebp + 0x10]
mov dword [esi + 0x20], ebx
mov eax, dword [edi + 0x28]
push eax
push dword [ebp + 8]
call fcn.100191a7
push ebx
push dword [ebp + 0x10]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
push eax
push dword [ebp + 8]
call fcn.100191a7
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov ax, word [edi + 6]
or dword [esi + 0x38], 0xffffffff
or dword [esi + 0x3c], 0xffffffff
mov ecx, 0xfff7
and ax, cx
add esp, 0x20
or dword [esi + 0x40], 0xffffffff
mov word [esi + 6], ax
mov dword [esi + 0x24], ebx
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x1003f584
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1004acd0]
jne 0x1003f58e
repz ret
jmp fcn.1003fc70

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x42e003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
mov ecx, 0x6c410f20
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x1fc61cce
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x401820
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x43a040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
mov dword [ebp - 0x108], ebx
mov dword [ebp - 0x108], ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0x100
lea ecx, [ebp - 0x104]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
xorps xmm0, xmm0
lea esi, [ebp - 0x104]
movups xmmword [ebx], xmm0
mov dword [ebx + 0x10], 0
lea ecx, [esi + 1]
mov dword [ebx + 0x14], 0
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x401880
sub esi, ecx
cmp esi, 0x7fffffff
ja 0x401960
push edi
cmp esi, 0xf
ja 0x4018bc
push esi
lea eax, [ebp - 0x104]
mov dword [ebx + 0x10], esi
push eax
push ebx
mov dword [ebx + 0x14], 0xf
call sub.VCRUNTIME140.dll_memcpy
mov byte [esi + ebx], 0
jmp 0x40194a
mov edi, esi
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x4018f0
mov ecx, 0x80000000
mov edi, 0x7fffffff
add ecx, 0x23
push ecx
call fcn.00431224
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x40190d
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x401924
mov eax, 0x16
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
cmp eax, 0x1000
jb 0x401913
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x401965
jmp 0x4018d6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
test eax, eax
je 0x401922
push eax
call fcn.00431224
add esp, 4
jmp 0x401924
xor eax, eax
push esi
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x108], eax
push ecx
push eax
mov dword [ebx], eax
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x14], edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x108]
mov byte [eax + esi], 0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, ebx
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00431216
mov esp, ebp
pop ebp
ret
call fcn.00401180
call fcn.004010e0
int3
Function at 0x404800
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x404861
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x404844
cmp edi, 2
jb 0x404844
cmp byte [esi], cl
jne 0x404844
cmp byte [esi + 1], cl
jne 0x404844
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x4337f8]
jmp 0x404815
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x4337f8]
test edi, edi
jne 0x404815
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x404890
cmp cl, 0x23
jne 0x404877
cmp byte [esi], cl
jne 0x404877
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x4337f8]
test cl, cl
jne 0x404868
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x4049a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x4049b4
mov dword [ebx], 0
mov edx, 0x437960
call fcn.004048a0
mov esi, eax
test esi, esi
je 0x404aa2
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call edi
add esp, 4
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x404a98
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x404a98
push esi
call edi
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
cmp edi, 0xffffffff
je 0x404a98
push 0
push dword [ebp - 4]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x404a98
mov eax, dword [0x43a6c0]
test eax, eax
je 0x404a2c
inc dword [eax + 0x36c]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x404a98
push esi
push dword [ebp + 8]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, dword [ebp + 8]
je 0x404a7d
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x43a6c0]
add esp, 4
test eax, eax
je 0x404a6a
dec dword [eax + 0x36c]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test ebx, ebx
je 0x404a8f
mov eax, dword [ebp + 8]
mov dword [ebx], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4060c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x43a040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0xc4]
lea edx, [ebp - 8]
push ebx
mov ebx, dword [ecx + 0xcc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 4
mov ebx, dword [ebx + eax*4 - 4]
mov dword [ebp - 8], edi
not ebx
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x4337f8]
sub esi, 1
jne 0x4060f3
mov eax, dword [0x43a6c0]
not ebx
cmp dword [eax + 0x1be0], ebx
jne 0x406122
mov dword [eax + 0x1be4], ebx
cmp dword [eax + 0x1c1c], ebx
jne 0x406131
mov byte [eax + 0x1c20], 1
cmp dword [eax + 0x1bc8], ebx
jne 0x40614a
push ecx
push edi
mov edx, 4
mov ecx, ebx
call fcn.00415ab0
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00431216
mov esp, ebp
pop ebp
ret 4
Function at 0x40a750
Capabilities:
Hash data with crc32

Disassembly:
mov eax, ecx
or ecx, 0xffffffff
push ebx
push esi
mov bl, byte [eax]
lea esi, [eax + 1]
test bl, bl
je 0x40a78d
push edi
or edi, 0xffffffff
cmp bl, 0x23
jne 0x40a773
cmp byte [esi], bl
jne 0x40a773
cmp byte [esi + 1], bl
cmove ecx, edi
movzx edx, cl
movzx eax, bl
mov bl, byte [esi]
xor edx, eax
shr ecx, 8
inc esi
xor ecx, dword [edx*4 + 0x4337f8]
test bl, bl
jne 0x40a764
pop edi
pop esi
not ecx
pop ebx
jmp fcn.0040a6f0
Function at 0x414bc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp dword [edi + 0x2fa8], 0
lea esi, [edi + 0x2fac]
je 0x414c42
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x414bfc
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.004166e0
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.00404d70
mov edx, dword [esi]
mov ecx, 0x43a6bb
push dword [edi + 0x2fa8]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x2fb4]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.00404d70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41ed10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x41ed4a
mov eax, dword [0x43a6c0]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x41ed3d
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x41ed7b
mov eax, dword [0x43a6c0]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x41ed6e
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x41edac
mov eax, dword [0x43a6c0]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x41ed9f
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x41edf9
mov eax, dword [0x43a6c0]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x41edec
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x41ee2a
mov eax, dword [0x43a6c0]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x41ee1d
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x41ee5b
mov eax, dword [0x43a6c0]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x41ee4e
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x5c], 0
pop edi
lea ecx, [esi + 0x78]
pop esi
jmp fcn.00421590
Function at 0x431d38
Capabilities:
Parse pe header

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

Disassembly:
mov eax, 0x5799c0
call fcn.00508ecc
push ecx
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
and dword [ebp - 4], 0
lea edi, [esi + 0x38]
mov dword [ebp - 0x14], edi
lea ecx, [edi + 0xc]
mov byte [ebp - 4], 3
call fcn.0055ff75
lea ecx, [edi + 8]
mov byte [ebp - 4], 2
call fcn.0055ff75
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call fcn.0055ff75
and byte [ebp - 4], 0
lea ecx, [esi + 0x2c]
call fcn.0055ff75
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0x1c]
call fcn.0055ff75
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x40cd70
Capabilities:
Check os version

Disassembly:
mov eax, 0x57a657
call fcn.00508ecc
sub esp, 0x118
push ebx
push esi
push edi
xor ebx, ebx
push dword [ebp + 0x1c]
mov esi, ecx
mov dword [ebp - 0x10], esi
push ebx
call fcn.00565050
mov eax, dword [0x663758]
mov dword [ebp - 4], ebx
mov dword [esi + 0x64], eax
cmp dword [ebp + 0x20], ebx
mov byte [ebp - 4], 1
mov dword [esi], 0x593180
jne 0x40cdf6
mov edi, 0x114
lea eax, [ebp - 0x124]
push edi
push ebx
push eax
call fcn.00508ef0
add esp, 0xc
lea eax, [ebp - 0x124]
mov dword [ebp - 0x124], edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 2
jne 0x40cdef
cmp dword [ebp - 0x120], 5
mov dword [ebp + 0x20], 0x58
jae 0x40cdf6
mov dword [ebp + 0x20], 0x4c
push dword [ebp + 0x20]
call fcn.005098ae
cmp eax, ebx
pop ecx
mov dword [esi + 0x5c], eax
jne 0x40ce0b
call fcn.0055d90a
push dword [ebp + 0x20]
mov ecx, esi
push ebx
call fcn.0040cfd0
push eax
call fcn.00508ef0
push 0x200002
call fcn.00560564
mov dword [esi + 0xe8], eax
mov word [eax], bx
mov eax, dword [ebp + 8]
add esp, 0x10
mov dword [esi + 0x60], eax
lea edi, [esi + 0x68]
neg eax
sbb eax, eax
mov ecx, esi
add eax, 0x7005
mov word [edi], bx
mov dword [esi + 0xec], ebx
mov dword [esi + 0x3c], eax
call fcn.0040cfd0
mov ecx, dword [ebp + 0x20]
mov dword [eax], ecx
mov ecx, esi
call fcn.0040cfd0
mov ecx, dword [esi + 0xe8]
mov dword [eax + 0x1c], ecx
mov ecx, esi
call fcn.0040cfd0
mov ecx, esi
mov dword [eax + 0x20], 0x100000
call fcn.0040cfd0
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x3c], ecx
mov ecx, esi
call fcn.0040cfd0
mov ecx, esi
mov dword [eax + 0x24], edi
call fcn.0040cfd0
mov ecx, esi
mov dword [eax + 0x28], 0x40
call fcn.0040cfd0
mov ecx, dword [ebp + 0x14]
add eax, 0x34
or ecx, 0x880020
or dword [eax], ecx
test byte [ebp + 0x14], 0x40
je 0x40cec8
mov ecx, esi
call fcn.0040cfd0
add eax, 0x34
and byte [eax + 2], 0x7f
call fcn.00574751
mov edi, dword [eax + 0xc]
mov ecx, esi
call fcn.0040cfd0
mov ecx, esi
mov dword [eax + 8], edi
call fcn.0040cfd0
cmp dword [ebp + 0x10], ebx
mov dword [eax + 0x44], 0x40cbf9
je 0x40cf01
push 0x100000
push dword [ebp + 0x10]
push dword [esi + 0xe8]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [ebp + 0x18], ebx
je 0x40cf40
push dword [ebp + 0x18]
lea edi, [esi + 0x64]
mov ecx, edi
call fcn.0056010c
push ebx
mov ecx, edi
call fcn.005603ba
push 0x7c
push eax
call fcn.00509885
pop ecx
cmp eax, ebx
pop ecx
je 0x40cf33
mov word [eax], bx
push 0x7c
add eax, 2
jmp 0x40cf1d
mov edi, dword [esi + 0x64]
mov ecx, esi
call fcn.0040cfd0
mov dword [eax + 0xc], edi
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x1c
Function at 0x40e786
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x57a838
call fcn.00508ecc
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.0055ffe9
mov eax, dword [ebp - 0x18]
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [eax - 8], edi
jne 0x40e7c0
push eax
mov ecx, esi
call fcn.0056386b
or ebx, 0xffffffff
jmp 0x40e852
mov edx, dword [esi]
push eax
push edi
mov ecx, esi
call dword [edx + 0xe0]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40e832
mov eax, dword [esi]
or dword [ebp - 0x10], 0xffffffff
or dword [ebp - 0x14], 0xffffffff
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push ebx
mov ecx, esi
call dword [eax + 0xd4]
push ebx
mov ecx, esi
call fcn.0055ee4c
cmp dword [ebp - 0x10], edi
jge 0x40e81c
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e81c
push edi
push 1
push dword [ebp + 8]
call fcn.00411c6a
add esp, 0xc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x10]
push dword [ebp + 8]
push edi
call dword [eax + 0xd8]
jmp 0x40e840
push dword [ebp - 0x18]
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 0xf0]
mov ebx, eax
push edi
push ebx
push 0x14e
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0055ff75
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x4101f5
Capabilities:
Find taskbar

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_FindWindowExW]
push edi
xor edi, edi
push edi
push str.Shell_TrayWnd
push edi
push edi
call esi
cmp eax, edi
jne 0x410211
xor eax, eax
jmp 0x41021b
push edi
push str.TrayNotifyWnd
push edi
push eax
call esi
pop edi
pop esi
ret

Function at 0x410537
Capabilities:
Read clipboard data

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push 0x66b504
mov ecx, edi
call fcn.0056010c
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x410569
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x41056d
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor eax, eax
jmp 0x410594
push eax
mov ecx, edi
call fcn.0056010c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [esp + 0x10], 0
je 0x410591
mov ecx, edi
call fcn.0055d30b
mov ecx, edi
call fcn.0055d27f
push 1
pop eax
pop edi
pop esi
ret 8