joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f605
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x14
push ebx
push esi
push edi
test ecx, ecx
je 0x40f710
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x40f710
mov eax, dword [ecx + 0x3c]
cmp dword [eax + ecx], 0x4550
jne 0x40f710
mov edx, dword [eax + ecx + 0x78]
test edx, edx
je 0x40f710
mov ebx, dword [edx + ecx + 0x24]
xor edi, edi
mov eax, dword [edx + ecx + 0x1c]
add ebx, ecx
mov dword [ebp - 8], ebx
add eax, ecx
mov ebx, dword [edx + ecx + 0x20]
add ebx, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ebx
cmp dword [edx + ecx + 0x14], edi
jbe 0x40f710
mov eax, dword [eax + edi*4]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40f6fa
cmp dword [ebp + 0xc], 0xffff
ja 0x40f68c
mov eax, dword [edx + ecx + 0x10]
add eax, edi
cmp dword [ebp + 0xc], eax
je 0x40f709
mov ebx, dword [edx + ecx + 0x18]
xor esi, esi
test ebx, ebx
je 0x40f6a9
mov ecx, dword [ebp - 8]
movzx eax, word [ecx + esi*2]
cmp eax, edi
je 0x40f6a6
inc esi
cmp esi, ebx
jb 0x40f699
mov ecx, dword [ebp + 8]
cmp esi, ebx
je 0x40f6fa
cmp dword [ebp + 0xc], 0xffff
jbe 0x40f6fa
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp + 0xc]
mov eax, dword [eax + esi*4]
add eax, ecx
mov cl, byte [eax]
cmp cl, byte [ebx]
mov byte [ebp - 1], cl
mov ecx, dword [ebp + 8]
jne 0x40f6f1
cmp byte [ebp - 1], 0
je 0x40f6ed
mov cl, byte [eax + 1]
cmp cl, byte [ebx + 1]
mov byte [ebp - 1], cl
mov ecx, dword [ebp + 8]
jne 0x40f6f1
add eax, 2
add ebx, 2
cmp byte [ebp - 1], 0
jne 0x40f6c1
xor eax, eax
jmp 0x40f6f6
sbb eax, eax
or eax, 1
test eax, eax
je 0x40f709
inc edi
cmp edi, dword [edx + ecx + 0x14]
jae 0x40f710
mov eax, dword [ebp - 0x10]
jmp 0x40f66a
mov eax, dword [ebp - 0x14]
add eax, ecx
jmp 0x40f712
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40f719
Capabilities:
Create http request
Encode data using xor
Read data from internet
Receive data

Disassembly:
mov eax, 0x5b18bb
call fcn.005b0d74
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x1c], edi
mov esi, edx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], 0xf
push 0x5ff1f8
mov byte [edi], bl
call fcn.00406876
mov dword [ebp - 4], ebx
mov cl, pe_nt_image_headers32
mov dword [ebp - 0x14], 1
mov eax, ebx
mov dword [ebp - 0x27], 0xc7cfcc80
mov word [ebp - 0x23], 0xcec9
mov byte [ebp - 0x21], bl
xor byte [ebp + eax - 0x26], cl
inc eax
cmp eax, 5
jge 0x40f77b
mov cl, byte [ebp - 0x27]
jmp 0x40f76c
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x26]
mov byte [ebp - 0x21], bl
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x40f85d
push esi
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
movaps xmm0, xmmword [0x605880]
xor edx, edx
movups xmmword [ebp - 0x38], xmm0
mov byte [ebp - 0x28], dl
mov ecx, edx
mov al, byte [ebp - 0x38]
xor byte [ebp + ecx - 0x37], al
inc ecx
cmp ecx, 0xf
jl 0x40f7b2
push edx
push 0x84000100
push 0xf
lea eax, [ebp - 0x37]
mov byte [ebp - 0x28], dl
push eax
push esi
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebx, eax
test ebx, ebx
je 0x40f854
push 0x1000
call fcn.0042b9b4
mov esi, eax
pop ecx
test esi, esi
je 0x40f7ff
push 0x1000
push 0
push esi
call fcn.00576ac0
add esp, 0xc
jmp 0x40f801
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], 3
mov dword [ebp - 4], 1
test esi, esi
je 0x40f842
and dword [ebp - 0x10], 0
jmp 0x40f82d
cmp dword [ebp - 0x10], 0
je 0x40f842
push dword [ebp - 0x10]
mov ecx, edi
push esi
call fcn.00412bef
lea eax, [ebp - 0x10]
push eax
push 0x1000
push esi
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x40f81c
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test esi, esi
je 0x40f854
push esi
call fcn.0042b9af
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40f93e
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x5b18d5
call fcn.005b0d74
sub esp, 0x3c
mov eax, dword fs:[0x18]
push ebx
push esi
push edi
mov eax, dword [eax + 0x30]
push ecx
lea ecx, [ebp - 0x48]
mov esi, dword [eax + 0xc]
add esi, 0x14
mov dword [ebp - 0x10], esi
mov ebx, dword [esi]
call fcn.00410e48
and dword [ebp - 4], 0
lea ecx, [ebp - 0x48]
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x48]
push 8
pop edi
cmp dword [ebp - 0x34], edi
cmovae ecx, dword [ebp - 0x48]
cmovae edx, dword [ebp - 0x48]
push edx
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x48]
cmovae ecx, dword [ebp - 0x48]
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.004110c2
add esp, 0xc
cmp esi, ebx
je 0x40fa57
lea eax, [ebx - 8]
push dword [eax + 0x30]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], eax
call fcn.00410e48
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
cmp dword [ebp - 0x1c], edi
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x20]
cmovae ecx, dword [ebp - 0x30]
cmovae edx, dword [ebp - 0x30]
push edx
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x30]
cmovae ecx, dword [ebp - 0x30]
push eax
push ecx
lea ecx, [ebp - 0x18]
call fcn.004110c2
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
add esp, 0xc
cmp dword [ebp - 0x34], edi
lea edi, [ebp - 0x30]
cmovae eax, dword [ebp - 0x48]
cmp dword [ebp - 0x1c], 8
cmovae edi, dword [ebp - 0x30]
cmp esi, dword [ebp - 0x38]
jne 0x40fa2f
test esi, esi
je 0x40fa4a
movzx ecx, word [edi]
movzx edx, word [eax]
cmp cx, dx
jb 0x40fa2f
sub edi, eax
cmp cx, dx
ja 0x40fa2f
cmp esi, 1
je 0x40fa4a
add eax, 2
dec esi
movzx ecx, word [edi + eax]
movzx edx, word [eax]
cmp cx, dx
jae 0x40fa18
mov ebx, dword [ebx]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.00412ad9
cmp dword [ebp - 0x10], ebx
je 0x40fa57
push 8
pop edi
jmp 0x40f9a6
lea ecx, [ebp - 0x30]
call fcn.00412ad9
mov esi, dword [ebp - 0x14]
jmp 0x40fa59
xor esi, esi
lea ecx, [ebp - 0x48]
call fcn.00412ad9
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x410d01
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 8], edi
jne 0x410d73
mov eax, dword [ebp + 8]
push edi
push pe_nt_image_headers32
push 3
push edi
push edi
push SysReAllocStringLen
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x410d6f
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov ebx, 0x1000
mov dword [ebp + 8], edi
push ebx
push edi
push 2
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 4], eax
test eax, eax
je 0x410d6f
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ebx
test eax, eax
jne 0x410d73
xor al, al
jmp 0x410d75
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x414552
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x41460e
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5fd128]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5fd128]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5fd128]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5fd128]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5fd128]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5fd128]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5fd128]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5fd128]
sub edi, 1
jne 0x414567
pop edi
test esi, esi
je 0x41462a
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5fd128]
inc edx
sub esi, 1
jne 0x414612
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x414631
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
mov ecx, dword [edi + 8]
movzx eax, al
shr esi, 8
mov eax, dword [eax*4 + 0x5fd128]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5fd128]
mov dword [edi + 8], ecx
pop edi
pop esi
ret
Function at 0x414d4a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov eax, ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov ecx, ebx
imul ecx, dword [ebp + 8]
cmp byte [edi], 0
je 0x414d83
push 0
lea edx, [ebp + 8]
push edx
push ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x414d7e
mov byte [edi + 8], 1
mov eax, dword [ebp + 8]
jmp 0x414dad
mov edx, dword [edi + 0x1c]
push esi
mov esi, dword [edi + 0x18]
sub esi, edx
lea eax, [edx + ecx]
cmp eax, dword [edi + 0x18]
cmovbe esi, ecx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp - 4]
call fcn.00576540
add esp, 0xc
mov eax, esi
add dword [edi + 0x1c], esi
pop esi
xor edx, edx
pop edi
div ebx
pop ebx
leave
ret
Function at 0x415957
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4159dd
cmp dword [esi + 4], 0xffffffff
jne 0x4159dd
push edi
lea edi, [esi + 0x140]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x415981
sub ecx, edx
mov al, byte [ecx + esi + 0x13f]
cmp al, 0x5c
je 0x4159ab
cmp al, 0x2f
je 0x4159ab
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41599a
mov ax, word [0x5ff814]
mov word [edi], ax
lea eax, [ebp - 4]
push eax
push ecx
mov ecx, dword [ebp + 8]
call fcn.00414c29
pop ecx
pop ecx
pop edi
test eax, eax
jne 0x4159c4
mov eax, dword [ebp - 4]
jmp 0x4159e2
mov ecx, eax
call fcn.00414fd6
xor ecx, ecx
mov dword [esi], eax
test eax, eax
mov edx, 0x200
cmove ecx, edx
mov eax, ecx
jmp 0x4159e2
mov eax, 0x1000000
pop esi
leave
ret 0xc

Function at 0x415f1a
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
mov esi, ecx
mov ebx, edx
test esi, esi
je 0x415f42
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x415f42
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [ebx]
test al, al
je 0x415ff5
push edi
mov edi, ebx
mov ecx, ebx
cmp al, 0x2f
je 0x415f59
cmp al, 0x5c
jne 0x415f5b
mov edi, ecx
inc ecx
mov al, byte [ecx]
test al, al
jne 0x415f51
cmp edi, ebx
je 0x415f8e
sub edi, ebx
lea eax, [ebp - 0x208]
push edi
push ebx
push eax
call fcn.00576540
add esp, 0xc
mov byte [ebp + edi - 0x208], 0
lea edx, [ebp - 0x208]
mov ecx, esi
call fcn.00415f1a
mov byte [ebp - 0x104], 0
test esi, esi
je 0x415fab
lea ecx, [ebp - 0x104]
sub ecx, esi
mov al, byte [esi]
mov byte [ecx + esi], al
inc esi
test al, al
jne 0x415fa1
mov esi, ebx
mov al, byte [ebx]
inc ebx
test al, al
jne 0x415fad
lea edi, [ebp - 0x104]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x415fbd
mov ecx, ebx
lea eax, [ebp - 0x104]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop edi
cmp eax, 0xffffffff
jne 0x415ff5
push 0
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop esi
pop ebx
leave
ret
Function at 0x415ff9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
cmp dword [esi + 4], 0xffffffff
je 0x416017
mov ecx, dword [esi]
call fcn.004158fc
mov eax, dword [esi]
or dword [esi + 4], 0xffffffff
mov ebx, dword [ebp + 8]
cmp ebx, dword [eax + 4]
jl 0x41602f
mov eax, 0x10000
jmp 0x416223
cmp dword [eax + 0x10], ebx
jle 0x416049
mov ecx, eax
call fcn.00415339
jmp 0x416044
mov ecx, dword [esi]
call fcn.00415370
mov eax, dword [esi]
cmp dword [eax + 0x10], ebx
jl 0x41603d
lea eax, [ebp - 0x234]
mov ecx, esi
push eax
push ebx
call fcn.004159e7
test byte [ebp - 0x12c], 0x10
mov al, byte [edi]
je 0x41608f
cmp al, 0x2f
je 0x41607f
cmp al, 0x5c
je 0x41607f
test al, al
je 0x416077
cmp byte [edi + 1], 0x3a
je 0x41607f
lea ecx, [esi + 0x140]
jmp 0x416081
xor ecx, ecx
mov edx, edi
call fcn.00415f1a
xor eax, eax
jmp 0x416223
mov ecx, edi
mov edx, edi
jmp 0x4160a3
cmp al, 0x2f
je 0x41609d
cmp al, 0x5c
jne 0x4160a0
lea ecx, [edx + 1]
inc edx
mov al, byte [edx]
test al, al
jne 0x416095
lea ebx, [ebp - 0x108]
mov edx, edi
sub ebx, edi
mov al, byte [edx]
mov byte [ebx + edx], al
inc edx
test al, al
jne 0x4160b1
xor ebx, ebx
cmp ecx, edi
jne 0x4160c9
mov byte [ebp - 0x108], bl
jmp 0x4160ef
mov eax, ecx
sub eax, edi
mov byte [ebp + eax - 0x108], bl
mov al, byte [ebp - 0x108]
cmp al, 0x2f
je 0x416115
cmp al, 0x5c
je 0x416115
test al, al
je 0x4160ef
cmp byte [ebp - 0x107], 0x3a
je 0x416115
push ecx
lea eax, [ebp - 0x108]
push eax
lea edi, [esi + 0x140]
push edi
lea eax, [ebp - 0x338]
push str._s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
jmp 0x416134
push ecx
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x338]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov edi, ebx
lea edx, [ebp - 0x108]
mov ecx, edi
call fcn.00415f1a
push ebx
push dword [ebp - 0x12c]
lea eax, [ebp - 0x338]
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x416170
mov eax, 0x200
jmp 0x416223
mov edx, dword [esi + 0x138]
mov ecx, dword [esi]
call fcn.00415554
cmp dword [esi + 0x13c], ebx
jne 0x416196
push 0x4000
call fcn.0042b9b4
pop ecx
mov dword [esi + 0x13c], eax
mov edx, dword [esi + 0x13c]
lea eax, [ebp + 0xf]
mov ecx, dword [esi]
push eax
push 0x4000
call fcn.004156a8
mov edi, eax
pop ecx
pop ecx
cmp edi, 0xffffff96
je 0x41620c
test edi, edi
js 0x4161de
jle 0x4161d4
push ebx
lea eax, [ebp - 4]
push eax
push edi
push dword [esi + 0x13c]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4161e5
cmp byte [ebp + 0xf], 0
jne 0x4161ec
test edi, edi
jne 0x416196
mov ebx, 0x5000000
jmp 0x416211
mov ebx, 0x400
jmp 0x416211
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x120]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
jmp 0x416211
mov ebx, 0x1000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi]
call fcn.004158fc
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x41690d
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
mov ecx, dword [edi + 8]
movzx eax, al
shr esi, 8
mov eax, dword [eax*4 + 0x5fe8b0]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5fe8b0]
mov dword [edi + 8], ecx
pop edi
pop esi
ret

Function at 0x416992
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
cmp byte [esi + 0x2d], 0
je 0x416a07
mov ecx, dword [esi + 0x3c]
mov eax, ecx
test ecx, ecx
je 0x4169c1
cmp dword [esi + 0x40], edi
jae 0x4169c1
push ecx
call fcn.0042b9af
and dword [esi + 0x3c], 0
xor eax, eax
pop ecx
test eax, eax
jne 0x4169d5
lea eax, [edi + edi]
push eax
call fcn.0042b9b4
pop ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
push edi
push ebx
push eax
call fcn.00576540
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x416a04
lea ecx, [esi + 0x30]
mov eax, dword [esi + 0x3c]
mov dl, byte [ebx + eax]
call fcn.00416954
mov cl, al
mov eax, dword [esi + 0x3c]
mov byte [ebx + eax], cl
inc ebx
lea ecx, [esi + 0x30]
cmp ebx, edi
jb 0x4169e9
mov ebx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x416a36
mov edx, dword [esi + 0x24]
lea eax, [edx + edi]
cmp eax, dword [esi + 0x28]
jb 0x416a22
mov dword [esi + 0x14], 0x30000
jmp 0x416a58
push edi
add ecx, edx
push ebx
push ecx
call fcn.00576540
add esp, 0xc
mov eax, edi
add dword [esi + 0x24], edi
jmp 0x416a5a
mov eax, dword [esi + 4]
test eax, eax
je 0x416a51
push 0
lea ecx, [ebp + 8]
push ecx
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
jmp 0x416a5a
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x41aaf5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x41ab1c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041b1e7
jmp 0x41abd1
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x41ab3e
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x41ab40
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x41abc5
jg 0x41ab55
test esi, esi
je 0x41abc5
test ecx, ecx
jl 0x41ab9e
jg 0x41ab5f
test eax, eax
je 0x41ab9e
cmp edi, ecx
jg 0x41ab73
jl 0x41ab69
cmp esi, eax
jae 0x41ab73
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.00576540
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x41aba1
mov edx, dword [ebp + 8]
test edi, edi
jl 0x41abc5
jg 0x41abab
test esi, esi
je 0x41abc5
cmp dword [ebx + 0x4c], 0
je 0x41abc5
push dword [ebx + 0x4c]
push esi
push 1
push edx
call fcn.005823a2
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41abda
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x41ac01
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041b2b0
jmp 0x41acd0
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x41ac23
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x41ac25
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x41acc4
jg 0x41ac42
test esi, esi
je 0x41acc4
test ecx, ecx
jl 0x41ac8f
jg 0x41ac4c
test eax, eax
je 0x41ac8f
cmp ebx, ecx
jg 0x41ac60
jl 0x41ac56
cmp esi, eax
jae 0x41ac60
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.00576540
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x41ac96
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x41acc4
jg 0x41aca0
test esi, esi
je 0x41acc4
cmp dword [edi + 0x4c], 0
je 0x41acc4
mov ecx, edi
call fcn.0041b5a5
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.00581f28
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41af62
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x41af7e
xor eax, eax
jmp 0x41b045
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x41afa7
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x41afa7
dec dword [edx]
mov eax, ebx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x41b045
cmp dword [esi + 0x4c], 0
je 0x41b043
mov ecx, esi
call fcn.0041b5a5
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x41afd4
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.00582423
cmp eax, edi
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x41b043
mov byte [ebp - 1], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 1]
push eax
lea eax, [esi + 0x40]
push eax
call edx
test eax, eax
js 0x41b043
cmp eax, 1
jle 0x41b012
cmp eax, 3
jne 0x41b043
push dword [esi + 0x4c]
movsx ecx, byte [ebp - 1]
push ecx
jmp 0x41afc6
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
sub eax, ecx
mov dword [ebp - 8], eax
je 0x41b035
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call fcn.005823a2
add esp, 0x10
cmp dword [ebp - 8], eax
jne 0x41b043
lea eax, [ebp - 1]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0xc], eax
mov eax, ebx
jne 0x41b045
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41b62d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x41b6a7
cmp byte [esi + 0x3d], 0
je 0x41b6a7
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x41b679
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x41b67d
sub eax, 1
je 0x41b681
dec eax
sub eax, 1
je 0x41b6a7
xor al, al
jmp 0x41b6a9
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 4]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x41b69e
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.005823a2
add esp, 0x10
cmp edi, eax
jne 0x41b679
cmp byte [esi + 0x3d], 0
sete al
jmp 0x41b6a9
mov al, 1
pop edi
pop esi
leave
ret
Function at 0x41b818
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x5b1876
call fcn.005b0d74
push ecx
push ebx
push esi
mov esi, ecx
push edi
push 8
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0042b977
mov ebx, eax
pop ecx
test ebx, ebx
je 0x41b851
xor edi, edi
push 1
mov dword [ebp - 4], edi
call fcn.00574021
pop ecx
mov dword [ebx + 4], eax
jmp 0x41b855
xor edi, edi
mov ebx, edi
lea eax, [esi + 4]
mov dword [esi + 0x34], ebx
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
lea eax, [esi + 0x14]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov dword [ecx], edi
mov ecx, esi
mov eax, dword [esi + 0x20]
push edi
push edi
mov dword [eax], edi
mov eax, dword [esi + 0x30]
mov dword [eax], edi
mov eax, dword [esi + 0xc]
mov dword [eax], edi
mov eax, dword [esi + 0x1c]
mov dword [eax], edi
mov eax, dword [esi + 0x2c]
mov dword [eax], edi
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
call fcn.0041b6ad
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4