joyce8/EMBER2024-capa huggingface dataset:
Function at 0xc25d1
Capabilities:
Access pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
xor ebx, ebx
push edi
xor edi, edi
inc ebx
cmp eax, edi
jne 0xc2d32
mov eax, dword [esi + 0x30]
cmp eax, edi
jne 0xc303e
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 8]
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
cmp eax, edi
je 0xc2616
push dword [eax + 0x64]
call dword [sym.imp.RPCRT4.dll_RpcMgmtSetServerStackSize]
cmp dword [esi + 0x34], edi
jne 0xc32d7
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 4
test byte [esi + 0x38], bl
jne 0xc32c4
push ebx
lea ecx, [esi + 0x20]
push ecx
push dword [esi + 0x1c]
push dword [esi + 0x18]
push dword [esi + 0x14]
push eax
call fcn.000c2d61
test eax, eax
jne 0xc25ec
jmp 0xc32bd
shl eax, 0xa
push eax
jmp 0xc2610
xor eax, eax
jmp 0xc262b
push 4
push edi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jge 0xc25ec
jmp 0xc32bd
push ebx
push edi
push ebx
call dword [sym.imp.ntdll.dll_RtlSetProcessIsCritical]
add esp, 0xc
jmp 0xc261f
Function at 0x403015
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x403024
pop dword [ebp - 8]
mov eax, 0x9719c817
add eax, 0x6926680d
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x6ab4d749
add dword [ebp - 0x18], 0xe39d6e02
mov dword [ebp - 0x14], 0xd4d6e52b
sub dword [ebp - 0x14], 0xa2a398e6
mov dword [ebp - 0x10], 0xb8e1ca90
sub dword [ebp - 0x10], 0x6c958662
mov dword [ebp - 0xc], 0x3609b8b3
add dword [ebp - 0xc], 0xc9f6474d
lea eax, [ebp - 0x18]
push eax
mov eax, 0x806d544a
sub eax, 0x802cd3d2
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x7e01f04c
add dword [ebp - 0x18], 0xf670790a
mov dword [ebp - 0x14], 0x587c2391
add dword [ebp - 0x14], 0xe8f03de4
mov dword [ebp - 0x10], 0x70016773
sub dword [ebp - 0x10], 0xc91fb07
mov dword [ebp - 0xc], 0xcbc91b44
sub dword [ebp - 0xc], 0xcbc91b44
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x3ba1c
push 0
call eax
mov ecx, 0x5a60
mov ebx, eax
mov edi, 0xeba34ab7
sub edi, 0xeb5e36b7
add edi, dword [ebp - 8]
mov edx, 0xff86709b
mov esi, dword [edi]
xor dword [ebp - 4], 0x850c0912
xor esi, edx
add dword [ebp - 4], edx
mov dword [ebx], esi
xor dword [ebp - 4], edx
add ebx, 4
add edi, 0xce66dbaa
add edi, 0x3199245a
loop 0x403135
add eax, 0xf552c4cc
add eax, 0xaae9787
mov ebx, eax
add eax, 0x3dc3f7f6
sub eax, 0x3dc3f7f1
mov ecx, 0xba8f0247
add ecx, 0x45b0fdb9
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret

Function at 0x21b4300
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.021b438f
jae 0x21b430e
xor ecx, ecx
call fcn.021b438f
jae 0x21b433d
xor eax, eax
call fcn.021b438f
jae 0x21b434d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.021b438f
adc al, al
jae 0x21b432f
jne 0x21b4379
stosb byte es:[edi], al
jmp 0x21b4311
call fcn.021b439b
sub ecx, ebx
jne 0x21b4356
call fcn.021b4399
jmp 0x21b4375
lodsb al, byte [esi]
shr eax, 1
je 0x21b4383
adc ecx, ecx
jmp 0x21b4372
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.021b4399
cmp eax, 0x7d00
jae 0x21b4372
cmp ah, 5
jae 0x21b4373
cmp eax, 0x7f
ja 0x21b4374
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x21b4311
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x405198
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push 0x2b8
mov eax, 0x59f98b
call fcn.0055d904
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x2bc], esi
push edi
xor ebx, ebx
mov dword [ebp - 0x2c4], esi
mov dword [ebp - 0x2c0], ebx
lea eax, [ebp - 0x220]
push 0x200
push 1
push eax
mov dword [ebp - 0x2bc], ebx
mov dword [ebp - 0x2b0], 0x67452301
mov dword [ebp - 0x2ac], 0xefcdab89
mov dword [ebp - 0x2a8], 0x98badcfe
mov dword [ebp - 0x2a4], 0x10325476
mov dword [ebp - 0x2b8], ebx
mov dword [ebp - 0x2b4], ebx
call fcn.0056a657
add esp, 0x10
jmp 0x40523b
push eax
lea edx, [ebp - 0x220]
lea ecx, [ebp - 0x2b8]
call fcn.00404f50
push edi
push 0x200
lea eax, [ebp - 0x220]
push 1
push eax
call fcn.0056a657
add esp, 0x14
test eax, eax
jne 0x405212
lea edx, [ebp - 0x2b8]
lea ecx, [ebp - 0x20]
call fcn.00404fdf
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], ebx
jb 0x405261
mov eax, dword [esi]
jmp 0x405263
mov eax, esi
mov byte [eax], bl
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2c0], 1
mov bl, byte [ebp + ebx - 0x20]
mov cl, bl
shr cl, 4
cmp cl, 0xa
sbb al, al
add cl, 0x57
and al, 0xd9
add al, cl
mov ecx, esi
movzx eax, al
push eax
call fcn.00405365
and bl, 0xf
cmp bl, 0xa
sbb cl, cl
add bl, 0x57
and cl, 0xd9
add cl, bl
movzx ecx, cl
push ecx
mov ecx, esi
call fcn.00405365
mov ebx, dword [ebp - 0x2bc]
inc ebx
mov dword [ebp - 0x2bc], ebx
cmp ebx, 0x10
jb 0x405272
mov eax, esi
call fcn.0055d8ae
ret

Function at 0x40539d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], edi
mov eax, dword [edi + 8]
mov ebx, dword [edi + 0xc]
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
mov dword [ebp - 8], eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], edx
jmp 0x4053cd
Function at 0x4080e8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x48d390]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov word [ebp - 0x18], 0x2f
mov word [ebp - 0x16], 0x2f2f
mov word [ebp - 0x14], 0x2f22
mov word [ebp - 0x12], 0x3a
mov word [ebp - 0x10], 0x2a
mov word [ebp - 0xe], 0x3f
mov word [ebp - 0xc], 0x3c
mov word [ebp - 0xa], 0x3e
mov word [ebp - 8], 0x7c
mov word [ebp - 6], 0x2f74
xor esi, esi
movzx eax, word [ebp + esi*2 - 0x18]
push eax
push edi
call fcn.0045381b
test eax, eax
pop ecx
pop ecx
jne 0x40815e
inc esi
cmp esi, 0xa
jb 0x408137
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00452923
leave
ret
xor al, al
jmp 0x408151
Function at 0x4242d3
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x475956
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
mov eax, dword [0x48d390]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48], 1
call fcn.0042756e
call dword [0x478268]
mov dword [esp + 0x10], eax
jmp 0x424338
xor esi, esi
mov ebx, dword [0x478268]
call ebx
sub eax, dword [esp + 0x10]
cmp eax, 0x3e8
jb 0x42435d
call ebx
cmp dword [ebp + 8], esi
mov dword [esp + 0x10], eax
je 0x42435d
mov ecx, edi
call fcn.00424d43
mov eax, dword [edi + 0x108]
cmp eax, esi
mov ecx, dword [edi + 0x104]
je 0x4243e3
cmp eax, 0xffffffff
je 0x4243e3
cmp ecx, esi
push 2
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
pop eax
je 0x424386
cmp ecx, 0xffffffff
jne 0x424389
xor eax, eax
inc eax
push 1
push 0x64
push esi
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [0x4780f8]
cmp eax, esi
je 0x4243e3
cmp eax, 1
jne 0x424338
cmp dword [esp + 0x20], esi
je 0x4243b3
push dword [esp + 0x20]
call fcn.0045291e
pop ecx
cmp dword [esp + 0x30], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
je 0x4243cf
push dword [esp + 0x30]
call fcn.0045291e
pop ecx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [edi + 0x140]
push eax
call dword [0x4781e4]
lea esi, [edi + 0x114]
mov ebx, esi
lea eax, [esp + 0x2c]
call fcn.00427488
call fcn.004276ab
lea esi, [edi + 0x124]
mov ebx, esi
lea eax, [esp + 0x1c]
call fcn.00427fc9
call fcn.0042810d
lea eax, [edi + 0x140]
push eax
call dword [0x478260]
lea eax, [esp + 0x2c]
call fcn.00427636
mov esi, eax
test esi, esi
je 0x424456
ja 0x42443f
call fcn.004534a3
test esi, esi
jle 0x424456
mov ebx, dword [esp + 0x30]
mov edx, ebx
mov ecx, edi
call fcn.0042678d
add ebx, 0x68
dec esi
jne 0x424447
cmp dword [esp + 0x20], 0
je 0x424336
mov esi, dword [esp + 0x24]
sub esi, dword [esp + 0x20]
sar esi, 6
je 0x424336
test esi, esi
ja 0x42447d
call fcn.004534a3
test esi, esi
jle 0x424336
mov ebx, dword [esp + 0x20]
mov edx, ebx
mov ecx, edi
call fcn.00426409
add ebx, 0x40
dec esi
jne 0x424487
jmp 0x424336

Function at 0x42d9c5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [ebp + 8]
push eax
push eax
call fcn.00456d02
add esp, 0x18
leave
ret
Function at 0x42deff
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 4
push dword [ebp + 0xc]
mov edi, eax
lea eax, [ebp - 4]
push eax
call fcn.00408ef7
mov eax, dword [ebp - 4]
xor edx, edx
mov ecx, 0x14b
div ecx
add esp, 0xc
xor eax, eax
inc dl
cmp dword [ebp + 8], eax
jbe 0x42df39
mov cl, al
add cl, dl
xor byte [eax + edi], cl
inc eax
cmp eax, dword [ebp + 8]
jb 0x42df2c
push dword [ebp + 8]
call fcn.0042e14a
pop ecx
xor ecx, ecx
cmp dword [ebp - 4], eax
pop edi
sete cl
mov al, cl
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor edx, edx
push 0xa
pop ebx
div ebx
or esi, 0xffffffff
xor ecx, ecx
mov edx, 0xff
test eax, eax
mov dword [ebp - 4], eax
jbe 0x42e197
xor eax, eax
cmp ecx, 0xa
jae 0x42e197
mov ebx, dword [ecx*4 + 0x47df68]
add ebx, eax
movzx ebx, byte [ebx + edi]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x47db68]
inc ecx
add eax, 0xa
cmp ecx, dword [ebp - 4]
jb 0x42e16e
cmp dword [ebp + 8], 0
je 0x42e1ba
mov eax, edi
movzx ecx, byte [eax]
dec dword [ebp + 8]
xor ecx, esi
and ecx, edx
shr esi, 8
xor esi, dword [ecx*4 + 0x47db68]
inc eax
cmp dword [ebp + 8], 0
jne 0x42e19f
mov eax, esi
pop esi
not eax
pop ebx
leave
ret

Function at 0x42e1c2
Capabilities:
Hash data with md5

Disassembly:
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret
Function at 0x434b5d
Capabilities:
Write file on windows

Disassembly:
push 0x54
mov eax, 0x471c56
call fcn.0045a98b
mov edi, ecx
cmp dword [edi + 0x3c], 0
mov dword [ebp - 0x38], edi
je 0x434c6d
cmp byte [edi + 0x41], 0
je 0x434c6d
mov eax, dword [edi]
push 0xffffffffffffffff
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x434b95
xor al, al
jmp 0x434c6f
lea esi, [ebp - 0x30]
call fcn.0043477c
and dword [ebp - 4], 0
lea eax, [edi + 0x44]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x30]
call fcn.00408d85
mov esi, eax
call fcn.004353a3
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x30]
call fcn.00408d85
mov esi, eax
call fcn.004353a3
mov ecx, dword [edi + 0x3c]
mov edx, dword [ecx]
lea esi, [ebp - 0x34]
push esi
mov esi, dword [ebp - 0x40]
add ebx, esi
push ebx
push eax
push dword [ebp - 0x3c]
call dword [edx + 0x18]
sub eax, 0
je 0x434c05
dec eax
je 0x434c09
dec eax
dec eax
je 0x434c69
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.00402ad8
mov al, bl
jmp 0x434c6f
mov byte [edi + 0x41], 0
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x30]
call fcn.00408d85
mov esi, eax
call fcn.004353a3
mov ebx, dword [ebp - 0x34]
sub ebx, eax
je 0x434c47
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x30]
call fcn.00408d85
mov esi, eax
call fcn.004353a3
push dword [edi + 0x4c]
push ebx
push 1
push eax
call fcn.00457ea9
add esp, 0x10
cmp ebx, eax
jne 0x434bf3
cmp byte [edi + 0x41], 0
je 0x434c69
test ebx, ebx
jne 0x434ba7
push ebx
push 8
pop ebx
lea edi, [ebp - 0x30]
call fcn.004347b4
mov edi, dword [ebp - 0x38]
jmp 0x434ba7
mov bl, 1
jmp 0x434bf5
mov al, 1
call fcn.0045aa0e
ret
Function at 0x4397bf
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
and dword [esp + 4], 0
and dword [esp + 8], 0
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x114]
push edi
lea edi, [esp + 0x10]
call fcn.00439c9d
test al, al
jne 0x4397fa
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
xor al, al
jmp 0x4399b8
mov edi, dword [esi + 0xb4]
mov ebx, 0x1000
mov ecx, ebx
call fcn.00438185
mov eax, dword [esi + 0xb4]
mov edi, dword [eax + 8]
add edi, dword [eax]
lea eax, [esi + 0x7c]
cmp dword [eax + 0x18], 0x10
jb 0x439825
mov eax, dword [eax + 4]
jmp 0x439828
add eax, 4
push eax
push str.GET__s_HTTP_1.1_r_n
push ebx
push edi
call fcn.00452d7b
mov esi, eax
mov eax, ebx
sub eax, esi
push str.User_Agent:_Mozilla_5.0__Windows__U__Windows_NT_5.1__zh_CN__rv:1.9.0.10__Gecko_2009042316_Firefox_3.0.10_r_n
push eax
lea eax, [esi + edi]
push eax
call fcn.00452d7b
add esi, eax
add esp, 0x1c
mov eax, ebx
sub eax, esi
push str.Accept:___r_n
push eax
lea eax, [esi + edi]
push eax
call fcn.00452d7b
add esi, eax
add esp, 0xc
mov eax, ebx
sub eax, esi
push str.Accept_Charset:_gb2312_utf_8_q0.7__q0.7_r_n
push eax
lea eax, [esi + edi]
push eax
call fcn.00452d7b
add esi, eax
add esp, 0xc
mov eax, ebx
sub eax, esi
push str.Accept_Language:_zh_cn_zh_q0.5_r_n
push eax
lea eax, [esi + edi]
push eax
call fcn.00452d7b
add esi, eax
mov eax, dword [ebp + 8]
add esp, 0xc
cmp dword [eax + 0x40], 0x10
jb 0x4398a5
mov eax, dword [eax + 0x2c]
jmp 0x4398a8
add eax, 0x2c
push eax
mov eax, ebx
sub eax, esi
push str.Host:__s_r_n
push eax
lea eax, [esi + edi]
push eax
call fcn.00452d7b
push dword [esp + 0x24]
add esi, eax
push dword [esp + 0x24]
mov eax, ebx
sub eax, esi
push str.Range:_bytes_I64i__r_n
push eax
lea eax, [esi + edi]
push eax
call fcn.00452d7b
add esi, eax
mov eax, dword [ebp + 8]
add esp, 0x24
cmp dword [eax + 0xe4], 0
jbe 0x439919
add eax, 0xd0
cmp dword [eax + 0x18], 0x10
jb 0x4398fa
mov eax, dword [eax + 4]
jmp 0x4398fd
add eax, 4
push eax
mov eax, ebx
sub eax, esi
push str.Cookie:__s_r_n
push eax
lea eax, [esi + edi]
push eax
call fcn.00452d7b
add esp, 0x10
add esi, eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x100], 0
jbe 0x43994e
add eax, 0xec
cmp dword [eax + 0x18], 0x10
jb 0x439932
mov eax, dword [eax + 4]
jmp 0x439935
add eax, 4
push eax
mov eax, ebx
sub eax, esi
push str.Referer:__s_r_n
push eax
lea eax, [esi + edi]
push eax
call fcn.00452d7b
add esp, 0x10
add esi, eax
mov eax, ebx
sub eax, esi
push str.Cache_Control:_no_cache_r_n
push eax
lea eax, [esi + edi]
push eax
call fcn.00452d7b
add esp, 0xc
add esi, eax
push 0x47cef0
sub ebx, esi
lea eax, [esi + edi]
push ebx
push eax
call fcn.00452d7b
mov ebx, dword [ebp + 8]
add esp, 0xc
push edi
add esi, eax
mov eax, dword [ebx + 0xb4]
add dword [eax + 8], esi
push str._r_n_s_r_n
push 0x20000
call fcn.00441d30
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [ebx + 0x118], eax
mov eax, dword [esp + 0x14]
push 0
mov ecx, ebx
mov dword [ebx + 0x11c], eax
call fcn.00438990
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x412c36
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00405d70
mov eax, dword [0x472100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00411097
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x412c78
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x412dd4
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041c420
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x473c18]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041305c
mov ecx, dword [esi*4 + 0x473c18]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x412dcd
cmp eax, dword [edi + ecx + 0x24]
jne 0x412dcd
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x412dcd
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041305c
add esp, 0x14
test edx, edx
jl 0x412dcd
jg 0x412d43
test eax, eax
jb 0x412dcd
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x412dcd
jl 0x412d5d
cmp dword [ebp - 0x1008], eax
ja 0x412dcd
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x412d7b
test ebx, ebx
je 0x412db4
cmp ecx, edi
jae 0x412db4
mov al, byte [ecx]
cmp al, 0xd
jne 0x412d95
lea eax, [edi - 1]
cmp ecx, eax
jae 0x412da1
cmp byte [ecx + 1], 0xa
jne 0x412da1
inc ecx
jmp 0x412da1
movzx eax, al
movsx eax, byte [eax + 0x472a80]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x412d7b
cmp edx, ebx
jne 0x412d7b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x412dd2
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00405003
leave
ret
Function at 0x418fd9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x473c18]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x419019
cmp byte [ebx], 0xa
jne 0x419019
or byte [eax + edi + 0x28], 4
jmp 0x41901e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41911c
mov al, byte [edx]
cmp al, 0x1a
je 0x4190fe
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41904d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x419072
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41907c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41902f
jmp 0x41911c
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4190f9
cmp dword [ebp - 0xc], 0
je 0x4190f9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x473c18]
test byte [eax + edi + 0x28], 0x48
je 0x4190d3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4190be
mov byte [esi], dl
jmp 0x4190cf
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x473c18]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41911c
cmp byte [ebp - 1], 0xa
jne 0x4190e2
cmp esi, ebx
jne 0x4190e2
mov byte [esi], 0xa
jmp 0x41911b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041307a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41911c
mov byte [esi], 0xd
jmp 0x41911b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x473c18]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419118
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41911c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x419125
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x473c18]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x419168
cmp word [esi], dx
jne 0x419168
or byte [edi + eax + 0x28], 4
jmp 0x41916d
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4192c0
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4192a0
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4191af
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4191e5
cmp eax, edx
jae 0x4191f1
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x419187
jmp 0x4192c0
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41929c
cmp dword [ebp - 0x14], 0
je 0x41929c
mov eax, dword [ebx*4 + 0x473c18]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x419274
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41923d
mov word [esi], cx
jmp 0x419270
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x473c18]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x473c18]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x473c18]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4192c0
pop ebx
cmp word [ebp - 4], bx
jne 0x419285
cmp esi, dword [ebp + 0xc]
jne 0x419285
mov word [esi], bx
jmp 0x4192bd
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041307a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4192c0
push 0xd
jmp 0x4192b9
mov ecx, dword [ebx*4 + 0x473c18]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4192b7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4192c0
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret