joyce8/EMBER2024-capa huggingface dataset:
Function at 0x486e3b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 8
mov eax, dword [0x53dd1c]
mov edx, dword [0x53dd18]
cmp eax, edx
jbe 0x486e96
call fcn.0048682e
push eax
push dword [ebp + 8]
call fcn.0045adbb
push dword [ebp + 8]
call fcn.00486ddf
mov eax, dword [0x53dd14]
mov dword [ebp - 0xc], eax
xor eax, eax
push eax
push 0x4000000
call fcn.00486a5e
mov eax, dword [0x53dd1c]
sub eax, 0x14
mov dword [0x53dd1c], eax
mov eax, dword [ebp - 0xc]
mov dword [0x53dd14], eax
mov eax, dword [0x53dd1c]
mov edx, dword [0x53dd18]
cmp eax, edx
jne 0x486ed5
mov eax, dword [0x53dd1c]
mov eax, dword [eax]
mov edx, eax
mov eax, 0xf000000
and eax, edx
cmp eax, 0x4000000
je 0x486ed5
mov eax, dword [0x53dd1c]
mov eax, dword [eax]
mov edx, eax
mov eax, 0xf000000
and eax, edx
cmp eax, 0x5000000
je 0x486ed5
jmp 0x486ed9
xor eax, eax
jmp 0x486edc
xor eax, eax
inc eax
cmp eax, 0
je 0x486efe
push dword [ebp + 8]
call fcn.00487644
xor eax, eax
push eax
call fcn.00476277
push 0xfffffffffffffffe
call dword [sym.imp.MSVCRT.DLL_exit]
add esp, 4
push dword [ebp + 8]
call fcn.004876f3
mov eax, 0x7fffffff
jmp 0x486f0e
leave
cmp dword [ebp - 4], eax
jb 0x486f0d
mov edx, eax
mov eax, dword [0x51502c]
mov dword [eax + 0x24], edx
mov edi, dword [ebp - 8]
cmp edi, 0
je 0x486f2a
jmp edi
pop edi
cmp edi, 0
je 0x486f32
jmp edi
leave
ret 4
Function at 0x492764
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x10
mov eax, 0x54a834
mov dword [ebp - 0x14], str.0000000000000000000000000000000
mov eax, dword [ebp + 0x10]
sar eax, 1
mov edx, eax
mov eax, dword [ebp + 0xc]
mov cl, dl
shl eax, cl
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
cmp eax, 0x1f
jle 0x4927b2
mov eax, dword [ebp + 0xc]
inc eax
sar eax, 2
inc eax
shl eax, 2
sub esp, eax
and esp, 0xfffffffc
mov eax, esp
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.004429fd
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
and edx, 0xff
cmp eax, 0x27
je 0x492807
mov eax, dword [ebp - 0xc]
and edx, 0xff
cmp eax, 0x2c
jne 0x4927f7
mov eax, 0x2e
and eax, 0xff
mov dword [ebp - 0xc], 0x2e
mov eax, dword [ebp - 0xc]
xchg edx, eax
mov eax, dword [ebp - 0x14]
mov byte [eax], dl
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
add eax, edx
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
cmp eax, edx
jne 0x4927b8
mov al, 0
xchg edx, eax
mov eax, dword [ebp - 0x14]
mov byte [eax], dl
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp + 0xc]
add eax, edx
push eax
push dword [ebp - 0x18]
call fcn.0048e438
xor al, 1
cmp eax, 0
je 0x49285e
mov eax, 0xffffffff
xchg edx, eax
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
push 0x7ff80000
push 0
fld qword [esp]
add esp, 8
jmp 0x49286c
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp - 0x18]
call fcn.00441fb4
leave
ret 0x10

Function at 0x492f1c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov edx, eax
mov eax, 0xffffffff
cmp eax, edx
setne al
xor ah, ah
cwde
leave
ret 4

Function at 0x492f5a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 8
mov eax, 0
mov dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov dword [ebp - 0x10], eax
mov eax, 0
mov edx, dword [ebp - 0x10]
cmp eax, edx
jne 0x492f9b
mov eax, 0xffffffff
jmp 0x492f9e
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
leave
ret 0xc

Function at 0x492fa8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 8
mov eax, 0
mov dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov dword [ebp - 0x10], eax
mov eax, 0
mov edx, dword [ebp - 0x10]
cmp eax, edx
jne 0x492fe9
mov eax, 0xffffffff
jmp 0x492fec
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
leave
ret 0xc
Function at 0x49a42a
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0xe4
push 8
call fcn.00487685
push eax
call fcn.004543ba
mov dword [ebp - 0xc], eax
call fcn.00487685
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov eax, dword [eax]
add eax, 0x14
mov dword [ebp - 0x10], eax
mov eax, 0x9c
xchg edx, eax
lea eax, [ebp - 0xb4]
mov dword [eax], edx
mov eax, 0
xchg edx, eax
lea eax, [ebp - 0xb4]
mov dword [eax + 0x14], edx
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
lea eax, [ebp - 0xb4]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xe8], eax
lea eax, [ebp - 0xb4]
mov al, byte [eax + 0x9a]
cmp al, 1
setne al
xor ah, ah
cwde
mov dword [ebp - 0xec], eax
push 0
push dword [ebp - 0x18]
push 8
push str.Windows
call fcn.004441d1
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xb4]
mov eax, dword [eax + 4]
cmp eax, 5
je 0x49a575
cmp eax, 6
je 0x49a5d0
mov eax, dword [ebp - 0xec]
cmp eax, 0
je 0x49a542
mov eax, dword [ebp - 0xe8]
cmp eax, 0x4f3d
jl 0x49a512
mov eax, str.Server_2022
jmp 0x49a540
mov eax, dword [ebp - 0xe8]
cmp eax, 0x42ee
jl 0x49a526
mov eax, str.Server_2019
jmp 0x49a540
xor eax, eax
inc eax
je 0x49a532
mov eax, str.Server_2016
jmp 0x49a540
call fcn.0049a537
mov eax, dword [ebp - 0xe8]
cmp eax, 0x55f0
jl 0x49a556
mov eax, 0x54aab4
jmp 0x49a570
xor eax, eax
inc eax
je 0x49a562
mov eax, 0x54aab7
jmp 0x49a570
call fcn.0049a567
lea eax, [ebp - 0xb4]
mov eax, dword [eax + 8]
cmp eax, 0
je 0x49a5a4
cmp eax, 1
je 0x49a5ab
cmp eax, 2
je 0x49a5b2
call fcn.0049a59b
mov eax, 0x54aa2e
jmp 0x49a5cb
mov eax, dword [ebp - 0xec]
cmp eax, 0
je 0x49a5c6
mov eax, str.Server_2003_R2
jmp 0x49a5cb
mov eax, str.Server_2003
lea eax, [ebp - 0xb4]
mov eax, dword [eax + 8]
cmp eax, 0
je 0x49a606
cmp eax, 1
je 0x49a621
cmp eax, 2
je 0x49a63c
cmp eax, 3
je 0x49a657
call fcn.0049a5fd
mov eax, dword [ebp - 0xec]
cmp eax, 0
je 0x49a635
mov eax, str.Server_2008_R1
jmp 0x49a63a
mov eax, 0x54aa6d
jmp 0x49a670
mov eax, dword [ebp - 0xec]
cmp eax, 0
je 0x49a650
mov eax, str.Server_2012
jmp 0x49a655
mov eax, 0x54aa7b
jmp 0x49a670
mov eax, dword [ebp - 0xec]
cmp eax, 0
je 0x49a66b
mov eax, str.Server_2012_R2
jmp 0x49a670
mov eax, 0x54aa8c
Function at 0x500507
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.DLL_exit]
add esp, 4
leave
ret 4

Function at 0x50192b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x18
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0xff
cmp eax, 0xf
je 0x501959
cmp eax, 5
je 0x501990
mov dword [ebp - 0x20], 0
jmp 0x501a45
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
push eax
call fcn.0044b276
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
push eax
call fcn.0044b276
pop edx
xchg edx, eax
cmp eax, edx
sete al
xor ah, ah
cwde
mov dword [ebp - 0x20], eax
jmp 0x501a45
mov dword [ebp - 0x20], 0
push dword [ebp + 8]
call fcn.0043d9e6
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
call fcn.0043da1c
mov dword [ebp - 0x14], eax
jmp 0x501a1b
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
and eax, 0xff
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, 0xf
je 0x5019d4
mov eax, dword [ebp - 0x1c]
cmp eax, 0x11
je 0x5019d4
xor eax, eax
jmp 0x5019d7
xor eax, eax
inc eax
cmp eax, 0
je 0x501a10
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
push eax
call fcn.0044b276
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
push eax
call fcn.0044b276
pop edx
xchg edx, eax
cmp eax, edx
sete al
xor ah, ah
cwde
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x20]
xor al, 1
cmp eax, 0
je 0x501a33
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
cmp eax, edx
jae 0x501a33
jmp 0x501a37
xor eax, eax
jmp 0x501a3a
xor eax, eax
inc eax
cmp eax, 0
jne 0x5019af
mov eax, dword [0x53dd0c]
mov dword [ebp - 0x18], eax
mov eax, 4
xchg edx, eax
mov eax, dword [ebp - 0x18]
mov dword [eax], edx
mov eax, dword [ebp - 0x20]
xchg edx, eax
mov eax, dword [ebp - 0x18]
mov dword [eax + 4], edx
leave
ret 8

Function at 0x502438
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x14
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0xff
cmp eax, 5
je 0x502466
cmp eax, 0xf
je 0x502494
mov eax, 0
jmp 0x5026db
push dword [ebp + 8]
call fcn.0043d9e6
mov dword [ebp - 0xc], eax
push dword [ebp + 8]
call fcn.0043d912
mov dword [ebp - 0x10], eax
mov eax, 0
mov edx, dword [ebp - 0x10]
cmp eax, edx
jne 0x502492
mov eax, 0
jmp 0x5026db
jmp 0x5024a6
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, 1
mov dword [ebp - 0x10], 1
mov eax, 0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x10]
cmp eax, 0
jle 0x5026d8
Function at 0x50477c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x28
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0xc], 0
mov eax, 1
mov dword [ebp - 0x28], 1
mov eax, 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [0x5489f8]
dec eax
mov edx, eax
mov eax, dword [0x5489f4]
add eax, edx
mov dword [ebp - 0x30], eax
jmp 0x50493a
call fcn.005042e0
xor al, 1
cmp eax, 0
je 0x5047dc
jmp 0x504943
mov eax, dword [0x5489f4]
mov edi, dword [0x5489f8]
dec edi
mov al, byte [eax + edi]
mov byte [ebp - 0x2c], al
mov al, byte [ebp - 0x2c]
cmp al, 0x3c
jne 0x504801
mov dword [ebp - 0xc], 1
jmp 0x50493a
mov al, byte [ebp - 0x2c]
cmp al, 0x30
jb 0x504811
mov al, byte [ebp - 0x2c]
cmp al, 0x39
ja 0x504811
jmp 0x504815
xor eax, eax
jmp 0x504818
xor eax, eax
inc eax
cmp eax, 0
je 0x50484a
mov eax, dword [ebp - 0x10]
push edx
mov edx, 0xa
mov ecx, edx
imul ecx
pop edx
mov dword [ebp - 0x10], eax
mov al, byte [ebp - 0x2c]
sub al, 0x30
mov edx, eax
mov eax, dword [ebp - 0x10]
and edx, 0xff
add eax, edx
mov dword [ebp - 0x10], eax
jmp 0x50493a
mov al, byte [ebp - 0x2c]
cmp al, 0x3b
jne 0x504872
mov eax, dword [ebp - 0x10]
xchg edx, eax
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
dec edi
mov dword [eax + edi*4], edx
mov eax, 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
mov al, byte [ebp - 0x2c]
cmp al, 0x40
jb 0x504890
mov al, byte [ebp - 0x2c]
cmp al, 0x7e
ja 0x504890
mov al, byte [ebp - 0x2c]
cmp al, 0x3c
je 0x504890
mov al, byte [ebp - 0x2c]
cmp al, 0x5b
je 0x504890
jmp 0x504894
xor eax, eax
jmp 0x504897
xor eax, eax
inc eax
cmp eax, 0
je 0x50492e
mov eax, dword [ebp - 0x10]
xchg edx, eax
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
dec edi
mov dword [eax + edi*4], edx
mov eax, 0
mov dword [ebp - 0x10], 0
mov al, byte [ebp - 0x2c]
cmp al, 0x4d
je 0x5048e5
cmp al, 0x6d
je 0x5048fe
cmp al, 0x52
je 0x504917
mov eax, dword [0x5489f8]
dec eax
mov edx, eax
mov eax, dword [0x5489f4]
add eax, edx
push eax
push dword [ebp - 0x30]
call fcn.0050451b
jmp 0x504929
mov eax, dword [ebp - 0x28]
cmp eax, 3
jne 0x5048fc
push dword [ebp - 0x24]
push 0
push dword [ebp - 0xc]
call fcn.00504311
jmp 0x504929
mov eax, dword [ebp - 0x28]
cmp eax, 3
jne 0x504915
push dword [ebp - 0x24]
push 1
push dword [ebp - 0xc]
call fcn.00504311
jmp 0x504929
mov eax, dword [ebp - 0x28]
cmp eax, 2
jne 0x504929
push dword [ebp - 0x24]
call fcn.005044f6
jmp 0x504943
mov al, byte [ebp - 0x2c]
cmp al, 0x1b
jne 0x50493a
jmp 0x504943
xor eax, eax
inc eax
jne 0x5047c9
leave
ret
Function at 0x507d17
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x24
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add eax, edx
mov dword [ebp + 8], eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004429fd
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
and edx, 0xff
cmp eax, 0x5b
je 0x507d54
mov eax, 0
jmp 0x508647
mov eax, 1
mov dword [ebp - 0x10], 1
mov eax, 1
mov dword [ebp - 0x14], 1
mov eax, 0
mov dword [ebp - 0x18], 0
mov eax, 0
mov dword [ebp - 0x1c], 0
mov eax, 0
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add eax, edx
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
Function at 0x51312a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x10
mov eax, 0
mov dword [ebp - 0x18], 0
push 0
lea eax, [ebp - 0x18]
push eax
push 1
push dword [0x548e38]
push dword [0x515008]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov edx, eax
mov eax, 0
cmp eax, edx
jne 0x51316f
mov eax, 0xffffffff
jmp 0x5132b1
mov eax, dword [0x548e38]
mov al, byte [eax]
and eax, 0xff
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
and eax, 0x80
cmp eax, 0
jne 0x51319b
mov eax, 1
mov dword [ebp - 0x14], 1
jmp 0x513200
mov eax, dword [ebp - 0x10]
and eax, 0xe0
cmp eax, 0xc0
jne 0x5131b8
mov eax, 2
mov dword [ebp - 0x14], 2
jmp 0x513200
mov eax, dword [ebp - 0x10]
and eax, 0xf0
cmp eax, 0xe0
jne 0x5131d5
mov eax, 3
mov dword [ebp - 0x14], 3
jmp 0x513200
mov eax, dword [ebp - 0x10]
and eax, 0xf8
cmp eax, 0xf0
jne 0x5131f2
mov eax, 4
mov dword [ebp - 0x14], 4
jmp 0x513200
call fcn.005131f7
Function at 0x5136db
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x18
push 0
call dword [sym.imp.MSVCRT.DLL_fflush]
add esp, 4
mov eax, dword [ebp + 0xc]
push edx
mov edx, dword [0x548e90]
mov ecx, edx
cdq
idiv ecx
pop edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push edx
mov edx, dword [0x548e90]
mov ecx, edx
cdq
idiv ecx
mov eax, edx
bt eax, 0x1f
jae 0x513724
bt ecx, 0x1f
jae 0x513722
neg ecx
add eax, ecx
pop edx
mov dword [ebp - 0xc], eax
push dword [ebp + 8]
call fcn.005139ba
cmp eax, 0
je 0x51374a
mov eax, dword [0x548e90]
mov edx, dword [ebp - 0xc]
sub eax, edx
cmp eax, 1
jne 0x51374a
jmp 0x51374e
xor eax, eax
jmp 0x513751
xor eax, eax
inc eax
cmp eax, 0
je 0x51376b
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
mov eax, 0
mov dword [ebp - 0xc], 0
mov eax, 0
mov edx, dword [ebp - 0xc]
cmp eax, edx
jne 0x513783
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
cmp eax, edx
jne 0x513783
jmp 0x513787
xor eax, eax
jmp 0x51378a
xor eax, eax
inc eax
cmp eax, 0
je 0x5137b6
mov eax, 0
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
push 1
push 0x54aef8
push dword [0x515004]
call dword [sym.imp.KERNEL32.DLL_WriteConsoleW]
mov eax, dword [0x548ea8]
and eax, 0xffff
mov dword [ebp - 0x1c], eax
mov eax, dword [0x548ea8]
shr eax, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
add eax, edx
shl eax, 0x10
mov edx, dword [ebp - 0xc]
or eax, edx
push eax
push dword [0x515004]
call dword [sym.imp.KERNEL32.DLL_SetConsoleCursorPosition]
mov eax, dword [ebp + 0x10]
push edx
mov edx, dword [0x548e90]
mov ecx, edx
cdq
idiv ecx
pop edx
inc eax
mov dword [ebp - 0x20], eax
mov eax, dword [0x548e94]
mov edx, dword [ebp - 0x18]
sub eax, edx
mov edx, eax
mov eax, dword [ebp - 0x20]
sub eax, edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp eax, 0
jle 0x51384e
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
sub eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp eax, 0
jge 0x51383e
mov eax, 0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
shl eax, 0x10
mov edx, dword [ebp - 0x1c]
or eax, edx
mov dword [0x548ea8], eax
mov eax, dword [ebp + 0x10]
push edx
mov edx, dword [0x548e90]
mov ecx, edx
cdq
idiv ecx
pop edx
mov edx, eax
mov eax, dword [ebp - 0x18]
add eax, edx
mov dword [0x548e3c], eax
leave
ret 0xc
Function at 0x513d37
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0xc
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
and eax, 0x1f
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, 2
jge 0x513d72
mov eax, 2
mov dword [ebp - 0xc], 2
push dword [ebp + 8]
call fcn.004425f7
push eax
push dword [ebp + 0xc]
call fcn.004425f7
pop edx
xchg edx, eax
add eax, edx
push eax
push dword [ebp - 0xc]
pop eax
bsr eax, eax
pop edx
xchg edx, eax
mov cl, dl
shl eax, cl
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
shl eax, 2
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [0x548e8c]
cmp eax, edx
jle 0x513e14
mov eax, dword [ebp - 0x14]
shl eax, 1
mov dword [0x548e8c], eax
push dword [0x548e44]
call dword [sym.imp.MSVCRT.DLL_free]
add esp, 4
push dword [0x548e8c]
call dword [sym.imp.MSVCRT.DLL_malloc]
add esp, 4
mov dword [0x548e44], eax
mov eax, 0
mov edx, dword [0x548e44]
cmp eax, edx
jne 0x513e14
push 0
push dword [ebp - 0x14]
push 2
push 0
push str.Cannot_allocate_memory:_init_buffer:
push 6
push 0x18
lea esi, [esp + 4]
push esi
push 2
call fcn.004219c6
push 0
call dword [sym.imp.MSVCRT.DLL_exit]
add esp, 4
mov eax, dword [0x548e44]
mov dword [0x548e48], eax
leave
ret 8

Function at 0x514cd4
Capabilities:
Set console window title
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 8
push dword [ebp + 8]
call fcn.00442639
push eax
call dword [sym.imp.KERNEL32.DLL_SetConsoleTitleA]
mov dword [ebp - 0xc], eax
mov eax, 0
mov edx, dword [ebp - 0xc]
cmp eax, edx
jne 0x514d1e
push 0
push str.SetConsoleTitle_failed_
push 6
push 0xc
lea esi, [esp + 4]
push esi
push 1
call fcn.004219c6
push 0
call dword [sym.imp.MSVCRT.DLL_exit]
add esp, 4
call fcn.005138d6
call fcn.00513999
push 5
push dword [0x54798c]
call fcn.0044c49f
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov edx, eax
mov eax, 0
cmp eax, edx
je 0x514d64
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov edx, eax
mov eax, 0
cmp eax, edx
je 0x514d64
xor eax, eax
jmp 0x514d67
xor eax, eax
inc eax
cmp eax, 0
je 0x514d8c
mov eax, 0x50
xchg edx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], edx
mov eax, 0x32
xchg edx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xc], edx
leave
ret 4
Function at 0x401030
Capabilities:
Enumerate files on windows
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4b22cd
mov eax, dword fs:[0]
push eax
sub esp, 0x69c
mov eax, dword [0x4f4930]
xor eax, esp
mov dword [esp + 0x698], eax
push esi
push edi
mov eax, dword [0x4f4930]
xor eax, esp
push eax
lea eax, [esp + 0x6a8]
mov dword fs:[0], eax
push 0x24c
lea eax, [esp + 0x14]
push 0
push eax
mov dword [esp + 0x18], 0
call fcn.00476c30
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push str.D:_temppandorabox_themedefault.
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4011b3
lea edx, [esp + 0x25c]
push edx
call fcn.00432d50
xor eax, eax
mov dword [esp + 0x6b0], 0
cmp eax, str.D:_temppandorabox_themepandorabox.cupf
je 0x4010cc
push str.D:_temppandorabox_themepandorabox.cupf
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x103
push str.D:_temppandorabox_themepandorabox.cupf
lea ecx, [esp + 0x270]
push 0x104
push ecx
mov byte [esp + 0x4a4], 1
call fcn.004710fb
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
add esp, 0x10
lea esp, [esp]
test byte [esp + 0xc], 0x20
je 0x40118f
lea edx, [esp + 0x38]
push 0x4cb12c
push edx
call fcn.0046ff94
add esp, 8
test eax, eax
je 0x40118f
lea eax, [esp + 0x38]
push 0x4cb130
push eax
call fcn.0046ff94
add esp, 8
test eax, eax
je 0x40118f
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x4a6]
push edx
mov word [esp + 0x4a8], cx
call fcn.00476c30
add esp, 0xc
lea eax, [esp + 0x38]
push eax
push str.D:_temppandorabox_themedefault_s
lea ecx, [esp + 0x4a4]
push 0x104
push ecx
call fcn.0046fdbd
add esp, 0x10
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x4a0]
push eax
lea eax, [esp + 0x264]
call fcn.00433260
lea ecx, [esp + 0xc]
push ecx
push edi
call esi
test eax, eax
jne 0x401100
lea esi, [esp + 0x25c]
call fcn.004330b0
mov edx, esi
push edx
call fcn.00432e00
mov ecx, dword [esp + 0x6a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x698]
xor ecx, esp
call fcn.0046fdae
add esp, 0x6a8
ret
Function at 0x401ba0
Capabilities:
Create thread

Disassembly:
push ecx
xor ecx, ecx
mov eax, 0xa
mov dword [0x4fe128], eax
mov edx, 4
mul edx
seto cl
push esi
neg ecx
or ecx, eax
push ecx
call fcn.0046fd28
xor esi, esi
add esp, 4
cmp dword [0x4fe128], esi
mov dword [0x4fe124], eax
jle 0x401c0b
lea eax, [esp + 4]
push eax
push 0
push 0x4fe0d8
push 0x402030
push 0
push 0
mov dword [esp + 0x1c], 0
call fcn.00470bba
mov ecx, dword [0x4fe124]
mov dword [ecx + esi*4], eax
inc esi
add esp, 0x18
cmp esi, dword [0x4fe128]
jl 0x401bd4
mov al, 1
pop esi
pop ecx
ret
Function at 0x402b50
Capabilities:
Get http content length

Disassembly:
mov eax, dword [eax + 4]
sub esp, 8
test eax, eax
jne 0x402b61
or eax, 0xffffffff
add esp, 8
ret
push 0
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 8]
push edx
push 0x20000005
push eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x402b5a
mov eax, dword [esp]
add esp, 8
ret