joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10018e81
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 + 0x10037a48]
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 0x10018ec7
cmp word [ebx], dx
jne 0x10018ec7
or byte [eax + edi + 0x28], 4
jmp 0x10018ecc
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 0x1001902f
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 0x1001900f
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10018f0d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10018f43
cmp eax, edx
jae 0x10018f51
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 0x10018ee8
jmp 0x1001902f
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 0x1001900a
cmp dword [ebp - 0x18], 0
je 0x1001900a
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10037a48]
test byte [eax + edi + 0x28], 0x48
je 0x10018fe0
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 0x10018fa4
mov word [esi], cx
jmp 0x10018fdb
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10037a48]
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 + 0x10037a48]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10037a48]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1001902f
pop eax
cmp word [ebp - 4], ax
jne 0x10018ff0
cmp esi, ebx
jne 0x10018ff0
mov word [esi], ax
jmp 0x1001902c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1001869e
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1001902f
push 0xd
pop eax
jmp 0x10018feb
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10037a48]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10019029
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1001902f
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10019a91
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002b1c8
push 0x1002b1c0
push str.FlsAlloc
push 0x1f
call fcn.10019959
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10019ac5
push dword [ebp + 8]
mov ecx, esi
call dword [0x10027164]
call esi
jmp 0x10019acb
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10019b0f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002b1d8
push 0x1002b1d0
push str.FlsGetValue
push 0x21
call fcn.10019959
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10019b46
push dword [ebp + 8]
mov ecx, esi
call dword [0x10027164]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10019b4e
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002b1e0
push 0x1002b1d8
push str.FlsSetValue
push 0x22
call fcn.10019959
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10019b88
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10027164]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001debc
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1001df59
push ebx
push esi
call fcn.1001de85
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1001cc5a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001df06
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001df58
push edi
push eax
call fcn.10014419
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001df26
call fcn.100143df
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001df57
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001cc5a
add esp, 0x20
test eax, eax
jne 0x1001df45
push edi
call fcn.100143df
jmp 0x1001df4d
push ebx
call fcn.100143df
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10021bed
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.100157e6
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10021c5c
cmp esi, dword [ebp - 4]
je 0x10021c57
cmp dword [ebp + 0xc], 0
je 0x10021c57
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10021c34
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1002173f
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10021c5e
xor eax, eax
inc eax
jmp 0x10021c5e
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10021cc3
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10036084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.100157e6
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.100157e6
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x10021d3a
cmp word [ecx], dx
je 0x10021d3a
mov eax, dword [0x1002b83c]
push edi
dec eax
push eax
push 0x1002b728
call fcn.10021c62
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10021dad
cmp word [eax], dx
je 0x10021dad
mov eax, dword [edi]
test eax, eax
je 0x10021d5e
cmp word [eax], dx
je 0x10021d5e
lea eax, [ebp - 0x10]
push eax
call fcn.10021645
jmp 0x10021d67
lea eax, [ebp - 0x10]
push eax
call fcn.100216e0
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10021dd7
mov eax, dword [0x1002b724]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1002b418
call fcn.10021c62
add esp, 0xc
test al, al
je 0x10021dd7
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10021da2
cmp word [eax], di
je 0x10021da2
lea eax, [ebp - 0x10]
push eax
call fcn.10021645
pop ecx
jmp 0x10021dd9
lea eax, [ebp - 0x10]
push eax
call fcn.100216e0
jmp 0x10021d9f
mov eax, dword [edi]
test eax, eax
je 0x10021dc4
cmp word [eax], dx
je 0x10021dc4
lea eax, [ebp - 0x10]
push eax
call fcn.100215fa
pop ecx
jmp 0x10021dd7
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x10021ea2
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10021ae7
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10021ea2
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10021ea2
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10021ea2
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10021e2f
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10019c8e
test ebx, ebx
je 0x10021e9d
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10019c8e
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10021ea2
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10021ea2
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10024862
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10021ea4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10008fe5
leave
ret
Function at 0x10024bd1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.10024b4d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10024d40
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10024d40
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10024cf5
jg 0x10024c2d
test eax, eax
je 0x10024ceb
push 1
push 0x1000
call fcn.10017388
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10024c50
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10024ce2
push 0x8000
push ebx
call fcn.10024a7e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10024c79
jg 0x10024c74
cmp ecx, 0x1000
jb 0x10024c79
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1001823c
add esp, 0x10
cmp eax, 0xffffffff
je 0x10024cbe
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10024c74
jl 0x10024ca5
test ecx, ecx
jne 0x10024c66
push dword [ebp - 0xc]
push ebx
call fcn.10024a7e
push esi
call fcn.100143df
add esp, 0xc
xor ebx, ebx
jmp 0x10024d4e
cmp byte [edi + 0x24], 0
je 0x10024cd5
cmp dword [edi + 0x20], 5
jne 0x10024cd5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10024ce0
mov ebx, dword [edi + 0x18]
jmp 0x10024ce2
xor ebx, ebx
push esi
call fcn.100143df
pop ecx
jmp 0x10024d4e
test ecx, ecx
jg 0x10024cb7
jl 0x10024cf5
test eax, eax
jae 0x10024cb7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1001869e
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10024d15
cmp byte [edi + 0x1c], 0
je 0x10024cb7
jmp 0x10024d46
push ebx
call fcn.1002227d
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10024cb7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10024d4e
cmp byte [edi + 0x1c], 0
je 0x10024d4b
mov ebx, dword [edi + 0x18]
jmp 0x10024d4e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1001869e
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10025750
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002577d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002577d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x100010a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x100010b8
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100010ea
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x100010e6
cmp esi, eax
jae 0x100010ea
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x100010d8
cmp esi, eax
jb 0x100010f0
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x10001100
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
mov ecx, 0x10009410
call fcn.10005983
mov ebx, eax
mov dword [ebp - 4], 1
test ebx, ebx
je 0x100011b4
test esi, esi
jne 0x100011b4
mov eax, dword [ebp + 8]
shr eax, 4
inc eax
push esi
movzx ecx, ax
push ecx
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
je 0x10001198
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10001192
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10001192
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
add eax, esi
and ecx, 0xf
jbe 0x10001181
cmp esi, eax
jae 0x10001185
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10001173
cmp esi, eax
jb 0x10001189
xor eax, eax
jmp 0x10001192
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
mov esi, eax
test eax, eax
jne 0x100011bd
mov edi, dword [ebp - 4]
push edi
mov ecx, 0x10009410
call fcn.10005983
mov ebx, eax
inc edi
mov dword [ebp - 4], edi
test ebx, ebx
jne 0x10001125
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100012a0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x10009034]
xor eax, esp
mov dword [esp + 0x194], eax
push ebx
push esi
lea esi, [edi + 4]
call fcn.10002490
cmp dword [esi + 0x808], 0
je 0x100012d1
xor eax, eax
jmp 0x10001304
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov ebx, dword [sym.imp.WS2_32.dll_WSAStartup]
lea eax, [esp + 8]
push eax
push 0x101
call ebx
test eax, eax
je 0x100012ff
lea ecx, [esp + 8]
push ecx
push 0x202
call ebx
test eax, eax
jne 0x100012cd
mov eax, 1
mov ecx, dword [esp + 0x19c]
mov dword [esi + 0x834], eax
pop esi
pop ebx
xor ecx, esp
mov dword [edi], 0
mov eax, edi
call fcn.10005c32
mov esp, ebp
pop ebp
ret
Function at 0x10001330
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10006b54
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x10009034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [0x1000978c]
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str...DeviceList.xml
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10001459
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x218]
call fcn.10001590
mov eax, 1
mov dword [ebp - 4], 0
test byte [0x10009878], al
jne 0x100013fd
or dword [0x10009878], eax
mov byte [ebp - 4], al
call fcn.100035c0
push 0x10006bd0
call fcn.10005d2e
add esp, 4
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x21c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x220], esp
mov esi, esp
call fcn.10002370
add eax, 0x10
push 0x10009860
mov dword [esi], eax
call fcn.100037b0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10001455
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [edi], esi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10005c32
mov esp, ebp
pop ebp
ret
Function at 0x10001990
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x10009034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, edx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
shr esi, 4
inc esi
test esi, esi
jle 0x10001ab2
mov dword [ebp - 0x2c], esi
push ebx
mov ecx, dword [ebp - 0x38]
xor eax, eax
push eax
lea edx, [ebp - 0x28]
push edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x10001aa8
cmp esi, 0x10
jne 0x10001a80
mov eax, edi
call fcn.10001ad0
cmp byte [edi], 0
jne 0x10001a31
xor esi, esi
lea ebx, [esi + 2]
push 1
lea edx, [ebp + esi - 0x24]
push edx
lea ecx, [ebp + esi - 0x14]
push edi
lea eax, [edi + 1]
call fcn.10001b30
add esi, 8
dec ebx
jne 0x10001a12
mov esi, dword [ebp - 0x28]
jmp 0x10001a91
xor ebx, ebx
mov dword [ebp - 0x34], 2
lea ebx, [ebx]
push 1
lea esi, [ebp + ebx - 0x24]
push esi
lea ecx, [ebp + ebx - 0x14]
push edi
lea eax, [edi + 1]
call fcn.10001b30
push 0
push esi
push edi
lea eax, [edi + 0x301]
mov ecx, esi
call fcn.10001b30
push 1
push esi
push edi
lea eax, [edi + 1]
mov ecx, esi
call fcn.10001b30
add ebx, 8
dec dword [ebp - 0x34]
jne 0x10001a40
mov esi, dword [ebp - 0x28]
jmp 0x10001a91
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x24]
push ecx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
push esi
mov esi, dword [ebp - 0x30]
lea edx, [ebp - 0x24]
push edx
push esi
call sub.MSVCR100.dll_memcpy
add esp, 0xc
add esi, dword [ebp - 0x28]
mov dword [ebp - 0x30], esi
dec dword [ebp - 0x2c]
jne 0x100019c2
pop ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.10005c32
mov esp, ebp
pop ebp
ret 4
Function at 0x10001b30
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, eax
mov esi, ecx
xor eax, eax
lea esp, [esp]
mov edx, eax
sar edx, 3
mov dl, byte [edx + esi]
mov cl, al
and cl, 7
sar dl, cl
inc eax
and dl, 1
mov byte [eax + 0x100097cf], dl
cmp eax, 0x40
jl 0x10001b40
xor eax, eax
movsx ecx, byte [eax + 0x10009068]
movzx edx, byte [ecx + 0x100097cf]
mov ecx, dword [ebp + 8]
mov byte [ecx + eax + 0x601], dl
movsx edx, byte [eax + 0x10009069]
movzx edx, byte [edx + 0x100097cf]
mov byte [ecx + eax + 0x602], dl
movsx edx, byte [eax + 0x1000906a]
movzx edx, byte [edx + 0x100097cf]
mov byte [ecx + eax + 0x603], dl
movsx edx, byte [eax + 0x1000906b]
movzx edx, byte [edx + 0x100097cf]
mov byte [ecx + eax + 0x604], dl
add eax, 4
cmp eax, 0x40
jl 0x10001b60
push ebx
mov eax, ecx
add eax, 0x601
push 0x40
push eax
push 0x100097d0
mov dword [ebp - 4], eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
cmp byte [ebp + 0x10], 0
jne 0x10001c6a
mov ebx, edi
mov dword [ebp + 0x10], 0x10
lea ecx, [ecx]
mov ecx, 8
mov esi, 0x100097f0
mov edi, 0x10009840
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
mov edi, 0x100097f0
call fcn.10001f80
xor eax, eax
movzx ecx, byte [eax + 0x100097d0]
movzx edx, byte [eax + 0x100097d1]
xor byte [eax + 0x100097f0], cl
xor byte [eax + 0x100097f1], dl
movzx ecx, byte [eax + 0x100097d2]
movzx edx, byte [eax + 0x100097d3]
xor byte [eax + 0x100097f2], cl
xor byte [eax + 0x100097f3], dl
add eax, 4
cmp eax, 0x20
jl 0x10001c10
mov ecx, 8
mov esi, 0x10009840
mov edi, 0x100097d0
add ebx, 0x30
dec dword [ebp + 0x10]
rep movsd dword es:[edi], dword [esi]
jne 0x10001bf0
jmp 0x10001cfb
mov dword [ebp + 0x10], 0xf
lea ebx, [edi + 0x2d0]
jmp 0x10001c80
mov ecx, 8
mov esi, 0x100097d0
mov edi, 0x10009840
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
mov edi, 0x100097d0
call fcn.10001f80
xor eax, eax
movzx ecx, byte [eax + 0x100097f0]
movzx edx, byte [eax + 0x100097f1]
xor byte [eax + 0x100097d0], cl
xor byte [eax + 0x100097d1], dl
movzx ecx, byte [eax + 0x100097f2]
movzx edx, byte [eax + 0x100097f3]
xor byte [eax + 0x100097d2], cl
xor byte [eax + 0x100097d3], dl
add eax, 4
cmp eax, 0x20
jl 0x10001ca0
mov eax, dword [ebp + 0x10]
dec eax
mov ecx, 8
mov esi, 0x10009840
mov edi, 0x100097f0
sub ebx, 0x30
rep movsd dword es:[edi], dword [esi]
mov dword [ebp + 0x10], eax
test eax, eax
jns 0x10001c80
xor eax, eax
pop ebx
mov edi, edi
movsx ecx, byte [eax + 0x100090a8]
movzx edx, byte [ecx + 0x100097cf]
mov ecx, dword [ebp + 8]
mov byte [ecx + eax + 0x601], dl
movsx edx, byte [eax + 0x100090a9]
movzx edx, byte [edx + 0x100097cf]
mov byte [ecx + eax + 0x602], dl
movsx edx, byte [eax + 0x100090aa]
movzx edx, byte [edx + 0x100097cf]
mov byte [ecx + eax + 0x603], dl
movsx edx, byte [eax + 0x100090ab]
movzx edx, byte [edx + 0x100097cf]
mov byte [ecx + eax + 0x604], dl
add eax, 4
cmp eax, 0x40
jl 0x10001d00
mov eax, dword [ebp - 4]
push 0x40
push eax
push 0x100097d0
call sub.MSVCR100.dll_memcpy
mov esi, dword [ebp + 0xc]
add esp, 0xc
mov edi, 0x100097d0
call fcn.10002190
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc