joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ec20
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x64
push ebp
push esi
push edi
push 0x100
mov edi, ecx
mov dword [esp + 0x14], 0
call fcn.004197c1
mov ebp, eax
mov eax, dword [edi + 0x18]
add esp, 4
cmp eax, 1
jne 0x40ec8a
lea eax, [esp + 0x14]
push eax
call fcn.00412590
mov edx, dword [edi + 8]
mov eax, edx
add esp, 4
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40ec60
lea ecx, [esp + 0x14]
push ecx
sub eax, esi
push eax
push edx
call fcn.004125d0
lea edx, [esp + 0x20]
push edx
push ebp
call fcn.00412650
add esp, 0x14
jmp 0x40ed3e
cmp eax, 2
jne 0x40edae
mov eax, dword [edi + 8]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40eca0
sub eax, edx
cmp eax, 1
jb 0x40edb7
lea eax, [esp + 0x14]
push eax
call fcn.00412590
mov ecx, dword [edi + 8]
push 0x4377a4
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.0041aab2
add esp, 0x10
test eax, eax
jne 0x40edae
lea esp, [esp]
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 0xe8]
push eax
push 0x80000
push 1
push ecx
call fcn.0041e4a8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ed16
mov eax, dword [edi + 0xe8]
lea edx, [esp + 0x14]
push edx
push esi
push eax
call fcn.004125d0
add esp, 0xc
cmp esi, 0x80000
je 0x40ece0
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0041a972
lea edx, [esp + 0x18]
push edx
push ebp
mov dword [esp + 0x1c], 0
call fcn.00412650
add esp, 0xc
xor esi, esi
add edi, 0x20
movzx ecx, byte [esi + ebp]
push 0x10
push 3
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.0041e1e4
lea eax, [esp + 0x1c]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40ed60
sub eax, edx
cmp eax, 1
jne 0x40ed81
mov dl, byte [esp + 0xc]
mov byte [esp + 0xd], dl
mov byte [esp + 0xc], 0x30
mov byte [esp + 0xe], cl
lea eax, [esp + 0xc]
push eax
push 0xc8
push edi
call fcn.0041b848
add esi, 1
add esp, 0xc
cmp esi, 0x14
jl 0x40ed43
push ebp
call fcn.0041b0d0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x64
ret
push ebp
call fcn.0041b0d0
add esp, 4
lea eax, [edi + 0x20]
pop edi
pop esi
pop ebp
add esp, 0x64
ret
Function at 0x40edd0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xe4
push ebx
push ebp
push esi
push edi
push 0x100
mov edi, ecx
mov dword [esp + 0x18], 0
call fcn.004197c1
mov ecx, dword [edi + 0x1c]
mov ebx, eax
mov eax, ecx
cdq
and edx, 7
add eax, edx
mov ebp, eax
mov eax, dword [edi + 0x18]
sar ebp, 3
add esp, 4
cmp eax, 1
mov dword [esp + 0x18], ebp
jne 0x40ee4f
lea eax, [esp + 0x1c]
push eax
push ecx
call fcn.00415d30
mov edx, dword [edi + 8]
mov eax, edx
add esp, 8
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40ee25
lea ecx, [esp + 0x1c]
push ecx
sub eax, esi
push eax
push edx
call fcn.00415de0
lea edx, [esp + 0x28]
push edx
push ebx
call fcn.00415e20
add esp, 0x14
jmp 0x40eefe
cmp eax, 2
jne 0x40ef61
mov eax, dword [edi + 8]
lea esi, [eax + 1]
mov edi, edi
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x40ee60
sub eax, esi
cmp eax, 1
jb 0x40ef6a
lea eax, [esp + 0x1c]
push eax
push ecx
call fcn.00415d30
mov ecx, dword [edi + 8]
push 0x4377a4
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.0041aab2
add esp, 0x14
test eax, eax
jne 0x40ef61
lea ecx, [ecx]
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 0xe8]
push eax
push 0x80000
push 1
push ecx
call fcn.0041e4a8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40eed6
mov eax, dword [edi + 0xe8]
lea edx, [esp + 0x1c]
push edx
push esi
push eax
call fcn.00415de0
add esp, 0xc
cmp esi, 0x80000
je 0x40eea0
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0041a972
lea edx, [esp + 0x20]
push edx
push ebx
mov dword [esp + 0x20], 0
call fcn.00415e20
add esp, 0xc
xor esi, esi
test ebp, ebp
jle 0x40ef61
lea ebp, [edi + 0x20]
movzx ecx, byte [esi + ebx]
push 0x10
push 3
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.0041e1e4
lea eax, [esp + 0x20]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40ef24
sub eax, edx
cmp eax, 1
jne 0x40ef45
mov dl, byte [esp + 0x10]
mov byte [esp + 0x11], dl
mov byte [esp + 0x10], 0x30
mov byte [esp + 0x12], cl
lea eax, [esp + 0x10]
push eax
push 0xc8
push ebp
call fcn.0041b848
add esi, 1
add esp, 0xc
cmp esi, dword [esp + 0x18]
jl 0x40ef07
push ebx
call fcn.0041b0d0
add esp, 4
lea eax, [edi + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe4
ret
Function at 0x40f1b0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x80
mov eax, dword [0x43fbfc]
xor eax, esp
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x84]
push ebx
push esi
push edi
mov edi, dword [esp + 0x94]
xor ebx, ebx
push 0x63
lea ecx, [esp + 0x29]
push ebx
push ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x30], bl
call fcn.0041a540
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], ebx
call fcn.0040cc70
add esp, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1c]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
jne 0x40f239
push 0x63
push 0x43653f
lea ecx, [esp + 0x2c]
push 0x64
push ecx
call fcn.0041b13a
add esp, 0x10
mov byte [esp + 0x24], bl
mov byte [esp + 0x87], bl
jmp 0x40f2ec
lea edx, [esi + 0xfde8]
push ebp
push edx
call fcn.0041beca
mov ebp, eax
add esp, 4
cmp ebp, ebx
jne 0x40f272
push 0x63
push 0x43653f
lea eax, [esp + 0x30]
push 0x64
push eax
call fcn.0041b13a
add esp, 0x10
mov byte [esp + 0x28], bl
mov byte [esp + 0x8b], bl
jmp 0x40f2de
push ebp
push esi
push ebx
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x40f297
push 0x43653f
mov esi, 0x64
lea edi, [esp + 0x2c]
call fcn.0040f170
add esp, 4
jmp 0x40f2de
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x20]
push edx
push 0x43a760
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40f27f
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0xc]
mov ecx, dword [ecx + 8]
movzx edx, ax
push edx
shr eax, 0x10
push eax
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
push str._d._d._d._d
lea ecx, [esp + 0x3c]
push 0x64
push ecx
call fcn.0041ab7d
add esp, 0x1c
cmp ebp, ebx
je 0x40f2eb
push ebp
call fcn.0041b986
add esp, 4
pop ebp
cmp dword [esp + 0x10], ebx
je 0x40f2ff
mov edx, dword [esp + 0xc]
push edx
call fcn.0040ccb0
add esp, 4
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.0040c060
mov ecx, dword [esp + 0x88]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0041a1b8
add esp, 0x80
ret
Function at 0x410cc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
push esi
mov esi, ecx
je 0x410de0
push ebx
push edi
mov edi, 0x10
sub edi, dword [esi + 0x54]
cmp edi, ebp
jb 0x410ce0
mov edi, ebp
mov eax, dword [esi + 0x54]
mov ebx, dword [esp + 0x14]
push edi
lea ecx, [eax + esi + 0x44]
push ebx
push ecx
call fcn.0041d420
add dword [esi + 0x54], edi
mov eax, dword [esi + 0x54]
add ebx, edi
add esp, 0xc
sub ebp, edi
cmp eax, 0x10
mov dword [esp + 0x14], ebx
jne 0x410dd6
mov edx, dword [esi + 0x44]
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x4c]
mov dword [esi + 0x14], edx
mov edx, dword [esi + 0x50]
mov dword [esi + 0x18], eax
xor ebx, ebx
mov dword [esi + 0x1c], ecx
mov cl, byte [esi + 0x43]
mov dword [esi + 0x54], ebx
mov dword [esi + 0x20], edx
lea eax, [esi + 4]
lea edi, [ebx + 0x10]
movzx edx, byte [eax + 0x10]
xor dl, byte [eax]
movzx ecx, cl
mov byte [eax + 0x20], dl
movzx edx, byte [eax + 0x40]
xor edx, ecx
movzx edx, byte [edx + str._.C]
xor byte [eax + 0x30], dl
mov cl, byte [eax + 0x30]
add eax, 1
sub edi, 1
jne 0x410d33
xor cl, cl
lea edi, [esi + 5]
nop
mov eax, edi
mov edx, 8
jmp 0x410d70
movzx ecx, cl
movzx ecx, byte [ecx + str._.C]
xor byte [eax - 1], cl
movzx ecx, byte [eax - 1]
movzx ecx, byte [ecx + str._.C]
xor byte [eax], cl
movzx ecx, byte [eax]
movzx ecx, byte [ecx + str._.C]
xor byte [eax + 1], cl
movzx ecx, byte [eax + 1]
movzx ecx, byte [ecx + str._.C]
xor byte [eax + 2], cl
movzx ecx, byte [eax + 2]
movzx ecx, byte [ecx + str._.C]
xor byte [eax + 3], cl
movzx ecx, byte [eax + 3]
movzx ecx, byte [ecx + str._.C]
xor byte [eax + 4], cl
mov cl, byte [eax + 4]
add eax, 6
sub edx, 1
jne 0x410d70
add cl, bl
add ebx, 1
cmp ebx, 0x12
jl 0x410d60
test ebp, ebp
jne 0x410cd2
pop edi
pop ebx
pop esi
pop ebp
ret 8

Function at 0x410ec0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x411f10
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x808
mov eax, dword [0x43fbfc]
xor eax, esp
mov dword [esp + 0x804], eax
mov eax, dword [esp + 0x80c]
push edi
mov edi, dword [esp + 0x818]
push 0x4377a4
push eax
lea eax, [esp + 0xc]
push eax
call fcn.0041aab2
add esp, 0xc
test eax, eax
je 0x411f62
xor eax, eax
pop edi
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.0041a1b8
add esp, 0x808
ret
mov ecx, dword [esp + 0x814]
push ebx
push esi
push ecx
push edi
call fcn.00411ca0
add esp, 8
xor ebx, ebx
jmp 0x411f80
mov edx, dword [esp + 0xc]
push edx
push 0x800
lea eax, [esp + 0x18]
push 1
push eax
call fcn.0041e4a8
mov esi, eax
push esi
lea ecx, [esp + 0x24]
push ecx
push edi
add ebx, esi
call fcn.00411cf0
add esp, 0x1c
cmp esi, 0x800
jge 0x411f80
mov edx, dword [esp + 0xc]
push edx
call fcn.0041a972
push edi
call fcn.00411e00
mov ecx, dword [esp + 0x818]
add esp, 8
pop esi
mov eax, ebx
pop ebx
pop edi
xor ecx, esp
call fcn.0041a1b8
add esp, 0x808
ret
Function at 0x412590
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret
Function at 0x415d30
Capabilities:
Hash data using sha256
Hash data using sha384
Hash data using sha512

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 0x100
push esi
push edi
mov edx, eax
ja 0x415d82
je 0x415d58
cmp eax, 0x20
je 0x415d5d
cmp eax, 0x30
je 0x415da9
cmp eax, 0x40
je 0x415d9d
pop edi
mov eax, 1
pop esi
ret
mov edx, 0x20
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax], ecx
lea edi, [eax + 8]
mov ecx, 8
mov esi, 0x4378c0
rep movsd dword es:[edi], dword [esi]
pop edi
mov dword [eax + 0xd0], edx
xor eax, eax
pop esi
ret
cmp eax, 0x180
je 0x415da4
cmp eax, 0x200
je 0x415d98
pop edi
mov eax, 1
pop esi
ret
mov edx, 0x40
mov esi, 0x437de0
jmp 0x415dae
mov edx, 0x30
mov esi, 0x437b60
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
lea edi, [eax + 0x10]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
pop edi
mov dword [eax + 0xd0], edx
xor eax, eax
pop esi
ret

Function at 0x415e90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
mov dword [edx], 0xffffffff
mov cl, byte [esi]
test cl, cl
je 0x415ecb
push edi
mov eax, dword [edx]
mov edi, eax
movzx ecx, cl
and edi, 0xff
xor edi, ecx
shr eax, 8
xor eax, dword [edi*4 + 0x43f438]
add esi, 1
mov dword [edx], eax
mov cl, byte [esi]
test cl, cl
jne 0x415ea6
pop edi
mov eax, dword [edx]
not eax
mov dword [edx], eax
xor eax, eax
pop esi
ret
Function at 0x41a1b8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43fbfc]
jne 0x41a1c2
repz ret
jmp fcn.0042124f
Function at 0x41e20c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x41e249
cmp dword [ebp + 0x14], edi
je 0x41e249
cmp ecx, edi
jne 0x41e250
call fcn.00422278
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0041e665
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x41e264
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x41e285
cmp ebx, 0xffffffff
je 0x41e274
push ebx
push edi
push ecx
call fcn.0041a540
add esp, 0xc
cmp esi, edi
je 0x41e231
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x41e231
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x41e2a1
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x41e2a8
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x41e399
test word [esi + 0xc], 0x10c
je 0x41e2fc
mov eax, dword [esi + 4]
test eax, eax
je 0x41e2fc
jl 0x41e3fa
cmp ebx, eax
mov edi, ebx
jb 0x41e2cd
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x41e3a1
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0041b359
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x41e391
cmp ebx, dword [ebp - 0xc]
jb 0x41e369
cmp dword [ebp - 0xc], 0
je 0x41e326
mov ecx, closesocket
xor edx, edx
cmp ebx, ecx
jbe 0x41e31b
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x41e322
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x41e331
mov eax, closesocket
cmp ebx, eax
ja 0x41e331
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x41e3cd
push eax
push dword [ebp - 8]
push esi
call fcn.004247d4
pop ecx
push eax
call fcn.0041c579
add esp, 0xc
test eax, eax
je 0x41e40c
cmp eax, 0xffffffff
je 0x41e3fa
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x41e391
push esi
call fcn.0042b1f5
cmp eax, 0xffffffff
pop ecx
je 0x41e3fe
cmp dword [ebp - 4], 0
je 0x41e3cd
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x41e2b0
mov eax, dword [ebp + 0x14]
jmp 0x41e24b
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x41e3b8
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0041a540
add esp, 0xc
call fcn.00422278
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x41e241
cmp dword [ebp + 0xc], 0xffffffff
je 0x41e3e3
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0041a540
add esp, 0xc
call fcn.00422278
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x41e241
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x41e24b
or dword [esi + 0xc], 0x10
jmp 0x41e3fe
Function at 0x421ebd
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x43fd68]
je 0x421ed8
inc edi
cmp edi, 0x17
jb 0x421ec9
cmp edi, 0x17
jae 0x422058
push ebp
push 3
call fcn.0042ea9f
cmp eax, 1
pop ecx
je 0x422024
push 3
call fcn.0042ea9f
test eax, eax
pop ecx
jne 0x421f0c
cmp dword [0x43fd40], 1
je 0x422024
cmp ebx, 0xfc
je 0x422057
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x442758
push ebp
call fcn.0041b0d5
add esp, 0xc
test eax, eax
je 0x421f42
push esi
push esi
push esi
push esi
push esi
call fcn.0041e569
add esp, 0x14
push 0x104
mov esi, 0x442771
push esi
push 0
mov byte [0x442875], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x421f86
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0041b0d5
add esp, 0xc
test eax, eax
je 0x421f86
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0041e569
add esp, 0x14
push esi
call fcn.0041f200
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x421fcb
push esi
call fcn.0041f200
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x442a6c
push 0x4392ec
sub ecx, eax
push ecx
push eax
call fcn.0041b13a
add esp, 0x14
test eax, eax
je 0x421fcb
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0041e569
add esp, 0x14
jmp 0x421fcd
xor esi, esi
push 0x4392e8
push ebx
push ebp
call fcn.0041b848
add esp, 0xc
test eax, eax
je 0x421fed
push esi
push esi
push esi
push esi
push esi
call fcn.0041e569
add esp, 0x14
push dword [edi*8 + 0x43fd6c]
push ebx
push ebp
call fcn.0041b848
add esp, 0xc
test eax, eax
je 0x42200f
push esi
push esi
push esi
push esi
push esi
call fcn.0041e569
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0042e8e2
add esp, 0xc
jmp 0x422057
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x422057
cmp ebp, 0xffffffff
je 0x422057
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x43fd6c]
push dword [esi]
call fcn.0041f200
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x42e8e2
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0042193e
xor ebx, ebx
cmp dword [0x442d64], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x42e9b8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x42ea98
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x439e64
push edi
call esi
cmp eax, ebx
je 0x42ea98
push eax
call fcn.004218d0
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x442d64], eax
call esi
push eax
call fcn.004218d0
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x442d68], eax
call esi
push eax
call fcn.004218d0
mov dword [0x442d6c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0041a297
test eax, eax
pop ecx
pop ecx
je 0x42e986
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041e569
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x42e9b8
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004218d0
cmp eax, ebx
pop ecx
mov dword [0x442d74], eax
je 0x42e9b8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004218d0
pop ecx
mov dword [0x442d70], eax
mov eax, dword [0x442d70]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x42ea3d
cmp dword [0x442d74], ecx
je 0x42ea3d
push eax
call fcn.00421947
push dword [0x442d74]
mov esi, eax
call fcn.00421947
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x42ea3d
cmp edi, ebx
je 0x42ea3d
call esi
cmp eax, ebx
je 0x42ea0a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42ea0a
test byte [ebp - 0x18], 1
jne 0x42ea3d
lea eax, [ebp - 0x10]
push eax
call fcn.0041a2ce
test eax, eax
pop ecx
je 0x42ea25
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041e569
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x42ea34
or dword [ebp + 0x10], 0x200000
jmp 0x42ea78
or dword [ebp + 0x10], 0x40000
jmp 0x42ea78
mov eax, dword [0x442d68]
cmp eax, dword [ebp - 8]
je 0x42ea78
push eax
call fcn.00421947
cmp eax, ebx
pop ecx
je 0x42ea78
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42ea78
mov eax, dword [0x442d6c]
cmp eax, dword [ebp - 8]
je 0x42ea78
push eax
call fcn.00421947
cmp eax, ebx
pop ecx
je 0x42ea78
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x442d64]
call fcn.00421947
cmp eax, ebx
pop ecx
je 0x42ea98
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42ea9a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4025ea
Capabilities:
Terminate process

Disassembly:
jmp 0x44643e
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x44644f
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00403a62
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x402685
Capabilities:
Query environment variable

Disassembly:
jmp 0x4510fe
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x45110f
pop esi
ret
push ebx
push edi
push esi
call fcn.00450fe5
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00402bc6
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x451137
push ebx
push esi
push edi
call fcn.00403922
add esp, 0xc
push 0
call fcn.00403f76
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x403990
Capabilities:
Parse pe header

Disassembly:
jmp 0x40b46a
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40b4a9
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40b4a9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40b4a9
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40b4a9
cmp dword [ecx + 0x74], 0xe
jbe 0x40b4a9
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4087c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], str.environment
mov eax, dword [ebp + 8]
push eax
push str.py__ls
push 0xffffffffffffffff
push 0x400
push 0x49a568
call fcn.00402680
add esp, 0x14
push 0x49a568
call fcn.00408940
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x408851
mov ecx, 2
imul edx, ecx, 0
movzx eax, word [edx + 0x49a158]
test eax, eax
je 0x408851
push 0x49a158
push 0x400
push 0x49a568
push 0
mov ecx, dword [ebp + 8]
push ecx
push str.defaults
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x408851
mov dword [ebp - 4], 0x49a568
mov dword [ebp - 8], 0x49a158
cmp dword [ebp - 4], 0
jne 0x4088a1
mov edx, 2
imul eax, edx, 0
movzx ecx, word [eax + 0x49a360]
test ecx, ecx
je 0x4088a1
push 0x49a360
push 0x400
push 0x49a568
push 0
mov edx, dword [ebp + 8]
push edx
push str.defaults
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x4088a1
mov dword [ebp - 4], 0x49a568
mov dword [ebp - 8], 0x49a360
cmp dword [ebp - 4], 0
je 0x4088d7
cmp dword [ebp - 8], 0
je 0x4088b5
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
jmp 0x4088bc
mov dword [ebp - 0x10], 0x471880
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
push str.found_configured_value__ls_ls_in__ls_n
call fcn.00408160
add esp, 0x10
jmp 0x4088e8
mov ecx, dword [ebp + 8]
push ecx
push str.found_no_configured_value_for__ls_n
call fcn.00408160
add esp, 8
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x408940
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x100
push 0x47ff40
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x100
jb 0x4089a5
mov ecx, dword [ebp - 4]
lea edx, [ecx + ecx + 2]
push edx
call fcn.0040133e
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40898e
push str.Could_not_allocate_environment_buffer
push 0x68
call fcn.004081d0
add esp, 8
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [ebp - 8]
jmp 0x4089b4
cmp dword [ebp - 4], 0
jne 0x4089af
xor eax, eax
jmp 0x4089b4
mov eax, 0x47ff40
mov esp, ebp
pop ebp
ret