joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47ead0
Capabilities:
Read data from internet
Receive data

Disassembly:
sub esp, 0xc
mov ecx, dword [edi + 0x270]
push ebx
push ebp
xor ebp, ebp
cmp byte [esp + 0x1c], 0
mov ebx, eax
push esi
mov dword [esp + 0xc], ebp
mov dword [esp + 0x14], ebx
je 0x47eaf5
cmp ebx, ecx
jge 0x47eaf5
mov ecx, ebx
mov esi, dword [edi + 0x258]
call fcn.0041b140
cmp byte [esi + 0x114], 0
je 0x47eb0e
add esi, 4
jmp 0x47eb10
mov esi, dword [esi]
add esi, 4
mov eax, dword [edi + 0x274]
test eax, eax
je 0x47eb27
mov al, byte [eax]
test al, al
jne 0x47ebed
cmp byte [esp + 0x20], 0
mov eax, dword [edi + 0x270]
je 0x47eb3a
cmp ebx, eax
jge 0x47eb3a
mov eax, ebx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
push ecx
push eax
push esi
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xc]
test eax, eax
jbe 0x47ebc8
add ebp, eax
cmp byte [esp + 0x20], 0
mov eax, dword [edi + 0x270]
je 0x47eb6d
cmp ebx, eax
jge 0x47eb6d
mov eax, ebx
mov esi, dword [edi + 0x258]
lea ecx, [eax + ebp]
call fcn.0041b140
cmp byte [esi + 0x114], 0
je 0x47eb89
add esi, 4
jmp 0x47eb8b
mov esi, dword [esi]
mov eax, dword [edi + 0x268]
lea esi, [esi + ebp + 4]
test eax, eax
je 0x47ebb7
cmp byte [esp + 0x20], 0
je 0x47eba6
mov ecx, dword [esp + 0x14]
jmp 0x47eba9
or ecx, 0xffffffff
mov edx, dword [edi + 0x26c]
push edx
push ecx
push ebp
call eax
add esp, 0xc
cmp byte [esp + 0x20], 0
mov eax, dword [esp + 0xc]
je 0x47ebc8
sub ebx, eax
test ebx, ebx
jle 0x47ebd7
cmp dword [esp + 0x10], 0
je 0x47ebd7
test eax, eax
ja 0x47eb13
xor eax, eax
cmp dword [esp + 0x10], eax
pop esi
mov dword [edi + 0x260], ebp
pop ebp
setne al
pop ebx
add esp, 0xc
ret
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret
Function at 0x47f500
Capabilities:
Create http request

Disassembly:
push 0xffffffffffffffff
push 0x509196
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x5375a0]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push esi
push edi
mov eax, dword [0x5375a0]
xor eax, esp
push eax
lea eax, [esp + 0x26c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x27c]
mov esi, ecx
xor bl, bl
push eax
lea ecx, [esp + 0x144]
mov byte [esp + 0x17], bl
call fcn.00438c10
lea ecx, [esp + 0x18]
call fcn.00438ae0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
test esi, esi
je 0x47f636
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea eax, [esp + 0x18]
push eax
push 2
push esi
mov dword [esp + 0x24], 0xbb8
call edi
push 4
lea ecx, [esp + 0x18]
push ecx
push 5
push esi
call edi
push 4
lea edx, [esp + 0x18]
push edx
push 6
push esi
call edi
push 4
lea eax, [esp + 0x18]
push eax
push 8
push esi
call edi
mov ecx, dword [esp + 0x144]
mov eax, 0x800
test ecx, ecx
jbe 0x47f5f5
cmp ecx, eax
jae 0x47f5cc
mov eax, ecx
cmp byte [esp + 0x25c], 0
lea ecx, [esp + 0x14c]
jne 0x47f5e4
mov ecx, dword [esp + 0x148]
add ecx, 4
push ecx
lea ebx, [esp + 0x1c]
call fcn.00438d90
mov bl, byte [esp + 0x13]
cmp byte [esp + 0x134], 0
lea eax, [esp + 0x24]
jne 0x47f607
mov eax, dword [esp + 0x20]
push 0
push 0x84200000
push 0
push 0
add eax, 4
push eax
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
je 0x47f633
push eax
mov byte [esp + 0x17], 1
call edi
mov bl, byte [esp + 0x13]
push esi
call edi
cmp byte [esp + 0x134], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x18], esi
jne 0x47f65e
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x24]
cmp eax, ecx
je 0x47f65e
push eax
call fcn.004c6103
add esp, 4
cmp byte [esp + 0x25c], 0
mov dword [esp + 0x140], esi
jne 0x47f68a
mov eax, dword [esp + 0x148]
lea edx, [esp + 0x14c]
cmp eax, edx
je 0x47f68a
push eax
call fcn.004c6103
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x26c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.004c60f4
add esp, 0x268
ret
Function at 0x47fd50
Capabilities:
Check http status code

Disassembly:
push 0xffffffffffffffff
push 0x50475b
mov eax, dword fs:[0]
push eax
mov eax, 0x1134
call fcn.004d14d0
mov eax, dword [0x5375a0]
xor eax, esp
mov dword [esp + 0x1130], eax
push ebp
push esi
mov eax, dword [0x5375a0]
xor eax, esp
push eax
lea eax, [esp + 0x1140]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1158]
mov ebp, dword [esp + 0x1150]
mov esi, ecx
xor ecx, ecx
push 0xffe
push ecx
lea edx, [esp + 0x146]
push edx
mov dword [esp + 0x1c], eax
mov dword [ebx], 0
mov word [esp + 0x148], cx
call fcn.004cd250
mov edx, dword [esi]
add esp, 0xc
push 0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x144]
push ecx
push 0x21
push edx
mov dword [esp + 0x20], 0x1000
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x47fdf8
mov dword [ebx], 5
jmp 0x47ff3c
mov eax, dword [esp + 0xc]
mov edx, dword [esi]
shr eax, 1
xor ecx, ecx
push edx
mov word [esp + eax*2 + 0x140], cx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [esp + 0x18]
call fcn.00438ae0
mov dword [esp + 0x1148], 0
cmp byte [edi + 0x11c], 0
lea eax, [edi + 0xc]
jne 0x47fe34
mov eax, dword [edi + 8]
add eax, 4
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x144]
call fcn.0047f990
add esp, 8
test al, al
jne 0x47fe89
mov dword [ebx], 7
mov dword [esp + 0x18], vtable.t_str.0
cmp byte [esp + 0x134], al
jne 0x47ff3c
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x24]
cmp eax, ecx
je 0x47ff3c
push eax
call fcn.004c6103
add esp, 4
jmp 0x47ff3c
cmp byte [esp + 0x134], 0
lea eax, [esp + 0x24]
jne 0x47fe9b
mov eax, dword [esp + 0x20]
add eax, 4
mov edx, edi
call fcn.00438d30
cmp byte [esp + 0x134], 0
lea ecx, [esp + 0x24]
jne 0x47feb7
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1154]
push 0
or eax, 0x200000
push eax
push 0
push 0
add ecx, 4
push ecx
push ebp
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [esi], eax
test eax, eax
jne 0x47ff09
mov dword [ebx], 8
mov dword [esp + 0x18], vtable.t_str.0
cmp byte [esp + 0x134], al
jne 0x47ff3c
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x24]
cmp eax, edx
je 0x47ff3c
push eax
call fcn.004c6103
add esp, 4
jmp 0x47ff3c
mov esi, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x18]
push ecx
push esi
push 0x20000013
push eax
mov dword [esp + 0x28], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x47ff64
mov dword [ebx], 6
lea ecx, [esp + 0x18]
call fcn.00438c80
xor al, al
mov ecx, dword [esp + 0x1140]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
mov ecx, dword [esp + 0x1130]
xor ecx, esp
call fcn.004c60f4
add esp, 0x1140
ret
mov eax, dword [esi]
cmp eax, 0xc8
je 0x47ff33
cmp eax, 0x12c
jb 0x47ff33
cmp eax, 0x190
jae 0x47ff33
lea ecx, [esp + 0x18]
call fcn.00438c80
mov al, 1
jmp 0x47ff3e
Function at 0x47ff90
Capabilities:
Check http status code

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push edi
push 0
mov ebx, eax
lea eax, [esp + 0x14]
push eax
push esi
mov edi, ecx
mov ecx, dword [ebp]
push 0x20000013
push ecx
mov dword [esp + 0x24], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x47ffca
pop edi
pop ebp
xor al, al
pop ebx
add esp, 8
ret
cmp dword [esi], 0xc8
jne 0x47ffdb
pop edi
pop ebp
mov al, 1
pop ebx
add esp, 8
ret
mov dword [ebx], 0
mov eax, dword [esi]
cmp eax, 0x12c
jb 0x480027
cmp eax, 0x190
jae 0x480027
mov dword [esp + 0xc], 0
lea esp, [esp]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
push esi
push edx
push eax
mov ecx, ebp
call fcn.0047fd50
add esp, 0xc
test al, al
je 0x480027
mov eax, dword [esp + 0xc]
inc eax
cmp eax, 5
mov dword [esp + 0xc], eax
jl 0x480000
xor eax, eax
cmp dword [ebx], eax
pop edi
pop ebp
sete al
pop ebx
add esp, 8
ret
Function at 0x4800b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x5375a0]
xor eax, esp
mov dword [esp + 8], eax
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push 0x4c
call fcn.004c61e0
mov esi, eax
xor ebx, ebx
add esp, 4
cmp esi, ebx
jne 0x4800f6
cmp ebp, ebx
je 0x4800e2
mov dword [ebp], 0x6d
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.004c60f4
add esp, 0xc
ret
push edi
push 0x4c
push ebx
push esi
call fcn.004cd250
push 0x614c
push 1
mov dword [esi + 0x34], ebx
mov dword [esi + 0x14], ebx
call fcn.004caa51
mov edi, eax
add esp, 0x14
cmp edi, ebx
jne 0x480144
cmp ebp, ebx
je 0x480126
mov dword [ebp], 0x6d
push esi
call fcn.004c6103
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.004c60f4
add esp, 0xc
ret
push 0x614c
push ebx
push edi
call fcn.004cd250
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov dword [esi + 0x48], edi
mov dword [edi + 4], ebx
mov dword [edi + 0x38], ebx
mov dword [edi], 8
mov dword [edi + 0x3c], eax
mov eax, dword [esi + 0x48]
mov dword [esi + 0x44], ecx
mov ecx, dword [eax + 0x3c]
add esp, 0xc
cmp ecx, ebx
je 0x480189
push 6
lea edx, [esp + 0x14]
push edx
push esi
call ecx
add esp, 0xc
jmp 0x48019e
mov eax, dword [eax + 0x38]
push eax
push 6
lea ecx, [esp + 0x18]
push 1
push ecx
call fcn.004ca2b2
add esp, 0x10
cmp eax, 6
je 0x4801b0
cmp ebp, ebx
je 0x4801d7
mov dword [ebp], 0x66
jmp 0x4801d7
push 3
lea edx, [esp + 0x14]
push edx
push str.GIFVER
mov byte [esp + 0x22], bl
call fcn.004cc3dd
add esp, 0xc
test eax, eax
je 0x4801fb
cmp ebp, ebx
je 0x4801d7
mov dword [ebp], 0x67
push edi
call fcn.004c6103
push esi
call fcn.004c6103
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.004c60f4
add esp, 0xc
ret
mov ebx, esi
call fcn.00480270
test eax, eax
jne 0x480235
push edi
call fcn.004c6103
push esi
call fcn.004c6103
add esp, 8
test ebp, ebp
je 0x480220
mov dword [ebp], 0x68
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.004c60f4
add esp, 0xc
ret
mov ecx, dword [esp + 0x18]
xor eax, eax
mov dword [esi + 0x40], 0
cmp byte [esp + 0x13], 0x39
sete al
mov dword [edi + 0x6148], eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c60f4
add esp, 0xc
ret
Function at 0x480270
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [ebx + 0x48]
test byte [eax], 8
jne 0x480284
mov dword [ebx + 0x40], 0x6f
xor eax, eax
pop ecx
ret
push esi
push ebx
mov esi, ebx
call fcn.004809c0
add esp, 4
test eax, eax
je 0x48041e
lea ecx, [ebx + 4]
push ecx
call fcn.004809c0
add esp, 4
test eax, eax
je 0x48041e
mov eax, dword [ebx + 0x48]
mov ecx, dword [eax + 0x3c]
push edi
xor edi, edi
cmp ecx, edi
je 0x4802c8
push 3
lea edx, [esp + 0xc]
push edx
push ebx
call ecx
add esp, 0xc
jmp 0x4802dd
mov eax, dword [eax + 0x38]
push eax
push 3
lea ecx, [esp + 0x10]
push 1
push ecx
call fcn.004ca2b2
add esp, 0x10
cmp eax, 3
je 0x48030b
mov esi, dword [ebx + 0x14]
mov dword [ebx + 0x40], 0x66
cmp esi, edi
je 0x480302
mov edx, dword [esi + 0xc]
push edx
call fcn.004c6103
push esi
call fcn.004c6103
add esp, 8
mov dword [ebx + 0x14], edi
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov dl, byte [esp + 8]
movzx eax, dl
mov ecx, eax
mov esi, eax
shr ecx, 4
and eax, 7
and ecx, 7
inc eax
inc ecx
push ebp
shr esi, 3
mov ebp, eax
movzx eax, byte [esp + 0xd]
mov dword [ebx + 8], ecx
mov cl, byte [esp + 0xe]
and esi, 1
mov dword [ebx + 0xc], eax
mov byte [ebx + 0x10], cl
test dl, dl
jns 0x480411
push edi
mov ecx, ebp
mov edi, 1
shl edi, cl
call fcn.00480fd0
add esp, 4
mov dword [ebx + 0x14], eax
test eax, eax
jne 0x480369
pop ebp
pop edi
mov dword [ebx + 0x40], 0x6d
pop esi
pop ecx
ret
mov dword [eax + 8], esi
mov edx, dword [ebx + 0x14]
xor edi, edi
cmp dword [edx], edi
jle 0x480414
xor esi, esi
jmp 0x480380
mov eax, dword [ebx + 0x48]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x480399
push 3
lea eax, [esp + 0x10]
push eax
push ebx
call ecx
add esp, 0xc
jmp 0x4803ae
mov ecx, dword [eax + 0x38]
push ecx
push 3
lea edx, [esp + 0x14]
push 1
push edx
call fcn.004ca2b2
add esp, 0x10
cmp eax, 3
jne 0x4803f4
mov eax, dword [ebx + 0x14]
mov ecx, dword [eax + 0xc]
movzx edx, byte [esp + 0xc]
mov byte [esi + ecx], dl
mov eax, dword [ebx + 0x14]
mov ecx, dword [eax + 0xc]
movzx edx, byte [esp + 0xd]
mov byte [ecx + esi + 1], dl
mov eax, dword [ebx + 0x14]
movzx edx, byte [esp + 0xe]
mov ecx, dword [eax + 0xc]
mov byte [ecx + esi + 2], dl
mov eax, dword [ebx + 0x14]
inc edi
add esi, 3
cmp edi, dword [eax]
jl 0x480380
pop ebp
pop edi
mov eax, 1
pop esi
pop ecx
ret
mov esi, dword [ebx + 0x14]
call fcn.00481060
pop ebp
pop edi
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x40], 0x66
xor eax, eax
pop esi
pop ecx
ret
mov dword [ebx + 0x14], edi
pop ebp
pop edi
mov eax, 1
pop esi
pop ecx
ret
xor eax, eax
pop esi
pop ecx
ret
Function at 0x480430
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esi + 0x48]
test byte [eax], 8
jne 0x480444
mov dword [esi + 0x40], 0x6f
xor eax, eax
pop ecx
ret
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x48045a
push 1
lea eax, [esp + 7]
push eax
push esi
call ecx
add esp, 0xc
jmp 0x48046f
mov ecx, dword [eax + 0x38]
push ecx
push 1
lea edx, [esp + 0xb]
push 1
push edx
call fcn.004ca2b2
add esp, 0x10
cmp eax, 1
je 0x48047f
mov dword [esi + 0x40], 0x66
xor eax, eax
pop ecx
ret
mov al, byte [esp + 3]
cmp al, 0x21
je 0x4804ba
cmp al, 0x2c
je 0x4804ad
cmp al, 0x3b
je 0x4804a0
mov dword [edi], 0
mov dword [esi + 0x40], 0x6b
xor eax, eax
pop ecx
ret
mov dword [edi], 4
mov eax, 1
pop ecx
ret
mov dword [edi], 2
mov eax, 1
pop ecx
ret
mov dword [edi], 3
mov eax, 1
pop ecx
ret
Function at 0x4807b0
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, eax
mov eax, dword [esi + 0x48]
test byte [eax], 8
jne 0x4807c8
mov dword [esi + 0x40], 0x6f
xor eax, eax
pop esi
pop ecx
ret
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x4807de
push 1
lea eax, [esp + 0xb]
push eax
push esi
call ecx
add esp, 0xc
jmp 0x4807f3
mov ecx, dword [eax + 0x38]
push ecx
push 1
lea edx, [esp + 0xf]
push 1
push edx
call fcn.004ca2b2
add esp, 0x10
cmp eax, 1
je 0x480804
mov dword [esi + 0x40], 0x66
xor eax, eax
pop esi
pop ecx
ret
movzx eax, byte [esp + 7]
mov ecx, dword [esp + 0xc]
mov dword [ecx], eax
call fcn.00480820
pop esi
pop ecx
ret

Function at 0x480820
Capabilities:
Read file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esi + 0x48]
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x48083b
push 1
lea ecx, [esp + 0xb]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x480850
mov edx, dword [edi + 0x38]
push edx
push 1
lea eax, [esp + 0xf]
push 1
push eax
call fcn.004ca2b2
add esp, 0x10
cmp eax, 1
jne 0x48089c
mov cl, byte [esp + 7]
test cl, cl
jbe 0x4808a8
lea eax, [edi + 0x44]
mov byte [eax], cl
mov ecx, dword [esi + 0x48]
mov edx, dword [ecx + 0x3c]
mov dword [ebx], eax
inc eax
test edx, edx
je 0x48087e
movzx ecx, byte [esp + 7]
push ecx
push eax
push esi
call edx
add esp, 0xc
jmp 0x480893
mov edx, dword [ecx + 0x38]
movzx ecx, byte [esp + 7]
push edx
push ecx
push 1
push eax
call fcn.004ca2b2
add esp, 0x10
movzx edx, byte [esp + 7]
cmp eax, edx
je 0x4808ae
mov dword [esi + 0x40], 0x66
xor eax, eax
pop edi
pop ecx
ret
mov dword [ebx], 0
mov eax, 1
pop edi
pop ecx
ret

Function at 0x4809c0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esi + 0x48]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x4809da
push 2
lea eax, [esp + 4]
push eax
push esi
call ecx
add esp, 0xc
jmp 0x4809ef
mov ecx, dword [eax + 0x38]
push ecx
push 2
lea edx, [esp + 8]
push 1
push edx
call fcn.004ca2b2
add esp, 0x10
cmp eax, 2
je 0x4809ff
mov dword [esi + 0x40], 0x66
xor eax, eax
pop ecx
ret
mov ax, word [esp]
movzx ecx, ah
movzx edx, al
mov eax, dword [esp + 8]
shl ecx, 8
or ecx, edx
mov dword [eax], ecx
mov eax, 1
pop ecx
ret
Function at 0x480a20
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [edi + 0x48]
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x480a40
push 1
lea ecx, [esp + 0xf]
push ecx
push edi
call eax
add esp, 0xc
jmp 0x480a55
mov edx, dword [esi + 0x38]
push edx
push 1
lea eax, [esp + 0x13]
push 1
push eax
call fcn.004ca2b2
add esp, 0x10
cmp eax, 1
jne 0x480aa2
mov cl, byte [esp + 0xb]
test cl, cl
jbe 0x480aaf
lea eax, [esi + 0x44]
mov byte [eax], cl
mov ecx, dword [edi + 0x48]
mov edx, dword [ecx + 0x3c]
mov dword [ebp], eax
inc eax
test edx, edx
je 0x480a84
movzx ecx, byte [esp + 0xb]
push ecx
push eax
push edi
call edx
add esp, 0xc
jmp 0x480a99
mov edx, dword [ecx + 0x38]
movzx ecx, byte [esp + 0xb]
push edx
push ecx
push 1
push eax
call fcn.004ca2b2
add esp, 0x10
movzx edx, byte [esp + 0xb]
cmp eax, edx
je 0x480ac1
pop esi
mov dword [edi + 0x40], 0x66
xor eax, eax
pop ebp
pop ecx
ret
mov dword [ebp], 0
mov byte [esi + 0x44], 0
mov dword [esi + 0x34], 0
pop esi
mov eax, 1
pop ebp
pop ecx
ret

Function at 0x480ad0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, eax
mov esi, dword [edi + 0x48]
mov eax, dword [esi + 0x3c]
xor ebx, ebx
cmp eax, ebx
je 0x480af1
push 1
lea ecx, [esp + 0x13]
push ecx
push edi
call eax
add esp, 0xc
jmp 0x480b06
mov edx, dword [esi + 0x38]
push edx
push 1
lea eax, [esp + 0x17]
push 1
push eax
call fcn.004ca2b2
add esp, 0x10
cmp eax, 1
jb 0x480b1c
movzx ecx, byte [esp + 0xf]
cmp ecx, 8
jle 0x480b23
mov dword [edi + 0x40], 0x66
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov eax, 1
shl eax, cl
mov dword [esi + 8], ecx
inc ecx
mov edx, 1
mov dword [esi + 0xc], eax
inc eax
mov dword [esi + 0x10], eax
inc eax
shl edx, cl
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov eax, 0x1002
mov byte [esi + 0x44], bl
mov dword [esi + 0x28], ebx
mov dword [esi + 0x20], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
lea edi, [esi + 0x2144]
mov dword [esi + 0x1c], edx
mov ecx, 0x1000
rep stosd dword es:[edi], eax
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x480ef0
Capabilities:
Read file on windows

Disassembly:
mov cl, byte [esi]
push ebp
mov ebp, dword [esp + 8]
push edi
test cl, cl
jne 0x480f93
mov ecx, dword [ebx + 0x48]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x480f15
push 1
push esi
push ebx
call eax
add esp, 0xc
jmp 0x480f26
mov eax, dword [ecx + 0x38]
push eax
push 1
push 1
push esi
call fcn.004ca2b2
add esp, 0x10
cmp eax, 1
je 0x480f37
pop edi
mov dword [ebx + 0x40], 0x66
xor eax, eax
pop ebp
ret
mov al, byte [esi]
test al, al
jne 0x480f49
pop edi
mov dword [ebx + 0x40], 0x70
xor eax, eax
pop ebp
ret
mov ecx, dword [ebx + 0x48]
mov edx, dword [ecx + 0x3c]
lea edi, [esi + 1]
test edx, edx
je 0x480f63
movzx ecx, al
push ecx
push edi
push ebx
call edx
add esp, 0xc
jmp 0x480f76
mov edx, dword [ecx + 0x38]
push edx
movzx eax, al
push eax
push 1
push edi
call fcn.004ca2b2
add esp, 0x10
mov cl, byte [esi]
movzx edx, cl
cmp eax, edx
jne 0x480f2b
mov al, byte [edi]
mov byte [edi], 2
mov byte [ebp], al
dec cl
pop edi
mov byte [esi], cl
mov eax, 1
pop ebp
ret
mov al, byte [esi + 1]
movzx edx, al
mov dl, byte [edx + esi]
inc al
dec cl
pop edi
mov byte [ebp], dl
mov byte [esi + 1], al
mov byte [esi], cl
mov eax, 1
pop ebp
ret
Function at 0x4811a0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x502d48
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5375a0]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5375a0]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4c]
mov esi, dword [ebp + 4]
xor ebx, ebx
mov edi, ecx
cmp esi, ebx
je 0x4811f4
mov ecx, esi
call fcn.004c2060
push esi
call fcn.004c85c5
add esp, 4
mov dword [ebp + 4], ebx
cmp edi, ebx
je 0x481308
push ebx
push 0x523fd1
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.00409250
mov dword [esp + 0x44], ebx
cmp byte [ebp], bl
jne 0x48130c
push 0x51af78
lea eax, [esp + 0x1c]
push edi
push eax
mov dword [esp + 0x24], ebx
call fcn.004c86ad
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp eax, ebx
je 0x4812f4
push 2
push ebx
push eax
call fcn.004ca574
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ecx
call fcn.004ca47c
mov edx, dword [esp + 0x1c]
add esp, 4
push ebx
push ebx
push edx
mov esi, eax
call fcn.004ca574
lea eax, [esi + 1]
add esp, 0xc
push eax
call fcn.004c9695
mov edi, eax
add esp, 4
mov byte [edi + esi], bl
mov ecx, dword [esp + 0x18]
push ecx
push esi
push 1
push edi
call fcn.004ca2b2
add esp, 0x10
cmp eax, esi
jne 0x4812a5
push edi
lea ecx, [esp + 0x20]
call fcn.004816c0
mov edx, dword [esp + 0x18]
push edx
call fcn.004c94fc
add esp, 4
push edi
call fcn.004c968a
mov eax, dword [esp + 0x24]
mov esi, 0x10
add esp, 4
cmp dword [esp + 0x34], esi
jae 0x4812ce
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x30]
push ecx
push eax
mov eax, ebp
call fcn.00481350
mov bl, al
cmp dword [esp + 0x34], esi
jb 0x4812f0
mov edx, dword [esp + 0x20]
push edx
call fcn.004c85c5
add esp, 4
mov al, bl
jmp 0x481322
cmp dword [esp + 0x34], 0x10
jb 0x481308
mov eax, dword [esp + 0x20]
push eax
call fcn.004c85c5
add esp, 4
xor al, al
jmp 0x481322
cmp dword [esp + 0x34], 0x10
jb 0x481320
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004c85c5
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004c60f4
add esp, 0x34
ret 4
Function at 0x4843a0
Capabilities:
Write file on windows

Disassembly:
push ecx
push 0x523bdc
push eax
lea ecx, [esp + 8]
push ecx
call fcn.004c86ad
add esp, 0xc
test eax, eax
je 0x4843c9
push str.cant_open_file_for_write___r_n
call fcn.004cf641
add esp, 4
xor al, al
pop ecx
ret
mov edx, dword [esp]
push edx
push 1
lea eax, [esi + 0x108]
push 4
push eax
call fcn.004ccb5d
add esp, 0x10
cmp eax, 1
je 0x484400
push str.write_checknum_failed___r_n
call fcn.004cf641
mov ecx, dword [esp + 4]
push ecx
call fcn.004c94fc
add esp, 8
xor al, al
pop ecx
ret
mov edx, dword [esp]
push edi
push edx
push 1
lea edi, [esi + 0x104]
push 4
push edi
call fcn.004ccb5d
add esp, 0x10
cmp eax, 1
je 0x484439
push str.write_configsize_failed___r_n
call fcn.004cf641
mov eax, dword [esp + 8]
push eax
call fcn.004c94fc
add esp, 8
xor al, al
pop edi
pop ecx
ret
mov ecx, dword [esp + 4]
mov edx, dword [edi]
mov eax, dword [esi]
push ecx
push 1
push edx
push eax
call fcn.004ccb5d
add esp, 0x10
cmp eax, 1
jne 0x484471
mov edx, dword [esp + 4]
mov edi, dword [esi + 4]
push edx
push eax
mov eax, dword [esi + 0x100]
push eax
push edi
call fcn.004ccb5d
add esp, 0x10
cmp eax, 1
je 0x48448d
push str.write_header_failed___r_n
call fcn.004cf641
mov ecx, dword [esp + 8]
push ecx
call fcn.004c94fc
add esp, 8
xor al, al
pop edi
pop ecx
ret
mov edx, dword [esp + 4]
mov eax, dword [edi + 8]
mov ecx, dword [esi + 8]
push edx
push eax
push 1
push ecx
call fcn.004ccb5d
add esp, 0x10
cmp eax, dword [edi + 8]
je 0x4844c5
push str.write_item_failed___r_n
call fcn.004cf641
mov edx, dword [esp + 8]
push edx
call fcn.004c94fc
add esp, 8
xor al, al
pop edi
pop ecx
ret
mov eax, dword [esp + 4]
push eax
call fcn.004c94fc
add esp, 4
mov al, 1
pop edi
pop ecx
ret