joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b9449
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c1360
cmp edx, dword [eax]
je 0x4b946b
add eax, 8
inc ecx
cmp eax, 0x4c13f0
jl 0x4b945c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c1360]
jne 0x4b9599
mov eax, dword [0x4c5cec]
cmp eax, 1
je 0x4b9573
test eax, eax
jne 0x4b949c
cmp dword [0x4c128c], 1
je 0x4b9573
cmp edx, 0xfc
je 0x4b9599
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4b94d3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004b9e30
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004ba2c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4b9516
lea eax, [ebp - 0x1a4]
push eax
call fcn.004ba2c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4be93c
push edi
call fcn.004bc190
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004b9e30
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004b9e40
lea eax, [ebp - 0xa0]
push 0x4be91c
push eax
call fcn.004b9e40
push dword [esi + 0x4c1364]
lea eax, [ebp - 0xa0]
push eax
call fcn.004b9e40
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004bc104
add esp, 0x2c
pop edi
jmp 0x4b9599
lea eax, [ebp + 8]
lea esi, [esi + 0x4c1364]
push 0
push eax
push dword [esi]
call fcn.004ba2c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

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 0x4e9b20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa1000]
mov dword [edi + 0xca278], 0x19751f22
push edi
jmp 0x4e9b4a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4e9b51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e9b40
mov eax, 1
add ebx, ebx
jne 0x4e9b63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4e9b74
jne 0x4e9b93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e9b93
dec eax
add ebx, ebx
jne 0x4e9b80
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4e9b58
add ebx, ebx
jne 0x4e9b8f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4e9be5
xor ecx, ecx
sub eax, 3
jb 0x4e9bab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4e9c1a
sar eax, 1
mov ebp, eax
jmp 0x4e9bb6
add ebx, ebx
jne 0x4e9bb6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e9b84
inc ecx
add ebx, ebx
jne 0x4e9bc4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e9b84
add ebx, ebx
jne 0x4e9bd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4e9bc6
jne 0x4e9be2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4e9bc6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4e9c04
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4e9bf6
jmp 0x4e9b46
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4e9c04
add edi, ecx
jmp 0x4e9b46
pop esi
mov edi, esi
mov ecx, 0x4364
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4e9c22
cmp byte [edi], 0x1e
jne 0x4e9c22
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4e9c27
lea edi, [esi + 0xe6000]
mov eax, dword [edi]
or eax, eax
je 0x4e9c9f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xea0c8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xea19c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4e9c54
mov ecx, edi
jns 0x4e9c83
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xea1a4]
or eax, eax
je 0x4e9c99
mov dword [ebx], eax
add ebx, 4
jmp 0x4e9c71
call dword [esi + 0xea1a0]
mov ebp, dword [esi + 0xea1a8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x31f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4e9cd3
sub esp, 0xffffff80
jmp 0x40139c
Function at 0x402fff
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xc], eax
push 1
call fcn.00402fd4
pop ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
push 4
call fcn.00402fd4
pop ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 4]
shr eax, 1
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
cmp eax, ecx
jae 0x403048
xor eax, eax
jmp 0x40304b
xor eax, eax
inc eax
leave
ret

Function at 0x4073d2
Capabilities:
Check os version
Get keyboard layout
Terminate process

Disassembly:
call fcn.00403911
jmp fcn.004029f9
Function at 0x4014b0
Capabilities:
Create thread
Get system information on windows

Disassembly:
sub esp, 0x24
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x4014c8
pop esi
xor eax, eax
pop ebx
add esp, 0x24
ret 0x10
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
lea ebx, [esi + 4]
push ebx
push 4
push esi
push 0x401640
push 0
push 0
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], edx
call fcn.00420e09
add esp, 0x18
mov dword [esi + 8], eax
test eax, eax
jne 0x401504
pop esi
pop ebx
add esp, 0x24
ret 0x10
push edi
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x10]
mov dword [esp + 0xc], 0
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x55c148
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
xor edx, edx
div dword [esp + 0x20]
mov eax, 1
mov ecx, edx
shl eax, cl
mov ecx, dword [esi + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x401626
push ebp
push 0x55c130
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x55c118]
mov ebp, dword [esi + 8]
mov ebx, dword [ebx]
mov edi, dword [0x55c110]
test ecx, ecx
jne 0x4015b8
mov edx, dword [0x55c120]
push 0x18
push edx
push 0x55c11c
call fcn.004fd781
mov ecx, dword [0x55c120]
add eax, 4
lea edx, [ecx + ecx*2]
dec ecx
test ecx, ecx
lea eax, [eax + edx*8 - 0x18]
jl 0x4015f3
lea edx, [ecx + 1]
mov ecx, dword [0x55c118]
mov dword [eax], ecx
mov ecx, eax
sub eax, 0x18
dec edx
jne 0x4015a8
mov dword [0x55c118], ecx
mov eax, dword [ecx]
xor edx, edx
mov dword [0x55c118], eax
mov dword [ecx + 4], edi
mov dword [ecx], 0
mov eax, dword [0x55c114]
inc eax
mov dword [0x55c114], eax
lea eax, [ecx + 8]
mov edi, eax
mov dword [edi], edx
mov dword [edi + 4], edx
mov dword [edi + 8], edx
mov dword [edi + 0xc], edx
mov edx, dword [0x55c110]
test edx, edx
je 0x4015fb
mov dword [edx], ecx
jmp 0x401601
mov ecx, dword [0x55c118]
jmp 0x4015b8
mov dword [0x55c10c], ecx
mov edx, dword [esp + 0x3c]
mov dword [0x55c110], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax], ebp
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
push 0x55c130
mov dword [eax + 0xc], edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
mov ecx, esi
mov dword [esi + 0xc], 1
call fcn.00455590
pop edi
pop esi
pop ebx
add esp, 0x24
ret 0x10
Function at 0x402380
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x511c18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [esp + 0x40]
push esi
push edi
push eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0xc], 0x5461d0
mov dword [esp + 0x10], 0x5461cc
mov dword [esp + 0x14], 0x5461c8
mov dword [esp + 0x18], 0x5461c4
mov dword [esp + 0x1c], 0x5461c0
mov dword [esp + 0x20], 0x5461bc
mov dword [esp + 0x24], 0x5461b8
mov dword [esp + 0x28], 0x5461b4
mov dword [esp + 0x2c], 0x5461b0
mov dword [esp + 0x30], 0x5461ac
mov dword [esp + 0x34], 0x5461a8
mov dword [esp + 0x38], 0x5461a4
call fcn.00433f30
xor edi, edi
lea esi, [esp + 8]
mov eax, dword [esi]
mov ecx, dword [esp + 0x48]
push eax
push ecx
call fcn.00421050
add esp, 8
test eax, eax
je 0x402450
inc edi
add esi, 4
cmp edi, 0xc
jl 0x40240e
lea ecx, [esp + 0x48]
mov dword [esp + 0x40], 0xffffffff
call fcn.004348e0
pop edi
xor ax, ax
pop esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret
lea ecx, [esp + 0x48]
lea esi, [edi + 1]
mov dword [esp + 0x40], 0xffffffff
call fcn.004348e0
mov ecx, dword [esp + 0x38]
mov ax, si
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x3c
ret

Function at 0x4033b0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x511e23
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x520068]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea ebx, [esi + 0xc]
mov dword [ebx], eax
mov ecx, dword [0x520068]
lea ebp, [esi + 0x10]
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [ebp], ecx
mov edx, dword [0x520068]
mov dword [esi + 0x14], edx
mov eax, dword [0x520068]
mov dword [esi + 0x18], eax
mov eax, 0x51cb04
mov dword [esi + 0x20], edi
mov dword [esi + 0x1c], eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x38], edi
lea ecx, [esi + 0x44]
mov byte [esp + 0x1c], 5
call fcn.004fdb67
mov ecx, dword [0x520068]
mov dword [esi + 0x5c], ecx
lea ecx, [esi + 0x64]
mov byte [esp + 0x1c], 7
call fcn.004fdb67
push 0x55c14c
mov ecx, ebx
mov byte [esp + 0x20], 8
mov dword [esi], 0x51cb00
mov dword [esi + 4], edi
mov dword [esi + 8], edi
call fcn.00434ba0
push 0x55c14c
mov ecx, ebp
call fcn.00434ba0
push 0x55c14c
lea ecx, [esi + 0x14]
call fcn.00434ba0
push 0x55c14c
lea ecx, [esi + 0x18]
call fcn.00434ba0
or edi, 0xffffffff
push 0x55c14c
lea ecx, [esi + 0x5c]
mov dword [esi + 0x58], edi
call fcn.00434ba0
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x60], edi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4034e0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x511e98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], 0x51cb00
lea ecx, [esi + 0x64]
mov dword [esp + 0x20], 7
call fcn.004fdb9a
lea ecx, [esi + 0x5c]
mov byte [esp + 0x20], 6
call fcn.004348e0
lea ecx, [esi + 0x44]
mov byte [esp + 0x20], 5
call fcn.004fdb9a
lea edi, [esi + 0x30]
mov dword [esp + 0x14], edi
mov dword [edi], method.CCommandLineInfo.virtual_0
mov eax, dword [edi + 4]
mov byte [esp + 0x20], 8
test eax, eax
je 0x403573
mov ecx, dword [edi + 8]
mov ebx, eax
mov eax, ecx
dec ecx
test eax, eax
je 0x403567
lea ebp, [ecx + 1]
mov ecx, ebx
call fcn.004348e0
add ebx, 4
dec ebp
jne 0x40355a
mov edi, dword [edi + 4]
push edi
call fcn.004ff10f
add esp, 4
lea edi, [esi + 0x1c]
mov dword [esp + 0x14], edi
mov dword [edi], method.CCommandLineInfo.virtual_0
mov ebx, dword [edi + 4]
mov byte [esp + 0x20], 9
test ebx, ebx
je 0x4035b2
mov eax, dword [edi + 8]
mov ecx, eax
dec eax
test ecx, ecx
je 0x4035a6
lea ebp, [eax + 1]
mov ecx, ebx
call fcn.004348e0
add ebx, 4
dec ebp
jne 0x403599
mov edi, dword [edi + 4]
push edi
call fcn.004ff10f
add esp, 4
lea ecx, [esi + 0x18]
mov byte [esp + 0x20], 2
call fcn.004348e0
lea ecx, [esi + 0x14]
mov byte [esp + 0x20], 1
call fcn.004348e0
lea ecx, [esi + 0x10]
mov byte [esp + 0x20], 0
call fcn.004348e0
lea ecx, [esi + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.004348e0
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x404350
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x512020
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov ebx, dword [esp + 0x1c]
push esi
mov esi, ecx
push edi
push 0x55c14c
lea ecx, [esp + 0x28]
mov dword [ebx], 0
call fcn.00433f30
lea edi, [esi + 0xc]
push 0x2f
mov ecx, edi
mov dword [esp + 0x20], 0
call fcn.00435ac0
test eax, eax
jge 0x4043a9
push edi
lea ecx, [esp + 0x28]
call fcn.00434a80
jmp 0x4043d4
inc eax
mov ecx, edi
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00436bf0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], 1
call fcn.00434a80
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 0
call fcn.004348e0
push 0x2e
lea ecx, [esp + 0x28]
call fcn.00435a10
test eax, eax
jge 0x404420
lea ecx, [esp + 0x24]
mov dword [ebx], 1
push ecx
lea ecx, [esi + 0x10]
call fcn.00434a80
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004348e0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 4
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004348e0
mov ecx, dword [esi + 4]
mov edi, dword [edi]
lea edx, [esp + 0x10]
push edx
call fcn.004060b0
mov eax, dword [eax]
push edi
push eax
lea eax, [esp + 0x14]
mov ebx, 2
push eax
mov dword [esp + 0x28], ebx
call fcn.00401c90
add esp, 0xc
lea edi, [esi + 0x5c]
push eax
mov ecx, edi
mov byte [esp + 0x20], 3
call fcn.00434a80
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], bl
call fcn.004348e0
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004348e0
mov edi, dword [edi]
mov eax, dword [edi - 8]
test eax, eax
jne 0x4044b3
push str.400_Bad_Request
mov ecx, esi
call fcn.00404700
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 4
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x404407
push str.404_Not_Found
mov ecx, esi
call fcn.00404700
mov ecx, dword [esp + 0x14]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4
Function at 0x40436d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x512020
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov ebx, dword [esp + 0x1c]
push esi
mov esi, ecx
push edi
push 0x55c14c
lea ecx, [esp + 0x28]
mov dword [ebx], 0
call fcn.00433f30
lea edi, [esi + 0xc]
push 0x2f
mov ecx, edi
mov dword [esp + 0x20], 0
call fcn.00435ac0
test eax, eax
jge 0x4043a9
push edi
lea ecx, [esp + 0x28]
call fcn.00434a80
jmp 0x4043d4
inc eax
mov ecx, edi
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00436bf0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], 1
call fcn.00434a80
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 0
call fcn.004348e0
push 0x2e
lea ecx, [esp + 0x28]
call fcn.00435a10
test eax, eax
jge 0x404420
lea ecx, [esp + 0x24]
mov dword [ebx], 1
push ecx
lea ecx, [esi + 0x10]
call fcn.00434a80
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004348e0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 4
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004348e0
mov ecx, dword [esi + 4]
mov edi, dword [edi]
lea edx, [esp + 0x10]
push edx
call fcn.004060b0
mov eax, dword [eax]
push edi
push eax
lea eax, [esp + 0x14]
mov ebx, 2
push eax
mov dword [esp + 0x28], ebx
call fcn.00401c90
add esp, 0xc
lea edi, [esi + 0x5c]
push eax
mov ecx, edi
mov byte [esp + 0x20], 3
call fcn.00434a80
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], bl
call fcn.004348e0
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004348e0
mov edi, dword [edi]
mov eax, dword [edi - 8]
test eax, eax
jne 0x4044b3
push str.400_Bad_Request
mov ecx, esi
call fcn.00404700
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 4
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x404407
push str.404_Not_Found
mov ecx, esi
call fcn.00404700
mov ecx, dword [esp + 0x14]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x4045a0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x512038
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.004fdb67
mov esi, dword [esp + 0x30]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0
call fcn.004fdbc7
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x10]
not ecx
dec ecx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [ebx + 0x64]
call fcn.004fdcbe
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.004fdb9a
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x4047e0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5120a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
push 0x2e
lea edi, [esi + 0x5c]
mov ecx, edi
call fcn.00435ac0
push eax
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call fcn.00436bf0
mov ecx, dword [esp + 0xc]
xor ebx, ebx
push 0x54664c
push ecx
mov dword [esp + 0x2c], ebx
call fcn.00421050
add esp, 8
cmp eax, ebx
jne 0x404848
push str.text_javascript
push str.Content_type
mov ecx, esi
call fcn.004047a0
jmp 0x404935
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push 0x20019
push ebx
push eax
push SysReAllocStringLen
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404935
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebx
push ecx
push ebx
push ebx
push ebx
push str.Content_Type
push edx
call edi
test eax, eax
je 0x4048a1
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x404935
mov ecx, dword [0x520068]
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 1
call fcn.00435580
mov ecx, dword [esp + 0x14]
push eax
push ebx
push ebx
push str.Content_Type
push ecx
call edi
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.00435660
cmp edi, ebx
je 0x4048ea
mov edx, dword [esp + 0x10]
push edx
jmp 0x404922
mov eax, dword [esp + 0x14]
mov ecx, esi
push eax
push str.Content_type
call fcn.004047a0
push str.no_cache__must_revalidate
push str.Cache_control
mov ecx, esi
call fcn.004047a0
push str.no_cache
push str.Pramga
mov ecx, esi
call fcn.004047a0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], bl
call fcn.004348e0
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.004348e0
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x404960
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5120c0
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
push 0
mov esi, ecx
push 0x8000080
push 3
mov eax, dword [esi + 0x5c]
push 0
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x60], eax
jne 0x4049bf
push str.503_Service_Unavailable
mov ecx, esi
call fcn.00404700
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
lea eax, [esp + 8]
push str.If_Modified_Since
push eax
mov ecx, esi
call fcn.00403ac0
mov ecx, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileTime]
mov dword [esp + 0x28], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x404a64
mov eax, dword [esi + 0x60]
lea edx, [esp + 0x10]
push edx
push 0
push 0
push eax
call edi
test eax, eax
je 0x404a64
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
call fcn.00402480
add esp, 0xc
test eax, eax
jne 0x404a64
push str.304_Not_Modified
mov ecx, esi
call fcn.00404640
push 0x5463bc
mov ecx, esi
call fcn.004045a0
mov ecx, dword [esi + 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 8]
mov dword [esi + 0x60], 0xffffffff
mov dword [esp + 0x28], 0xffffffff
call fcn.004348e0
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
push str.200_OK
mov ecx, esi
call fcn.00404640
mov ecx, esi
call fcn.004047e0
mov edx, dword [esi + 0x60]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push str.Content_length
mov ecx, esi
call fcn.00404720
mov ecx, dword [esi + 0x60]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push ecx
call edi
test eax, eax
je 0x404ad7
lea edx, [esp + 0x18]
lea eax, [esp + 0xc]
push edx
push eax
call fcn.00401d60
add esp, 8
mov eax, dword [eax]
mov ecx, esi
push eax
push str.Last_Modified
mov byte [esp + 0x30], 1
call fcn.004047a0
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 0
call fcn.004348e0
push str.no_cache__must_revalidate
push str.Cache_control
mov ecx, esi
call fcn.004047a0
push str.no_cache
push str.Pramga
mov ecx, esi
call fcn.004047a0
push 0x5463bc
mov ecx, esi
call fcn.004045a0
lea ecx, [esp + 8]
mov dword [esp + 0x28], 0xffffffff
call fcn.004348e0
mov ecx, dword [esp + 0x20]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret