joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4058e0
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4602fb
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x478424]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x478424]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov eax, dword [esp + 0xa8]
mov ebp, dword [esp + 0xac]
xor ebx, ebx
mov esi, vtable.CBaseFile.0
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], ebx
mov byte [esp + 0x1c], bl
push 0x11
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0xa8], ebx
call fcn.004113c0
cmp al, bl
mov byte [esp + 0x17], al
jne 0x405973
mov eax, dword [esp + 0x20]
cmp eax, ebx
mov dword [esp + 0x18], esi
je 0x40596c
push eax
call fcn.00446c68
add esp, 4
xor al, al
jmp 0x405aa9
push 0x2d000
call fcn.0042a2f4
add esp, 4
cmp byte [esp + 0x1c], bl
mov edi, eax
mov eax, dword [esp + 0x20]
je 0x4059b6
cmp eax, ebx
je 0x4059b6
push eax
push 0x2d000
push 1
push edi
call fcn.004466bc
mov esi, eax
mov eax, dword [esp + 0x30]
push eax
call fcn.00447461
add esp, 0x14
test eax, eax
je 0x4059b8
or esi, 0xffffffff
jmp 0x4059b8
xor esi, esi
cmp esi, ebx
mov byte [esp + 0x8c], bl
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], 0x67452301
mov dword [esp + 0x28], 0xefcdab89
mov dword [esp + 0x2c], 0x98badcfe
mov dword [esp + 0x30], 0x10325476
jle 0x405a37
jmp 0x4059f0
push edi
mov eax, esi
lea ecx, [esp + 0x28]
call fcn.00412460
cmp esi, 0x2d000
jl 0x405a37
cmp byte [esp + 0x1c], bl
je 0x405a37
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x405a50
push eax
push 0x2d000
push 1
push edi
call fcn.004466bc
mov ecx, dword [esp + 0x30]
push ecx
mov esi, eax
call fcn.00447461
add esp, 0x14
test eax, eax
jne 0x405a37
cmp esi, ebx
jg 0x4059f0
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x405a50
push eax
call fcn.00446c68
add esp, 4
test eax, eax
jne 0x405a54
mov dword [esp + 0x20], ebx
mov byte [esp + 0x1c], bl
push edi
call fcn.0042a2ef
add esp, 4
cmp byte [esp + 0x8c], bl
jne 0x405a77
lea esi, [esp + 0x24]
call fcn.00412500
mov byte [esp + 0x8c], 1
push 0x10
lea edx, [esp + 0x80]
push edx
push 0x10
push ebp
call fcn.00445a61
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp eax, ebx
mov dword [esp + 0x18], vtable.CBaseFile.0
je 0x405aa5
push eax
call fcn.00446c68
add esp, 4
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.00445276
add esp, 0x90
ret
Function at 0x405ae0
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push 0
push esi
call fcn.00447490
add esp, 8
test eax, eax
jne 0x405b25
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405b25
test al, 1
je 0x405b25
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x405b25
push esi
push str._DTLCopyFile_:set__s_not_readonly_failed_n
push 2
call fcn.00411a20
mov ecx, eax
call fcn.00411cc0
add esp, 0xc
mov eax, dword [esp + 4]
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
sub eax, 1
neg eax
sbb eax, eax
add eax, 1
ret
Function at 0x405f60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405f79
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405fb4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x405fb0
lea ebx, [ebx]
cmp esi, eax
jae 0x405fb4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x405fa0
cmp esi, eax
jb 0x405fba
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x406b00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x460cd4
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x478424]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, dword [esp + 0x24]
xor ebx, ebx
push ebx
push ebx
push 1
push ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [edi + 0x10], eax
lea esi, [edi + 0x48]
mov dword [edi], vtable.CExcutor.0
call fcn.00414370
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], ebx
mov dword [edi + 0x40], ebx
mov byte [edi + 0x34], bl
mov dword [edi + 0x30], 2
mov dword [edi], vtable.CLocalExcutor.0
mov eax, 0xf
mov dword [edi + 0x1e0], eax
mov dword [edi + 0x1dc], ebx
mov byte [edi + 0x1cc], bl
mov dword [edi + 0x1fc], eax
mov dword [edi + 0x1f8], ebx
mov byte [edi + 0x1e8], bl
mov dword [edi + 0x204], ebx
mov dword [edi + 0x208], ebx
mov dword [edi + 0x20c], ebx
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x4076e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push 0x468e8c
push eax
call fcn.004463fc
mov esi, eax
add esp, 8
test esi, esi
je 0x407731
push 2
push 0
push esi
call fcn.00446b70
add esp, 0xc
test eax, eax
push esi
jne 0x407729
call fcn.00446a7b
add esp, 4
push 0
push 0
push esi
mov edi, eax
call fcn.00446b70
add esp, 0xc
test eax, eax
je 0x40773d
push esi
call fcn.00446c68
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
push edi
call fcn.0042a2f4
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x18], ebx
push esi
je 0x407729
push edi
push 1
push ebx
call fcn.004466bc
push esi
mov ebp, eax
call fcn.00446c68
add esp, 0x14
cmp ebp, edi
je 0x40777e
push ebx
call fcn.0042a2ef
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
mov esi, ebp
mov ecx, ebx
call fcn.004123a0
cmp ebp, 0x5c
jbe 0x407769
mov esi, dword [esp + 0x24]
push 0x5c
push ebx
push 0x5c
push esi
call fcn.00445a61
add esp, 0x10
mov edi, 0x5c
call fcn.00407c30
lea ecx, [ebp - 0x5c]
cmp ecx, 0x410
mov byte [esp + 0x17], 1
jb 0x40783c
jmp 0x4077c4
mov ebx, dword [esp + 0x18]
push 0x410
call fcn.0042a2c4
add esp, 4
test eax, eax
je 0x4077de
mov esi, eax
call fcn.00407670
jmp 0x4077e0
xor eax, eax
test eax, eax
mov dword [esp + 0x1c], eax
je 0x40782e
push 0x410
lea edx, [edi + ebx]
push edx
push 0x410
push eax
call fcn.00445a61
mov esi, dword [esp + 0x34]
add esp, 0x10
add esi, 0x5c
lea ebx, [esp + 0x1c]
call fcn.00407cf0
add edi, 0x410
mov eax, ebp
sub eax, edi
cmp eax, 0x410
jae 0x4077c0
mov al, byte [esp + 0x17]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
mov esi, dword [esp + 0x24]
mov byte [esp + 0x17], 0
call fcn.00407c30
mov al, byte [esp + 0x17]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x407a00
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
mov edi, esi
call fcn.00407b40
test al, al
jne 0x407a19
pop edi
pop esi
pop ecx
ret 8
mov ecx, dword [esi + 0x60]
test ecx, ecx
jne 0x407a26
mov dword [esp + 8], ecx
jmp 0x407a32
mov eax, dword [esi + 0x64]
sub eax, ecx
sar eax, 2
mov dword [esp + 8], eax
push ebx
mov ebx, dword [esp + 0xc]
imul ebx, ebx, 0x410
add ebx, 0x5c
push ebx
call fcn.0042a2f4
mov edi, eax
add esp, 4
test edi, edi
je 0x407b06
push ebp
push 0x5c
push esi
push ebx
push edi
call fcn.00445a61
xor esi, esi
add esp, 0x10
cmp dword [esp + 0x10], esi
mov ebp, 0x5c
jbe 0x407abc
mov edi, edi
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0x60]
test edx, edx
je 0x407a87
mov eax, dword [ecx + 0x64]
sub eax, edx
sar eax, 2
cmp esi, eax
jb 0x407a90
call fcn.00446328
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x60]
mov ecx, dword [eax + esi*4]
push 0x410
push ecx
mov edx, ebx
sub edx, ebp
push edx
lea eax, [edi + ebp]
push eax
call fcn.00445a61
add esi, 1
add esp, 0x10
add ebp, 0x410
cmp esi, dword [esp + 0x10]
jb 0x407a70
xor eax, eax
test ebx, ebx
pop ebp
jle 0x407ae5
mov ecx, eax
and ecx, 0x800003ff
jns 0x407ad5
dec ecx
or ecx, 0xfffffc00
inc ecx
mov dl, byte [ecx + 0x479da0]
xor byte [eax + edi], dl
add eax, 1
cmp eax, ebx
jl 0x407ac3
mov eax, dword [esp + 0x18]
push 0x468e90
push eax
call fcn.004463fc
mov esi, eax
add esp, 8
test esi, esi
jne 0x407b0f
push edi
call fcn.0042a2ef
add esp, 4
pop ebx
pop edi
xor al, al
pop esi
pop ecx
ret 8
push esi
push ebx
push 1
push edi
call fcn.00446856
push esi
call fcn.00446c68
push edi
call fcn.0042a2ef
add esp, 0x18
pop ebx
pop edi
mov al, 1
pop esi
pop ecx
ret 8

