joyce8/EMBER2024-capa huggingface dataset:
Function at 0x89002c
Capabilities:
Packed with generic packer

Disassembly:
clc
jae 0x890034
push ebx
and ebp, dword [eax + 0x28]
pushal
jae 0x890040
inc edx
jbe 0x89005e
cmpsd dword [esi], dword es:[edi]
daa
jg 0x890060
movsd dword es:[edi], dword [esi]
mov eax, ebp
call 0x89004f
or al, byte [eax]
add byte [eax], al
out 0x47, al
pop ss
shl dword [ebx + 0x2a04a9c8], 0x85
pop esi
jmp 0x890058
add esi, 0xffffffbb
jmp 0x890067
popal
outsd dx, dword [esi]
pop edi
hlt
cmp dword [esi], 0
clc
jae 0x890081
invalid
je 0x8901fb
jae 0x89009d
cld
sub byte [eax], bh
jg 0x890041
lodsd eax, dword [esi]
int1
mov esp, 0xb1fce704
and eax, 0x26f3d7c6
stosd dword es:[edi], eax
mov ch, 0xf9
mov ecx, esi
jmp 0x8900a7
add esi, 4
jmp 0x8900c8
mov eax, dword [esi]
jmp 0x8900eb
add eax, esi
clc
jmp 0x890115
mov edx, dword [esi + 4]
jmp 0x89012e
sub dword [eax], 0xa2f7ef66
jmp 0x89014b
add eax, 4
jmp 0x890157
sub edx, 1
stc
jmp 0x89016e
jne 0x890118
jb 0x8901a0
std
pop ss
push esp
xor byte [ebp + 0x68], dl
wait
ljmp 0x1cb8
add esi, 8
jmp 0x8901af
sub dword [ecx], 1
stc
jb 0x8901d2
clc
and ebp, ebx
sub dl, byte [edi]
test eax, 0x8966c830
xchg edi, eax
mov ebx, 0x801e9259
xor al, 0xbc
stosb byte es:[edi], al
add byte [ebx + 0x6fab434a], dl
pop edx
pop edi
mov cl, 0xf
test edx, edx
invalid
jne 0x8900aa
clc
jmp 0x8901eb
mov ebx, esi
jmp 0x8901f6
call fcn.00890240
jmp 0x890220
popal
jmp 0x89023b
jmp 0x46f8e7
Function at 0x48c820
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4720e8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x47e66c]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
push 0x19
push 0x40404c
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
call fcn.0048b8f0
lea eax, [esp + 4]
push eax
push 6
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.0048c150
cmp dword [esp + 0x1c], 0x10
jb 0x48c892
mov ecx, dword [esp + 8]
push ecx
call 0x4d6657
add esp, 4
mov eax, esi
mov dword [esi], 0x405118
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
add esp, 0x28
ret

Function at 0x48cab0
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x475f98
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
mov eax, dword [0x47e66c]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [esp + 0x34]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], 0
call fcn.0049a8a0
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 0
call fcn.0049d270
push eax
mov ecx, edi
call fcn.0049a8a0
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
add esi, esi
add esi, esi
push esi
push 0
push eax
mov ebx, eax
call 0x4d6b40
add esp, 0xc
push ebx
cmp esi, 0x10
jb 0x48cb2e
call 0x4d6ce5
jmp 0x48cb33
call 0x4d6bba
mov eax, edi
add esp, 4
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x24
ret 8
Function at 0x49dac0
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x475431
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x47e66c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x30], 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], 0
call fcn.0049a770
mov ebx, 1
mov dword [esp + 0x30], ebx
mov edi, dword [esp + 0x38]
mov ecx, edi
call fcn.0049a770
mov eax, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
mov edx, edi
mov dword [esp + 0x18], ebx
call fcn.0049d790
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
add esi, esi
add esi, esi
push esi
push 0
push ebx
call 0x4d6b40
add esp, 0x14
push ebx
cmp esi, 0x10
jb 0x49db51
call 0x4d6ce5
jmp 0x49db56
call 0x4d6bba
mov eax, edi
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret 8

Function at 0x49db70
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4753f1
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x47e66c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x10], ebx
mov edi, dword [esp + 0x38]
mov ecx, edi
call fcn.0049a770
mov dword [esp + 0x30], ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], 1
call fcn.0049a770
mov eax, dword [esp + 0x3c]
push eax
push edi
mov ecx, esi
lea edx, [esp + 0x1c]
mov dword [esp + 0x38], 1
call fcn.0049d790
mov esi, dword [esp + 0x24]
add esi, esi
add esi, esi
push esi
push ebx
mov ebx, dword [esp + 0x30]
push ebx
call 0x4d6b40
add esp, 0x14
push ebx
cmp esi, 0x10
jb 0x49dbff
call 0x4d6ce5
jmp 0x49dc04
call 0x4d6bba
mov eax, edi
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret 8

Function at 0x4a0bc0
Capabilities:
Hash data using sha1

Disassembly:
push 0xffffffffffffffff
push 0x472b40
mov eax, dword fs:[0]
push eax
mov eax, dword [0x47e66c]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov eax, ecx
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0x58], 0x10
lea ecx, [eax + 0x10]
mov dword [ecx + 0x4c], ecx
mov dl, 1
mov byte [ecx + 0x41], dl
lea ecx, [eax + 0x60]
mov dword [ecx + 0x48], 0x10
mov byte [ecx + 0x41], dl
mov dword [ecx + 0x4c], ecx
mov ecx, dword [eax + 0xac]
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0xc3d2e1f0
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret
Function at 0x4a0f20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x472d61
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x47e66c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0x403ff0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 1
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 1
call fcn.004a1950
mov esi, dword [esp + 0x28]
push eax
mov ecx, esi
call fcn.0048c3d0
mov byte [esp + 0x20], 0
mov ecx, dword [esp + 0x10]
mov dword [esp + 8], 1
test ecx, ecx
je 0x4a0faa
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x1c
ret

Function at 0x4a1690
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x473818
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x47e66c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov dword [esp + 0xc], 0
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x1c], 0
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push 0x4802f8
push edx
call eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
call fcn.0049a8a0
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
add esi, esi
add esi, esi
push esi
push 0
push eax
mov ebx, eax
call 0x4d6b40
add esp, 0xc
push ebx
cmp esi, 0x10
jb 0x4a170c
call 0x4d6ce5
jmp 0x4a1711
call 0x4d6bba
mov eax, edi
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret 0x18

Function at 0x4a2660
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4720e8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x47e66c]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
push 0x10
push 0x405550
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
call fcn.0048b8f0
lea eax, [esp + 4]
push eax
push 1
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.0048c150
cmp dword [esp + 0x1c], 0x10
mov dword [esi], 0x40130c
jb 0x4a26d8
mov ecx, dword [esp + 8]
push ecx
call 0x4d6657
add esp, 4
mov eax, esi
mov dword [esi], 0x4055a0
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
add esp, 0x28
ret
Function at 0x405104
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405119
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40512b
xor eax, eax
jmp 0x40515d
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40514f
cmp esi, eax
jae 0x405127
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x405141
cmp esi, eax
jae 0x405127
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x405f5a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x405fad
call fcn.00438a49
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x405fad
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x405fa3
xor eax, eax
jmp 0x4060c2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x405fdc
mov eax, dword [edi]
push ebx
push dword [ebp - 4]
mov ecx, edi
push dword [ebp + 8]
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x405fdc
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x48]
test eax, eax
je 0x4060bf
mov edi, dword [eax + 0x40]
and dword [ebp + 0x10], 0
xor eax, eax
cmp edi, eax
mov dword [ebp + 0xc], edi
mov dword [ebp - 8], edi
je 0x40600b
mov ecx, dword [edi]
mov dword [ebp + 0xc], ecx
mov ecx, dword [edi + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x10], ecx
cmp dword [ebx + 8], eax
mov dword [ebp - 4], eax
jbe 0x4060bf
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x406049
mov ecx, dword [ecx + 4]
mov edx, dword [ebx + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x406049
test edi, edi
mov dword [ebp - 8], edi
je 0x406043
mov eax, dword [edi]
mov dword [ebp + 0xc], eax
mov eax, dword [edi + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x10], eax
jmp 0x4060af
and dword [ebp + 0x10], 0
jmp 0x4060af
mov ecx, dword [ebx + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x4060af
push 0xc
call fcn.00423cb1
mov esi, eax
test esi, esi
pop ecx
je 0x40608e
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ebx + 0xc]
mov edx, dword [ebp - 0x10]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0xc]
mov dword [esi], eax
jmp 0x406090
xor esi, esi
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x4060aa
push dword [ebp - 8]
call fcn.0041dfa4
jmp 0x4060af
call fcn.0041df7b
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [ebx + 8]
mov dword [ebp - 4], eax
jb 0x406017
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40f072
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x449578
call fcn.00413c98
mov edi, 0x94
mov eax, edi
call fcn.0040efd0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x45c354], ecx
mov eax, dword [esi + 4]
mov dword [0x45c360], eax
mov edx, dword [esi + 8]
mov dword [0x45c364], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x45c358], esi
cmp ecx, 2
je 0x40f0d2
or esi, 0x8000
mov dword [0x45c358], esi
shl eax, 8
add eax, edx
mov dword [0x45c35c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40f10d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40f10d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40f125
cmp eax, 0x20b
je 0x40f112
mov dword [ebp - 0x1c], esi
jmp 0x40f139
cmp dword [ecx + 0x84], 0xe
jbe 0x40f10d
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40f133
cmp dword [ecx + 0x74], 0xe
jbe 0x40f10d
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00413e61
pop ecx
test eax, eax
jne 0x40f14d
push 0x1c
call fcn.0040f04e
pop ecx
call fcn.00411a8e
test eax, eax
jne 0x40f15e
push 0x10
call fcn.0040f04e
pop ecx
call fcn.00415362
mov dword [ebp - 4], esi
call fcn.00415164
test eax, eax
jge 0x40f177
push 0x1b
call fcn.0040f029
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x45dbb0], eax
call fcn.00415042
mov dword [0x45c344], eax
call fcn.00414fa0
test eax, eax
jge 0x40f19d
push 8
call fcn.0040f029
pop ecx
call fcn.00414d6d
test eax, eax
jge 0x40f1ae
push 9
call fcn.0040f029
pop ecx
call fcn.0040fbc7
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x40f1c1
push eax
call fcn.0040f029
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00414d04
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x40f1e2
movzx eax, word [ebp - 0x34]
jmp 0x40f1e5
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.0041c818
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40f203
push edi
call fcn.0040fcff
call fcn.0040fd21
jmp 0x40f235
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00413cd3
ret
Function at 0x417f68
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x459198]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x417f91
xor eax, eax
jmp 0x4180ff
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x45d840]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x417fc4
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.0041aef8
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x418096
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x4180d1
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x41801f
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x418010
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x417ff3
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41805f
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x418068
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x417fe4
jmp 0x41806a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x4180fa
cmp dword [ebp - 8], edi
je 0x4180d1
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x4180c3
call fcn.004110ad
mov dword [eax], 9
call fcn.004110b6
mov dword [eax], esi
jmp 0x4180cc
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4180b8
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x41806a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x41806a
push dword [ebp - 8]
call fcn.004110bf
pop ecx
or eax, 0xffffffff
jmp 0x4180fd
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4180e6
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x4180e6
xor eax, eax
jmp 0x4180fd
call fcn.004110ad
mov dword [eax], 0x1c
call fcn.004110b6
mov dword [eax], edi
jmp 0x4180cc
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.0040f275
leave
ret
Function at 0x4198a3
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x45c730], ebx
push esi
push edi
jne 0x419923
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41995e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44ddb4
push edi
call esi
test eax, eax
mov dword [0x45c730], eax
je 0x41995e
push 0x44dda4
push edi
call esi
push 0x44dd90
push edi
mov dword [0x45c734], eax
call esi
cmp dword [0x45c354], 2
mov dword [0x45c738], eax
jne 0x419923
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x45c740], eax
je 0x419923
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x45c73c], eax
mov eax, dword [0x45c73c]
test eax, eax
je 0x419968
call eax
test eax, eax
je 0x41994f
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x45c740]
test eax, eax
je 0x41994f
test byte [ebp - 8], 1
jne 0x419968
cmp dword [0x45c360], 4
jb 0x419962
or byte [ebp + 0x12], 0x20
jmp 0x419987
xor eax, eax
jmp 0x419997
or byte [ebp + 0x12], 4
jmp 0x419987
mov eax, dword [0x45c734]
test eax, eax
je 0x419987
call eax
mov ebx, eax
test ebx, ebx
je 0x419987
mov eax, dword [0x45c738]
test eax, eax
je 0x419987
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x45c730]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x419d3e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040efd0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x419dd3
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x45c354]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x419dd3
cmp eax, 1
je 0x419deb
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x419dd3
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x419da8
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x419dcf
xor eax, eax
inc eax
jmp 0x419e07
cmp esi, ebx
jae 0x419dd7
xor eax, eax
jmp 0x419e07
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x45c354]
jmp 0x419ded
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41b709
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x41b8cf
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x45d840]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x41b8cf
test cl, 0x48
je 0x41b76f
mov al, byte [eax + 5]
cmp al, 0xa
je 0x41b76f
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41b7c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x41b7a9
call fcn.004110ad
mov dword [eax], 9
call fcn.004110b6
mov dword [eax], esi
jmp 0x41b7b9
cmp eax, 0x6d
je 0x41b8cf
push eax
call fcn.004110bf
pop ecx
or eax, 0xffffffff
jmp 0x41b8d1
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x41b8ca
test edx, edx
je 0x41b7e4
cmp byte [ebx], 0xa
jne 0x41b7e4
or al, 4
jmp 0x41b7e6
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x41b8c4
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x41b8b4
cmp al, 0xd
je 0x41b81a
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x41b8a6
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x41b834
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x41b82f
add dword [ebp + 0x10], 2
jmp 0x41b888
mov dword [ebp + 0x10], eax
jmp 0x41b8a2
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41b85c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41b8a2
cmp dword [ebp - 0xc], 0
je 0x41b8a2
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x41b87d
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x41b888
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x41b8a5
cmp ebx, dword [ebp + 0xc]
jne 0x41b88d
cmp byte [ebp - 1], 0xa
jne 0x41b88d
mov byte [ebx], 0xa
jmp 0x41b8a5
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00417e49
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x41b8a6
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x41b7fe
jmp 0x41b8c4
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x41b8c4
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x41b8d1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret