joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000cb90
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x10050430], eax
mov ecx, 1
sub ecx, 1
lea esi, [esi]
add ecx, 1
mov edx, dword [ecx*4 + 0x1005042c]
mov eax, edx
shr eax, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
lea eax, [eax + ecx]
mov dword [ecx*4 + 0x10050430], eax
cmp ecx, 0x26f
jl 0x1000cba0
mov dword [0x10041dc0], 0x270
ret

Function at 0x1000cbe0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov eax, dword [0x1004f010]
cmp eax, dword [0x10041510]
je 0x1000cbf8
mov dword [0x10041dc0], 0x271
cmp dword [0x10041dc0], 0x270
jl 0x1000cd17
cmp dword [0x10041dc0], 0x271
jne 0x1000cc2f
mov eax, dword [0x1004f010]
call fcn.1000cb90
mov eax, dword [0x1004f010]
not eax
mov dword [0x1004f010], eax
mov dword [0x10041510], eax
mov ebx, 0
sub ebx, 1
nop
add ebx, 1
mov eax, dword [ebx*4 + 0x10050434]
and eax, 0x7fffffff
mov edx, dword [ebx*4 + 0x10050430]
and edx, 0x80000000
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [ebx*4 + 0x10050a64]
xor eax, edx
mov edx, ecx
and edx, 1
mov edx, dword [edx*4 + 0x10041dd0]
xor edx, eax
mov dword [ebx*4 + 0x10050430], edx
cmp ebx, 0xe2
jl 0x1000cc38
mov ebx, 0xe3
sub ebx, 1
mov esi, esi
add ebx, 1
mov eax, dword [ebx*4 + 0x10050434]
and eax, 0x7fffffff
mov edx, dword [ebx*4 + 0x10050430]
and edx, 0x80000000
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [ebx*4 + 0x100500a4]
xor eax, edx
mov edx, ecx
and edx, 1
mov edx, dword [edx*4 + 0x10041dd0]
xor edx, eax
mov dword [ebx*4 + 0x10050430], edx
cmp ebx, 0x26e
jl 0x1000cc8c
mov eax, dword [0x10050dec]
and eax, 0x80000000
mov edx, dword [0x10050430]
and edx, 0x7fffffff
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [0x10050a60]
xor edx, eax
and ecx, 1
mov eax, dword [ecx*4 + 0x10041dd0]
xor eax, edx
mov dword [0x10050dec], eax
mov dword [0x10041dc0], 0
mov eax, dword [0x10041dc0]
mov eax, dword [eax*4 + 0x10050430]
add dword [0x10041dc0], 1
mov edx, eax
shr edx, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor eax, edx
mov edx, eax
shl edx, 0xf
and edx, 0xefc60000
xor eax, edx
mov edx, eax
shr edx, 0x12
xor eax, edx
pop ebx
ret
Function at 0x1000e780
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x10041210]
cmp ax, 0xcb
je 0x1000e87c
cmp ax, 0xcc
je 0x1000e87c
mov edx, dword [0x10051040]
test edx, edx
je 0x1000e7b2
mov eax, dword [0x10050ee0]
call edx
mov ebx, eax
jmp 0x1000e7b7
mov ebx, 0x10050ee4
cmp word [0x10050ed0], 0
jle 0x1000e7da
mov eax, 0x10050eb0
call fcn.1000e9f0
mov eax, ebx
call fcn.1000e360
mov eax, ebx
call fcn.1000e3d0
mov edi, dword [ebx]
jmp 0x1000e7fa
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x1000e7f5
mov edx, edi
mov eax, ebx
call fcn.1000d830
jmp 0x1000e7f8
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x1000e7e0
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x10050ed0], 0
jle 0x1000e87c
mov edx, 0x10050df0
mov eax, ebx
call fcn.1000d960
mov edi, eax
test edi, edi
je 0x1000e84f
mov eax, dword [0x10050e84]
mov dword [edi + 0xc], eax
cmp dword [0x10050e84], 0
je 0x1000e844
mov eax, dword [0x10050e84]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x10050e84], eax
sub word [0x10050ed0], 1
cmp word [0x10050ed0], 0
sete bl
mov eax, 0x10050eb0
call fcn.1000ea00
test bl, bl
je 0x1000e87c
mov eax, 0x10050eb0
call fcn.1000e9e0
pop edi
pop esi
pop ebx
ret
Function at 0x10010440
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x114]
push ebx
push esi
push edi
mov dword [ebp - 0x114], 0
mov dword [0x10050250], 0
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp + eax - 0x108], 0
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
mov eax, ebp
mov edx, 0
call fcn.10010620
mov eax, dword [ebp - 0x110]
lea ecx, [eax + 1]
mov eax, dword [0x10050250]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.100021c0
call sub.kernel32.dll_GetCommandLineA
mov dword [0x10041290], eax
mov esi, dword [0x10041290]
jmp 0x100105e0
add esi, 1
movzx eax, byte [esi]
sub eax, 1
cmp eax, 0x20
jb 0x100104d0
cmp byte [esi], 0
je 0x100105e9
mov byte [ebp - 0x10c], 0
mov edi, esi
mov dword [ebp - 0x110], 0
jmp 0x10010545
mov al, byte [esi]
cmp al, 1
jb 0x1001053b
sub al, 0x20
jbe 0x1001050c
sub al, 2
je 0x1001051f
jmp 0x1001053b
mov al, byte [ebp - 0x10c]
test al, al
je 0x1001054a
add dword [ebp - 0x110], 1
jmp 0x10010542
cmp byte [esi + 1], 0x22
je 0x10010536
mov al, byte [ebp - 0x10c]
test al, al
sete byte [ebp - 0x10c]
jmp 0x10010542
add esi, 1
jmp 0x10010542
add dword [ebp - 0x110], 1
add esi, 1
cmp byte [esi], 0
jne 0x100104fc
test dword [ebp - 0x114], 0xffffffff
je 0x100105d9
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x114]
mov eax, ebp
call fcn.10010620
mov byte [ebp - 0x10c], 0
mov esi, edi
mov eax, dword [0x10050250]
mov edx, dword [ebp - 0x114]
mov ebx, dword [eax + edx*4]
jmp 0x100105d1
mov al, byte [esi]
cmp al, 1
jb 0x100105c7
sub al, 0x20
jbe 0x10010598
sub al, 2
je 0x100105ab
jmp 0x100105c7
mov al, byte [ebp - 0x10c]
test al, al
je 0x100105d6
mov al, byte [esi]
mov byte [ebx], al
add ebx, 1
jmp 0x100105ce
cmp byte [esi + 1], 0x22
je 0x100105c2
mov al, byte [ebp - 0x10c]
test al, al
sete byte [ebp - 0x10c]
jmp 0x100105ce
add esi, 1
jmp 0x100105ce
mov al, byte [esi]
mov byte [ebx], al
add ebx, 1
add esi, 1
cmp byte [esi], 0
jne 0x10010588
mov byte [ebx], 0
add dword [ebp - 0x114], 1
cmp byte [esi], 0
jne 0x100104d3
mov ebx, dword [ebp - 0x114]
mov dword [0x10050240], ebx
lea edx, [ebx + 1]
shl edx, 2
mov eax, 0x10050250
call fcn.1000e5e0
mov eax, dword [0x10050250]
mov dword [eax + ebx*4], 0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100270f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
test eax, eax
jne 0x100270fc
mov eax, 0x10050300
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x1002710f
and eax, 0x10
sete al
jmp 0x10027111
mov al, 0
leave
ret

Function at 0x10027120
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
test eax, eax
jne 0x1002712c
mov eax, 0x10050300
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x1002713f
and eax, 0x10
seta al
jmp 0x10027141
mov al, 0
leave
ret

Function at 0x100276e0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x38]
push ebx
push esi
mov dword [ebp - 0x38], 0
mov eax, 1
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x18]
call fcn.1000bb20
call fcn.1000d620
push eax
test eax, eax
jne 0x100277a4
mov ebx, 1
sub ebx, 1
mov esi, esi
add ebx, 1
lea eax, [ebx*4 + 0x1005189c]
mov edx, 0
call fcn.100073b0
mov dword [ebx*4 + 0x100518bc], 0xffffffff
cmp ebx, 7
jl 0x10027718
call sub.kernel32.dll_GetThreadLocale
mov esi, eax
push 0xb
lea eax, [ebp - 0xc]
push eax
push 0x100b
push esi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x100277a4
push 1
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xc]
mov cx, 0
mov edx, 0xa
call fcn.10007d70
mov eax, dword [ebp - 0x38]
mov edx, 1
call fcn.1001fe30
mov ebx, eax
sub eax, 3
cmp eax, 3
jae 0x100277a4
push 4
push ebx
push esi
mov eax, 0x100275a0
push eax
call sub.kernel32.dll_EnumCalendarInfoA
push 3
push ebx
push esi
mov eax, 0x10027640
push eax
call sub.kernel32.dll_EnumCalendarInfoA
call fcn.1000bda0
lea eax, [ebp - 0x38]
call fcn.10002820
pop eax
test eax, eax
je 0x100277bb
call fcn.1000bed0
pop esi
pop ebx
leave
ret

Function at 0x10038780
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 4]
push ebx
push esi
mov ebx, eax
mov esi, dword [ebp + 8]
test edx, edx
jne 0x10038797
mov edx, 0x10050300
lea eax, [ebp + 0xc]
push eax
push ecx
lea eax, [ebp - 4]
push eax
push 0
push edx
push dword [ebx + 0x14]
call sub.advapi32.dll_RegQueryValueExA
mov dword [ebx + 4], eax
test eax, eax
je 0x100387b9
mov eax, 0xffffffff
jmp 0x100387fa
cmp dword [ebp - 4], 1
jne 0x100387c7
mov dword [esi], 1
jmp 0x100387f7
cmp dword [ebp - 4], 2
jne 0x100387d5
mov dword [esi], 2
jmp 0x100387f7
cmp dword [ebp - 4], 4
jne 0x100387e3
mov dword [esi], 4
jmp 0x100387f7
cmp dword [ebp - 4], 3
jne 0x100387f1
mov dword [esi], 3
jmp 0x100387f7
mov dword [esi], 0
mov eax, dword [ebp + 0xc]
pop esi
pop ebx
leave
ret 8
Function at 0x10038a10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
test eax, eax
je 0x10038a37
sub eax, 1
je 0x10038a3e
sub eax, 1
je 0x10038a45
sub eax, 1
je 0x10038a53
sub eax, 1
je 0x10038a4c
jmp 0x10038a58
mov eax, 0
jmp 0x10038a58
mov eax, 1
jmp 0x10038a58
mov eax, 2
jmp 0x10038a58
mov eax, 4
jmp 0x10038a58
mov eax, 3
test edx, edx
jne 0x10038a61
mov edx, 0x10050300
push esi
push ecx
push eax
push 0
push edx
push dword [ebx + 0x14]
call sub.advapi32.dll_RegSetValueExA
mov dword [ebx + 4], eax
test eax, eax
sete al
pop esi
pop ebx
leave
ret 8
Function at 0x1003bf80
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x24]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov byte [ebp - 0xc], cl
push 4
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call sub.kernel32.dll_GetLocaleInfoW
mov dword [ebp - 0x1c], eax
cmp eax, 2
jle 0x1003c01c
mov eax, dword [ebp - 0x1c]
sub eax, 2
mov dword [ebp - 0x20], 0
cmp eax, dword [ebp - 0x20]
jl 0x1003c038
sub dword [ebp - 0x20], 1
nop
add dword [ebp - 0x20], 1
mov edx, dword [ebp - 0x20]
mov dx, word [ebp + edx*2 - 0x18]
mov word [ebp - 0x24], dx
mov edx, dword [ebp - 0x20]
mov dx, word [ebp + edx*2 - 0x18]
cmp dx, 0x20
jb 0x1003c038
sub dx, 0x20
je 0x1003c015
sub dx, 0x80
je 0x1003c015
sub dx, 0x1f62
jb 0x1003c038
sub dx, 1
jbe 0x1003c015
sub dx, 6
je 0x1003c015
sub dx, 0x26
jne 0x1003c038
jmp 0x1003c015
cmp eax, dword [ebp - 0x20]
jg 0x1003bfc8
jmp 0x1003c038
cmp dword [ebp - 0x1c], 2
jne 0x1003c02c
mov ax, word [ebp - 0x18]
mov word [ebp - 0x24], ax
jmp 0x1003c038
mov al, byte [ebp - 0xc]
call fcn.100098f0
mov word [ebp - 0x24], ax
mov ax, word [ebp - 0x24]
sub ax, 0x7f
jbe 0x1003c086
sub ax, 0x21
je 0x1003c094
sub ax, 0x17
je 0x1003c09a
sub ax, 0x222
je 0x1003c0a0
sub ax, 0x392
je 0x1003c0a6
sub ax, 1
je 0x1003c0ac
sub ax, 0x1996
je 0x1003c0b2
sub ax, 1
je 0x1003c0b8
sub ax, 6
je 0x1003c0be
sub ax, 0xb
je 0x1003c0ca
sub ax, 0x1b
je 0x1003c0c4
sub ax, 0x367
je 0x1003c0d0
jmp 0x1003c0d6
mov ax, word [ebp - 0x24]
call fcn.10009960
mov byte [ebp - 0x10], al
jmp 0x1003c0dc
mov byte [ebp - 0x10], 0x20
jmp 0x1003c0dc
mov byte [ebp - 0x10], 0x2e
jmp 0x1003c0dc
mov byte [ebp - 0x10], 0x27
jmp 0x1003c0dc
mov byte [ebp - 0x10], 0x2c
jmp 0x1003c0dc
mov byte [ebp - 0x10], 0x27
jmp 0x1003c0dc
mov byte [ebp - 0x10], 0x20
jmp 0x1003c0dc
mov byte [ebp - 0x10], 0x20
jmp 0x1003c0dc
mov byte [ebp - 0x10], 0x20
jmp 0x1003c0dc
mov byte [ebp - 0x10], 0x20
jmp 0x1003c0dc
mov byte [ebp - 0x10], 0x2d
jmp 0x1003c0dc
mov byte [ebp - 0x10], 0x27
jmp 0x1003c0dc
mov al, byte [ebp - 0xc]
mov byte [ebp - 0x10], al
mov al, byte [ebp - 0x10]
leave
ret
Function at 0x10006089
Capabilities:
Resume thread

Disassembly:
push 0x10
mov eax, 0x10011324
call fcn.10010dbc
mov ebx, ecx
mov dword [ebp - 0x18], ebx
cmp byte [ebx + 4], 0
jne 0x100061ed
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp eax, dword [ebx]
jne 0x100061ed
push 0x1000334a
push 0xd008
call fcn.100062eb
mov edi, eax
mov dword [ebp - 0x1c], edi
pop ecx
pop ecx
test edi, edi
je 0x100061e6
push 0xc000
xor ebx, ebx
push ebx
push edi
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xc000], ebx
lea eax, [edi + 0xc004]
push 0x1000
push ebx
push eax
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xd004], ebx
test edi, edi
je 0x100061e6
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
lea ecx, [ebp - 0x1c]
call fcn.100062eb
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.100062eb
mov esi, eax
push esi
push 0x10003028
mov dword [ebp - 0x10], esi
call fcn.100062eb
pop ecx
pop ecx
test esi, esi
jne 0x1000619a
mov ecx, edi
call fcn.100062eb
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100061fa
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10014250]
mov ecx, dword [ebp - 0x14]
call esi
call fcn.100062eb
test eax, eax
je 0x10006190
jg 0x10006175
mov esi, eax
mov dword [ebp - 0x10], eax
jmp 0x10006181
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x10], esi
push esi
push 0x10003050
call fcn.100062eb
pop ecx
pop ecx
jmp 0x1000619a
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov byte [eax + 4], 1
lea ecx, [ebp - 0x1c]
call fcn.1000704c
lea eax, [edi + 0xc000]
mov dword [ebp - 0x1c], eax
cmp dword [eax], ebx
jbe 0x100061ce
lea esi, [edi + 8]
test byte [esi - 4], 1
je 0x100061c3
push dword [esi]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov eax, dword [ebp - 0x1c]
inc ebx
add esi, 0xc
cmp ebx, dword [eax]
jb 0x100061b2
mov esi, dword [ebp - 0x10]
mov ecx, edi
call fcn.100062eb
push 0xd008
push edi
call fcn.100062eb
pop ecx
pop ecx
mov eax, esi
jmp 0x100061f2
mov eax, 0x8007000e
jmp 0x100061f2
mov eax, 0x800710dd
call fcn.10010d85
ret 4
call fcn.100062eb
int3

Function at 0x100062eb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x100062fa
pop dword [ebp - 0x4c]
mov eax, 0xccc8e6e9
add eax, 0x43377c11
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x39310
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0xb0a26b6
add ecx, 0xf4f621f7
xor edi, edi
add edi, eax
mov edx, 0x10018600
add edx, dword [ebp - 0x4c]
mov esi, 0xf01bb2d6
sub esi, 0x4e3fc147
mov ebx, dword [edx]
mov dword [ebp - 0x3c], 0x46c70211
sub ebx, esi
xor dword [ebp - 0x40], 0x2791f254
mov dword [edi], ebx
sub dword [ebp - 0x14], 0xbf212e02
add edi, 0xaa4923b4
sub edi, 0xaa4923b0
add edx, 0x46093d9c
sub edx, 0x46093d98
loop 0x10006350
add eax, 0x383ce952
sub eax, 0x383bd3cb
mov ebx, eax
add eax, 0xfee1761c
add eax, 0x11e89e9
mov ecx, 0x10000000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x418990
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x10000]
push edi
or ebp, 0xffffffff
jmp 0x4189b2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4189b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4189a8
mov eax, 1
add ebx, ebx
jne 0x4189cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4189c0
jne 0x4189dc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4189c0
xor ecx, ecx
sub eax, 3
jb 0x4189f0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x418a62
mov ebp, eax
add ebx, ebx
jne 0x4189fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x418a08
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x418a2c
inc ecx
add ebx, ebx
jne 0x418a18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x418a0d
jne 0x418a29
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x418a0d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x418a4c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x418a3d
jmp 0x4189ae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x418a4c
add edi, ecx
jmp 0x4189ae
pop esi
mov edi, esi
mov ecx, 5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x418a6a
cmp byte [edi], 2
jne 0x418a6a
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 eax, ebx
loop 0x418a6f
lea edi, [esi + 0x16000]
mov eax, dword [edi]
or eax, eax
je 0x418ae7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x18cac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x18ce8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x418a9c
mov ecx, edi
jns 0x418acb
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 + 0x18cec]
or eax, eax
je 0x418ae1
mov dword [ebx], eax
add ebx, 4
jmp 0x418ab9
call dword [esi + 0x18cf0]
popal
jmp 0x40115c
Function at 0x418dec
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00418c5d

Function at 0x4191e6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407f40
mov eax, dword [0x491b00]
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.00415f5b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x419228
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x419384
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004234f0
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 + 0x4936e8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041a1dd
mov ecx, dword [esi*4 + 0x4936e8]
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 0x41937d
cmp eax, dword [edi + ecx + 0x24]
jne 0x41937d
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 0x41937d
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041a1dd
add esp, 0x14
test edx, edx
jl 0x41937d
jg 0x4192f3
test eax, eax
jb 0x41937d
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41937d
jl 0x41930d
cmp dword [ebp - 0x1008], eax
ja 0x41937d
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41932b
test ebx, ebx
je 0x419364
cmp ecx, edi
jae 0x419364
mov al, byte [ecx]
cmp al, 0xd
jne 0x419345
lea eax, [edi - 1]
cmp ecx, eax
jae 0x419351
cmp byte [ecx + 1], 0xa
jne 0x419351
inc ecx
jmp 0x419351
movzx eax, al
movsx eax, byte [eax + 0x491dd8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41932b
cmp edx, ebx
jne 0x41932b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x419382
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040742b
leave
ret
Function at 0x41967b
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 + 0x4936e8]
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 0x4196bb
cmp byte [ebx], 0xa
jne 0x4196bb
or byte [eax + edi + 0x28], 4
jmp 0x4196c0
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4197be
mov al, byte [edx]
cmp al, 0x1a
je 0x4197a0
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4196ef
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x419714
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41971e
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 0x4196d1
jmp 0x4197be
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 0x41979b
cmp dword [ebp - 0xc], 0
je 0x41979b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4936e8]
test byte [eax + edi + 0x28], 0x48
je 0x419775
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x419760
mov byte [esi], dl
jmp 0x419771
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4936e8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4197be
cmp byte [ebp - 1], 0xa
jne 0x419784
cmp esi, ebx
jne 0x419784
mov byte [esi], 0xa
jmp 0x4197bd
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041a1fb
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4197be
mov byte [esi], 0xd
jmp 0x4197bd
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4936e8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4197ba
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4197be
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4197c7
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 + 0x4936e8]
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 0x41980a
cmp word [esi], dx
jne 0x41980a
or byte [edi + eax + 0x28], 4
jmp 0x41980f
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 0x419962
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 0x419942
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x419851
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x419887
cmp eax, edx
jae 0x419893
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 0x419829
jmp 0x419962
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 0x41993e
cmp dword [ebp - 0x14], 0
je 0x41993e
mov eax, dword [ebx*4 + 0x4936e8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x419916
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4198df
mov word [esi], cx
jmp 0x419912
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4936e8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4936e8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4936e8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x419962
pop ebx
cmp word [ebp - 4], bx
jne 0x419927
cmp esi, dword [ebp + 0xc]
jne 0x419927
mov word [esi], bx
jmp 0x41995f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041a1fb
add esp, 0x10
cmp word [ebp - 4], bx
je 0x419962
push 0xd
jmp 0x41995b
mov ecx, dword [ebx*4 + 0x4936e8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419959
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x419962
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