Function at 0x407b40
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x74
mov eax, dword [0x478424]
xor eax, esp
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov eax, dword [edi + 0x60]
test eax, eax
push ebp
je 0x407b67
mov ebp, dword [edi + 0x64]
sub ebp, eax
sar ebp, 2
jne 0x407b7b
xor al, al
pop ebp
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00445276
add esp, 0x74
ret 4
push esi
xor esi, esi
test ebp, ebp
mov byte [esp + 0x74], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
jbe 0x407bf2
mov ecx, dword [edi + 0x60]
test ecx, ecx
je 0x407bca
mov eax, dword [edi + 0x64]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x407bcf
call fcn.00446328
mov ecx, dword [edi + 0x60]
mov edx, dword [ecx + esi*4]
push edx
mov eax, 0x410
lea ecx, [esp + 0x10]
call fcn.00412460
add esi, 1
cmp esi, ebp
jb 0x407bb7
cmp byte [esp + 0x74], 0
jne 0x407c00
lea esi, [esp + 0xc]
call fcn.00412500
mov byte [esp + 0x74], 1
mov ecx, dword [esp + 8]
push 0x10
lea eax, [esp + 0x68]
push eax
push 0x10
push ecx
call fcn.00445a61
mov ecx, dword [esp + 0x88]
add esp, 0x10
pop esi
pop ebp
xor ecx, esp
mov al, 1
call fcn.00445276
add esp, 0x74
ret 4
Function at 0x408050
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esi + 4]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
mov edi, dword [esi]
call ebp
mov dword [esi + 0x18], eax
sub eax, dword [esi + 0x14]
mov ecx, eax
cmp ecx, 0xbb8
jbe 0x4080e5
mov edx, edi
sub edx, dword [esi + 8]
mov eax, ebx
sbb eax, dword [esi + 0xc]
mov dword [esp + 0x10], edx
mov edx, eax
and eax, 0x7fffffff
mov dword [esp + 0x14], eax
fild qword [esp + 0x10]
and edx, 0x80000000
test ecx, ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], edx
fild qword [esp + 0x10]
mov dword [esp + 0x10], ecx
fchs
faddp st(1)
fild dword [esp + 0x10]
jge 0x4080bc
fadd qword [0x46c578]
fdivp st(1)
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebx
fmul qword [0x46c570]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fstp dword [esi + 0x10]
call ebp
fld dword [esp + 0x10]
mov dword [esi + 0x14], eax
pop edi
pop ebp
pop ebx
add esp, 0x10
ret
cmp ecx, 0x3e8
jbe 0x40815a
sub edi, dword [esi + 8]
sbb ebx, dword [esi + 0xc]
mov dword [esp + 0x10], edi
mov eax, ebx
and ebx, 0x7fffffff
mov dword [esp + 0x14], ebx
fild qword [esp + 0x10]
and eax, 0x80000000
test ecx, ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
fild qword [esp + 0x10]
mov dword [esp + 0x10], ecx
fchs
faddp st(1)
fild dword [esp + 0x10]
jge 0x408132
fadd qword [0x46c578]
fdivp st(1)
fmul qword [0x46c570]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fadd dword [esi + 0x10]
fmul qword [0x46c568]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
pop edi
pop ebp
pop ebx
add esp, 0x10
ret
fld dword [esi + 0x10]
pop edi
fstp dword [esp + 0xc]
pop ebp
fld dword [esp + 8]
pop ebx
add esp, 0x10
ret
Function at 0x408170
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x460c3b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x478424]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, dword [esp + 0x24]
xor ebx, ebx
push ebx
push ebx
push 1
push ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [edi + 0x10], eax
lea esi, [edi + 0x48]
mov dword [edi], vtable.CExcutor.0
call fcn.00414370
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], ebx
mov dword [edi + 0x40], ebx
mov byte [edi + 0x34], bl
mov dword [edi + 0x30], 2
mov dword [edi], vtable.CRepairExcutor.0
mov eax, 0xf
mov dword [edi + 0x1e4], eax
mov dword [edi + 0x1e0], ebx
mov byte [edi + 0x1d0], bl
mov dword [edi + 0x200], eax
mov dword [edi + 0x1fc], ebx
mov byte [edi + 0x1ec], bl
mov dword [edi + 0x21c], eax
mov dword [edi + 0x218], ebx
mov byte [edi + 0x208], bl
mov dword [edi + 0x238], eax
mov dword [edi + 0x234], ebx
mov byte [edi + 0x224], bl
mov dword [edi + 0x254], eax
mov dword [edi + 0x250], ebx
mov byte [edi + 0x240], bl
xor eax, eax
mov dword [edi + 0x258], eax
mov dword [edi + 0x25c], eax
mov dword [edi + 0x260], eax
mov dword [edi + 0x264], eax
lea eax, [edi + 0x270]
call fcn.00409800
mov dword [edi + 0x3cc], ebx
mov dword [edi + 0x3d0], ebx
mov dword [edi + 0x3d4], ebx
mov dword [edi + 0x3d8], ebx
mov dword [edi + 0x3dc], ebx
mov byte [edi + 0x1c8], bl
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x409360
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x460b91
mov eax, dword fs:[0]
push eax
mov eax, dword [0x478424]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov edx, 0xf
mov dword [eax + 0x28], edx
mov dword [eax + 0x24], ecx
mov byte [eax + 0x14], cl
mov dword [eax + 0x44], edx
mov dword [eax + 0x40], ecx
mov byte [eax + 0x30], cl
mov dword [eax + 0x60], edx
mov dword [eax + 0x5c], ecx
mov byte [eax + 0x4c], cl
mov dword [eax + 0x64], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], ecx
mov dword [eax + 0x70], ecx
mov dword [eax + 0x78], ecx
mov dword [eax + 0x7c], ecx
mov dword [eax + 0x80], ecx
mov dword [eax], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 4
Function at 0x4094e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x461208
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x478424]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
push esi
mov eax, dword [0x478424]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [edi]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], ecx
jne 0x4095d7
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebp
mov byte [esp + 0x24], 0
lea eax, [esp + 0x20]
push eax
push ecx
xor eax, eax
mov ecx, edi
mov dword [esp + 0x60], ebp
call fcn.004096b0
mov eax, dword [esp + 0x24]
mov esi, 0x10
cmp dword [esp + 0x38], esi
jae 0x409558
lea eax, [esp + 0x24]
push ebp
push eax
call fcn.00447490
add esp, 8
test eax, eax
jne 0x4095bd
cmp dword [esp + 0x38], esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x24]
jae 0x409584
lea eax, [esp + 0x24]
lea ecx, [esp + 0x3c]
push ecx
push eax
call fcn.004058e0
add esp, 8
lea ecx, [edi + 0x64]
lea eax, [esp + 0x3c]
call fcn.00411770
test al, al
sete bl
cmp dword [esp + 0x38], esi
jb 0x4095b6
mov edx, dword [esp + 0x24]
push edx
call fcn.0042a2ef
add esp, 4
mov al, bl
jmp 0x409690
cmp dword [esp + 0x38], esi
jb 0x4095d0
mov eax, dword [esp + 0x24]
push eax
call fcn.0042a2ef
add esp, 4
mov al, 1
jmp 0x409690
cmp eax, 1
je 0x409600
cmp eax, 2
je 0x409600
cmp eax, 3
je 0x409600
cmp eax, 4
je 0x4095f9
cmp eax, 5
je 0x4095f9
cmp eax, 6
jne 0x40968e
mov al, 1
jmp 0x409690
mov eax, dword [edi + 0x78]
cmp eax, ebp
jne 0x40960b
xor ebx, ebx
jmp 0x409621
mov ecx, dword [edi + 0x7c]
sub ecx, eax
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
test ebx, ebx
jbe 0x40968e
mov dword [esp + 0x14], ebp
cmp dword [edi + 0x44], 0x10
jb 0x409638
mov ecx, dword [edi + 0x30]
mov dword [esp + 0x18], ecx
jmp 0x40963f
lea edx, [edi + 0x30]
mov dword [esp + 0x18], edx
mov eax, dword [edi + 0x78]
test eax, eax
je 0x409660
mov ecx, dword [edi + 0x7c]
sub ecx, eax
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x409665
call fcn.00446328
mov esi, dword [edi + 0x78]
mov eax, dword [esp + 0x18]
add esi, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push eax
call fcn.00409110
test al, al
jne 0x4095d0
add dword [esp + 0x14], 0x2c
add ebp, 1
cmp ebp, ebx
jb 0x409629
xor al, al
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00445276
add esp, 0x4c
ret
Function at 0x40c3d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x461131
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x478424]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor ebx, ebx
mov dword [esi + 0x20], ebx
mov eax, 0xf
mov dword [esi + 0x24], eax
mov byte [esi + 0x10], bl
mov dword [esi + 8], ebx
mov dword [esi + 0x60], eax
mov dword [esi + 0x5c], ebx
mov byte [esi + 0x4c], bl
mov dword [esi + 0x7c], eax
mov dword [esi + 0x78], ebx
mov byte [esi + 0x68], bl
mov dword [esi + 0x80], vtable.CBaseFile.0
mov dword [esi + 0x88], ebx
mov byte [esi + 0x84], bl
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x30], 1
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esp + 0x14], ebx
mov dword [esi], vtable.CUpdateFile.0
mov dword [esi + 0xac], eax
mov dword [esi + 0xa8], ebx
mov byte [esi + 0x98], bl
mov dword [esi + 0xc8], eax
mov dword [esi + 0xc4], ebx
mov byte [esi + 0xb4], bl
mov dword [esi + 0xe4], eax
mov dword [esi + 0xe0], ebx
mov byte [esi + 0xd0], bl
lea eax, [esi + 0xe8]
push eax
mov byte [esp + 0x18], 3
call fcn.00409360
mov dword [esi + 0x174], ebx
mov dword [esi + 0x178], ebx
mov dword [esi + 0x17c], ebx
mov dword [esi + 0x90], 1
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x40d940
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x461628
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x478424]
xor eax, esp
mov dword [esp + 0x2c], eax
push edi
mov eax, dword [0x478424]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
lea eax, [esp + 8]
mov dword [esp + 0x40], 0
call fcn.0040de50
xor eax, eax
cmp dword [esp + 0x20], 0x10
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xc]
jae 0x40d9b8
lea eax, [esp + 0xc]
lea ecx, [esp + 0x24]
push ecx
push eax
call fcn.004058e0
add esp, 8
lea eax, [edi + 0x14c]
lea ecx, [esp + 0x24]
call fcn.00411770
test al, al
je 0x40da46
mov eax, dword [edi + 0xe8]
cmp eax, 6
ja case.0x40d9e4.3
jmp dword [eax*4 + 0x40daa8]
call fcn.0040d130
mov dword [edi + 0x90], eax
jmp 0x40da76
mov ecx, edi
call fcn.0040cb80
mov dword [edi + 0x90], eax
jmp 0x40da76
mov ecx, edi
call fcn.0040cd90
mov dword [edi + 0x90], eax
jmp 0x40da76
call fcn.0040d320
mov dword [edi + 0x90], eax
jmp 0x40da76
push str.not_impl_n
push 2
call fcn.00411a20
mov ecx, eax
call fcn.00411cc0
mov eax, 5
add esp, 8
mov dword [edi + 0x90], eax
jmp 0x40da76
cmp dword [esp + 0x20], 0x10
mov eax, dword [esp + 0xc]
mov dword [edi + 0x90], 5
jae 0x40da5f
lea eax, [esp + 0xc]
push eax
push str.download_file__s_hash_check_failed_n
push 2
call fcn.00411a20
mov ecx, eax
call fcn.00411cc0
add esp, 0xc
cmp dword [esp + 0x20], 0x10
jb 0x40da8a
mov edx, dword [esp + 0xc]
push edx
call fcn.0042a2ef
add esp, 4
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00445276
add esp, 0x3c
ret
Function at 0x40f820
Capabilities:
Create thread

Disassembly:
push ebx
push esi
mov ebx, eax
test ebx, ebx
push edi
mov edi, ecx
jne 0x40f831
xor al, al
pop edi
pop esi
pop ebx
ret
push 0xffffffffffffffff
push 0
lea esi, [edi + 0x2f4]
push ebx
mov ecx, esi
mov dword [edi + 8], ebx
call fcn.00401bb0
push 1
push 0x468b14
mov eax, esi
call fcn.00404450
mov eax, dword [edi + 8]
add eax, 0x8c
push 0
push eax
or eax, 0xffffffff
call fcn.00404540
push 4
push str..dat
mov eax, esi
call fcn.00404450
lea esi, [edi + 0x2dc]
call fcn.004021b0
movzx ecx, al
mov dword [edi + 0x2f0], ecx
cmp dword [ebx + 0x150], 0x10
jb 0x40f89a
mov eax, dword [ebx + 0x13c]
jmp 0x40f8a0
lea eax, [ebx + 0x13c]
movzx ebx, word [ebx + 0x154]
lea esi, [edi + 0xc]
mov edx, dword [esi + 0x290]
lea edi, [esi + 0x290]
push eax
mov eax, dword [edx + 0x14]
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [edx + 8]
push ebx
mov ecx, edi
call eax
pop edi
mov dword [esi + 8], 0x4230f0
mov dword [esi + 0x1c0], 0x423220
mov eax, esi
pop esi
pop ebx
jmp 0x417ee0
push ecx
push ebx
push ebp
push esi
push edi
mov ebx, eax
call fcn.00416750
xor ebp, ebp
cmp dword [0x47f7d4], ebp
jne 0x417f26
push 0x2c
call fcn.0042a2c4
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x417f1e
lea eax, [esi + 0x14]
push eax
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], ebp
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x417f20
xor esi, esi
mov dword [0x47f7d4], esi
lea ecx, [ebx + 0x100]
lea esi, [ebx + 0x238]
mov dword [ebx + 0x13c], ebx
mov dword [ebx + 0x264], ecx
mov edx, dword [esi + 0x38]
lea edi, [esi + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push edi
push ebp
push esi
push 0x418fd0
push ebp
push ebp
call fcn.004487a7
mov dword [edi + 4], eax
lea edi, [ebx + 0x1d0]
mov eax, dword [edi + 0x48]
lea ebp, [edi + 0x40]
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push ebp
push 0
push edi
push 0x419500
push 0
push 0
call fcn.004487a7
add esp, 0x18
lea ecx, [ebx + 0x1b8]
mov dword [ebp + 4], eax
push ecx
lea ecx, [ebx + 0xc]
mov dword [ebx + 0x1c8], esi
mov dword [ebx + 0x1cc], edi
call fcn.00419b30
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x40f960
Capabilities:
Create thread

Disassembly:
mov ecx, dword [edi + 8]
push esi
call fcn.0040f2c0
test eax, eax
je 0x40f972
lea esi, [eax + 8]
jmp 0x40f974
xor esi, esi
test esi, esi
mov dword [edi + 4], esi
je 0x40f9a4
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push esi
push 0
push edi
push 0x40f9b0
push 0
push 0
call fcn.004487a7
add esp, 0x18
test eax, eax
mov dword [esi + 4], eax
setne al
pop esi
ret
xor al, al
pop esi
ret