joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48eb50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x48eb7b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x48eb9f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x48ebba
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x490a70
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x490a8a
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x490a8a
mov edx, dword [esp + 8]
push edx
push ecx
call eax
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x49b0c0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x49b0f0
push esi
call fcn.0049b5c0
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x49b0e9
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x49b173
mov eax, dword [esi + 0x1a0]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x49b15f
mov eax, dword [esi + 8]
test eax, eax
je 0x49b114
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1a0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x49b15b
cmp eax, 2
je 0x49b15f
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x49b107
cmp eax, 3
je 0x49b13a
cmp eax, 1
jne 0x49b107
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x49b107
mov edx, dword [esi + 0x120]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x49b107
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.0049b1a0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x49b193
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x15
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.0049b1a0
add esp, 4
pop esi
ret
Function at 0x4baf3d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4baf75
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004b95dc
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004b95b3
jmp 0x4baf81
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4baf85
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x57bb10
mov ecx, edi
call fcn.004b92b5
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x4bafd8
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x4bafeb
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.004b95dc
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, edi
call fcn.004b95b3
jmp 0x4bafeb
mov ecx, esi
call fcn.004bd113
test eax, eax
je 0x4bafeb
push edi
mov ecx, eax
call fcn.004baf3d
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8

Function at 0x4bc88e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4bc8d0
call fcn.004cd74b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x4bc8d0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4bc8c7
xor eax, eax
jmp 0x4bc8d8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004bc8de
pop edi
pop esi
pop ebx
ret 4
Function at 0x4cee69
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.004cd74b
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4ceea6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4ceea6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4ceeaa
xor eax, eax
jmp 0x4cef28
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.004b970d
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x4ceee2
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x4ceecc
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.004cf019
push ebx
mov edi, eax
call fcn.004b9736
test edi, edi
pop ecx
je 0x4cef24
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.004cede2
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.004cef2d
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x410777
Capabilities:
Resolve function by parsing pe exports

Disassembly:
pushfd
pushfd
lea esp, [esp + 0x4c]
jbe 0x413ea9
bts cx, bp
shld bx, cx, cl
mov edi, dword [edx + 0x24]
xadd cl, bh
shld ebx, ebp, 0x16
add edi, eax
push 0x73e88230
sal cl, cl
rcr bx, 2
btc ecx, 0x19
mov ebx, dword [edx + 0x20]
mov cx, di
call fcn.00414a86

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

Disassembly:
push esp
mov eax, dword [ebp + 8]
bt esi, esp
cmc
test eax, eax
jmp fcn.004106d4
movzx eax, dl
rcl ah, cl
push ebp
shr al, 1
bswap ax
bsf ax, ax
lea ebp, [eax + 0x27db34d8]
mov ebp, esp
push 0x2c9b53e2
sub esp, 0x14
bswap ax
bsf ax, bp
ror al, cl
push esi
bts ax, 6
xor ah, bl
sub ax, 0x9b3f
aas
push edi
cwde
and ah, ah
jg 0x4125f4
rol ah, cl
push ebx
bsf ax, dx
push edx
clc
jo 0x412470
rol ah, cl
mov eax, dword [ebp + 8]
bt ecx, ecx
test eax, eax
call fcn.00412b6d
and eax, 0x35059595
and eax, 0xb4bd750c
add byte [ebp - 0x77], dl
hlt
shl al, 1
shrd ax, dx, cl

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

Disassembly:
lea esp, [esp + 0xc]
jbe 0x413ea9
pushfd
mov edi, dword [edx + 0x24]
or bx, bp
adc bl, 0xcb
mov bl, al
not cl
add edi, eax
xor cl, 2
sbb bh, 0x1a
not cx
mov ebx, dword [edx + 0x20]
and ch, bh
dec ecx
add ebx, eax
cmc
cmp al, 0x94
xor cl, al
rcl cl, 5
mov dword [ebp - 8], 0
shr ch, 1
mov ecx, dword [edx + 0x18]
add esp, 4
jmp 0x414306

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

Disassembly:
mov dword [esp], eax
jmp 0x413e4f
mov edi, dword [edx + 0x24]
bts cx, bp
sar bl, 2
add edi, eax
shl bh, 5
sal cl, 1
and ch, 0xeb
mov ebx, dword [edx + 0x20]
not ch
add ebx, eax
push 0xc66d3140
shld ecx, ebx, 6
mov dword [ebp - 8], 0
clc
movzx cx, al
mov ecx, dword [edx + 0x18]
pushfd
jmp 0x415973
lodsb al, byte [esi]
cmc
pushfd
bt bp, 0xa
ror al, 1
push ebp
pushfd
pushal
push dword [esp + 0xc]
dec al
call fcn.004105d8
jmp 0x413e8a
lea esp, [esp + 0x2c]
jne 0x41055b
pushal
mov dword [esp + 0x1c], edi
pushfd
pushal
mov dword [esp + 0x3c], ebx
call fcn.0041350f
lea esp, [esp + 8]
jbe 0x413ea9
jmp 0x412af8
cmp ecx, dword [ebp - 8]
push dword [esp]
pushal
push 0x90559b09
lea esp, [esp + 0x30]
jbe 0x4127f3
bsr edi, edi
lea edi, [edx*8 - 0x6a41bc50]
shl esi, 9
sbb si, 0x94e5
sub ecx, 1
pushfd
mov dword [ebp - 4], ecx
cmc
bts si, 9
or ch, cl
rcr ch, 1
mov ecx, dword [ebp - 8]
sub di, cx
add ecx, dword [ebp - 4]
cmc
cmp bx, 0x76a6
shl esi, cl
ror di, 7
shr ecx, 1
adc esi, 0x9089372b
mov edi, dword [ebx + ecx*4]
movsx esi, al
bsr si, cx
rol si, 0xd
add edi, eax
mov si, dx
mov esi, dword [ebp + 0xc]
jmp 0x4105d0

Function at 0x415615
Capabilities:
Encode data using xor

Disassembly:
ror al, 1
push 0xd8272a0a
lea esp, [esp + 0x28]
jns 0x413331
dec al
clc
clc
ror al, 2
pushfd
inc al
mov word [esp], si
pushal
pushal
test ah, 0x7f
cmp al, byte [edi]
lahf
pushfd
mov ah, cl
call fcn.00416f07
mov dword [esp + 0x24], eax
mov byte [esp], 0x9d
not al
lodsb al, byte [esi]
stc
cmc
jmp 0x40f09c
Function at 0x423fd0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x18000]
push edi
or ebp, 0xffffffff
jmp 0x423ff2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x423ff9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x423fe8
mov eax, 1
add ebx, ebx
jne 0x42400b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x424000
jne 0x42401c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x424000
xor ecx, ecx
sub eax, 3
jb 0x424030
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4240a2
mov ebp, eax
add ebx, ebx
jne 0x42403b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x424048
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42406c
inc ecx
add ebx, ebx
jne 0x424058
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42404d
jne 0x424069
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42404d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42408c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42407d
jmp 0x423fee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42408c
add edi, ecx
jmp 0x423fee
pop esi
mov edi, esi
mov ecx, 0x809
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4240aa
cmp byte [edi], 0xd
jne 0x4240aa
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 0x4240af
lea edi, [esi + 0x21000]
mov eax, dword [edi]
or eax, eax
je 0x424127
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x25b94]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x25c48]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4240dc
mov ecx, edi
jns 0x42410b
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 + 0x25c4c]
or eax, eax
je 0x424121
mov dword [ebx], eax
add ebx, 4
jmp 0x4240f9
call dword [esi + 0x25c50]
popal
jmp section.UPX0
Function at 0x100010c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1000111b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1000111b
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x10001108
cmp esi, edx
jae 0x1000111b
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x100010f6
cmp esi, edx
jae 0x1000111b
xor eax, eax
cmp word [esi], ax
pop edi
cmove esi, eax
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x10001ef0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xf4
mov eax, dword [0x1002200c]
xor eax, esp
mov dword [esp + 0xf0], eax
push esi
mov dword [esp + 8], 0x1b
xor eax, eax
mov dword [esp + 0xc], 0xb100c9
mov dword [esp + 0x10], 0xda00d0
mov dword [esp + 0x14], 0xe100e7
mov dword [esp + 0x18], 0xfe00f4
mov dword [esp + 0x1c], 0xe000e5
mov dword [esp + 0x20], 0xc600c8
mov dword [esp + 0x24], 0xe400ef
mov dword [esp + 0x28], 0xfc00ec
mov dword [esp + 0x2c], 0xa800f7
mov dword [esp + 0x30], 0xc100ae
mov dword [esp + 0x34], 0xf600f6
mov dword [esp + 0x38], 0x8f00c4
mov dword [esp + 0x3c], 0xcf00c6
mov dword [esp + 0x40], 0xa500c8
nop word [eax + eax]
lea ecx, [eax + 0x8a]
xor word [esp + eax*2 + 0xc], cx
inc eax
mov ecx, dword [esp + 8]
cmp eax, ecx
jb 0x10001f90
xor eax, eax
push 8
push eax
mov word [esp + ecx*2 + 0x14], ax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
call fcn.10001be0
lea ecx, [esp + 0x44]
call fcn.100018d0
mov esi, eax
test esi, esi
je 0x10002033
push 0
push 0x10001e30
push 0x10002cd0
push 0x10002cd0
push 0x10002cd0
lea eax, [esp + 0x5c]
push 0x10002cd0
push eax
call fcn.10001e80
push 0
lea eax, [esp + 0x68]
push 0x10002cf0
push eax
call fcn.10001eb0
mov edx, dword [esp + 0x6c]
lea eax, [esp + 0x70]
add esp, 0x28
mov ecx, esi
push eax
sub esp, 0xc
push 0x10001e60
push 0x10001e40
call fcn.10002d50
mov ecx, eax
call fcn.10003240
push esi
call fcn.1000a0ae
add esp, 0x1c
mov ecx, dword [esp + 0xf4]
pop esi
xor ecx, esp
call fcn.100034da
mov esp, ebp
pop ebp
ret

Function at 0x10002050
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
sub dword [ebp + 0xc], 1
jne 0x100020cd
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov dword [ebp - 0x1c], 0xb
xor eax, eax
mov dword [ebp - 0x18], 0xff00d9
mov dword [ebp - 0x14], 0xec00e9
mov dword [ebp - 0x10], 0xda00e3
mov dword [ebp - 0xc], 0xbf00d9
mov dword [ebp - 8], 0xff00f6
mov dword [ebp - 4], 0x9500f8
nop dword [eax + eax]
lea ecx, [eax + 0x8a]
xor word [ebp + eax*2 - 0x18], cx
inc eax
mov ecx, dword [ebp - 0x1c]
cmp eax, ecx
jb 0x100020a0
xor eax, eax
mov word [ebp + ecx*2 - 0x18], ax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100020cd
call fcn.10001ef0
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100069e2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10018de0
mov eax, dword [0x1002200c]
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.1000bf42
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10006a24
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10006b80
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10018d30
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 + 0x10022fd0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1000c24d
mov ecx, dword [esi*4 + 0x10022fd0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x10006b79
cmp eax, dword [ecx + edi + 0x24]
jne 0x10006b79
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10006b79
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1000c24d
add esp, 0x14
test edx, edx
jl 0x10006b79
jg 0x10006aef
test eax, eax
jb 0x10006b79
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10006b79
jl 0x10006b09
cmp dword [ebp - 0x1008], eax
ja 0x10006b79
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10006b27
test ebx, ebx
je 0x10006b60
cmp ecx, edi
jae 0x10006b60
mov al, byte [ecx]
cmp al, 0xd
jne 0x10006b41
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10006b4d
cmp byte [ecx + 1], 0xa
jne 0x10006b4d
inc ecx
jmp 0x10006b4d
movzx eax, al
movsx eax, byte [eax + 0x100221c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10006b27
cmp edx, ebx
jne 0x10006b27
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10006b7e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100034da
leave
ret

Function at 0x1000b04d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000b08c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000b08c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000b08c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000b08c
cmp dword [ecx + 0x74], 0xe
jbe 0x1000b08c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1000c9be
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x10022fd0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1000c9fe
cmp byte [ebx], 0xa
jne 0x1000c9fe
or byte [edi + eax + 0x28], 4
jmp 0x1000ca03
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x1000cb02
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1000cae5
inc eax
cmp dl, 0xd
je 0x1000ca2f
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1000ca55
cmp eax, ecx
jae 0x1000ca63
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1000ca17
jmp 0x1000cb02
push 0
lea eax, [ebp - 0x10]
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 0x1000cae0
cmp dword [ebp - 0x10], 0
je 0x1000cae0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10022fd0]
test byte [eax + edi + 0x28], 0x48
je 0x1000caba
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1000caa5
mov byte [esi], dl
jmp 0x1000cab6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10022fd0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1000cb02
cmp byte [ebp - 1], 0xa
jne 0x1000cac9
cmp esi, ebx
jne 0x1000cac9
mov byte [esi], 0xa
jmp 0x1000cb01
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1000c26b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1000cb02
mov byte [esi], 0xd
jmp 0x1000cb01
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10022fd0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1000caff
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1000cb02
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1000cb0b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x10022fd0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1000cb51
cmp word [ebx], dx
jne 0x1000cb51
or byte [eax + edi + 0x28], 4
jmp 0x1000cb56
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1000ccb9
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1000cc99
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1000cb97
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1000cbcd
cmp eax, edx
jae 0x1000cbdb
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1000cb72
jmp 0x1000ccb9
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000cc94
cmp dword [ebp - 0x18], 0
je 0x1000cc94
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10022fd0]
test byte [eax + edi + 0x28], 0x48
je 0x1000cc6a
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1000cc2e
mov word [esi], cx
jmp 0x1000cc65
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10022fd0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x10022fd0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10022fd0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1000ccb9
pop eax
cmp word [ebp - 4], ax
jne 0x1000cc7a
cmp esi, ebx
jne 0x1000cc7a
mov word [esi], ax
jmp 0x1000ccb6
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1000c26b
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1000ccb9
push 0xd
pop eax
jmp 0x1000cc75
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10022fd0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1000ccb3
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1000ccb9
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret