joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b6270
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push esi
push edi
push ecx
lea edi, [ebp - 0x254]
mov ecx, 0x95
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x51197c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0x80004005
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x20], 0x104
mov word [ebp - 0x230], 0
push 0x206
push 0
lea eax, [ebp - 0x22e]
push eax
call fcn.004b8382
add esp, 0xc
mov dword [ebp - 0x238], 0
mov ecx, dword [ebp - 8]
add ecx, 4
push ecx
push str.CLSID_sInProcServer32
push 0x104
lea edx, [ebp - 0x230]
push edx
call fcn.004b5c30
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jl 0x4b6429
mov esi, esp
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x20c
push ecx
lea edx, [ebp - 0x14]
push edx
push str.CodeBase
lea eax, [ebp - 0x230]
push eax
push SHChangeNotifyDeregister
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp esi, esp
call fcn.004b81e1
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0
jne 0x4b63ac
mov ecx, dword [str.file:___]
mov dword [ebp - 0x250], ecx
mov edx, dword [0x4ddbf8]
mov dword [ebp - 0x24c], edx
mov eax, dword [0x4ddbfc]
mov dword [ebp - 0x248], eax
mov ecx, dword [0x4ddc00]
mov dword [ebp - 0x244], ecx
mov edx, dword [0x4ddc04]
mov dword [ebp - 0x240], edx
mov esi, esp
lea eax, [ebp - 0x250]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x20c
push ecx
call dword [sym.imp.SHLWAPI.dll_StrTrimW]
cmp esi, esp
call fcn.004b81e1
mov dword [ebp - 0xc], 0
jmp 0x4b6429
mov esi, esp
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 8]
add eax, 0x20c
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0x4ddc08
lea edx, [ebp - 0x230]
push edx
push SHChangeNotifyDeregister
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp esi, esp
call fcn.004b81e1
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0
jne 0x4b6429
mov esi, esp
push 0x104
mov eax, dword [ebp - 8]
add eax, 0x20c
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x20c
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp esi, esp
call fcn.004b81e1
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0
je 0x4b6429
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
push edx
mov ecx, ebp
push eax
lea edx, [0x4b645c]
call fcn.004b8204
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b81d2
add esp, 0x254
cmp ebp, esp
call fcn.004b81e1
mov esp, ebp
pop ebp
ret
Function at 0x4b7436
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x51197c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SHChangeNotifyDeregister
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4b750b
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4b74fa
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x4b74e4
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x4b74fa
push eax
push edi
push dword [ebp - 0x110]
call fcn.004b73d3
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x4b750d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004b81d2
leave
ret 4

Function at 0x4ba4c6
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x51197c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004ba325
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004b8382
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4ba515
cmp dword [ebp - 0x1c], 5
jb 0x4ba52d
jmp 0x4ba529
cmp dword [ebp - 0x10], 1
jne 0x4ba52d
cmp dword [ebp - 0x1c], 4
ja 0x4ba529
jne 0x4ba52d
cmp dword [ebp - 0x18], 0
jbe 0x4ba52d
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4e08e0
call fcn.0040d860
test eax, eax
jge 0x4ba54e
mov byte [0x511a31], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004b81d2
add ebp, 0x78
leave
ret
Function at 0x4ba834
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x512454], 0
push esi
jne 0x4ba7a2
call fcn.004ba6c0
test eax, eax
je 0x4ba7e5
mov eax, dword [0x512454]
cmp eax, 1
jne 0x4ba7c3
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4ba7e5
pop esi
ret
push eax
call dword [0x51245c]
test eax, eax
jne 0x4ba82d
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4ba7e9
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x512454]
call dword [0x51245c]
mov edi, eax
test edi, edi
je 0x4ba810
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x4ba82c
lea edi, [esi + 0xff0]
push esi
push dword [0x512454]
call dword [0x512458]
add esi, 0x10
cmp esi, edi
jb 0x4ba816
mov eax, esi
pop edi
pop esi
ret
jmp 0x4ba78f
Function at 0x407c40
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x43d080]
xor eax, ebp
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x180]
call fcn.00404e80
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x160], eax
cmp dword [ebp - 0x160], 0xffffffff
jne 0x407c98
lea eax, [ebp - 0x180]
push eax
mov ecx, dword [ebp + 8]
call fcn.00404e50
lea ecx, [ebp - 0x180]
call fcn.00405d00
mov eax, dword [ebp + 8]
jmp 0x407d64
mov dword [ebp - 0x15c], 0x128
lea ecx, [ebp - 0x15c]
push ecx
mov edx, dword [ebp - 0x160]
push edx
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x407ce5
mov eax, dword [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x180]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00404e50
lea ecx, [ebp - 0x180]
call fcn.00405d00
mov eax, dword [ebp + 8]
jmp 0x407d64
lea ecx, [ebp - 0x1c]
call fcn.00404bd0
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x34]
push eax
call fcn.00407290
add esp, 8
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x188]
push edx
lea ecx, [ebp - 0x180]
call fcn.0040dab0
lea ecx, [ebp - 0x34]
call fcn.00405ba0
lea ecx, [ebp - 0x1c]
call fcn.00405bc0
lea eax, [ebp - 0x15c]
push eax
mov ecx, dword [ebp - 0x160]
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x407ce5
mov edx, dword [ebp - 0x160]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x180]
push eax
mov ecx, dword [ebp + 8]
call fcn.00404e50
lea ecx, [ebp - 0x180]
call fcn.00405d00
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041121e
mov esp, ebp
pop ebp
ret

Function at 0x4081a0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
xor eax, eax
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4081cb
mov dword [ebp - 8], 1
jmp 0x4081d2
mov dword [ebp - 8], 0
movzx eax, byte [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x408320
Capabilities:
Check for kernel debugger via shared user data structure

Disassembly:
push ebp
mov ebp, esp
push ecx
mov al, byte [0x7ffe02d4]
mov byte [ebp - 1], al
movzx ecx, byte [ebp - 1]
and ecx, 1
movzx edx, byte [ebp - 1]
and edx, 2
sub ecx, edx
je 0x408344
mov byte [ebp - 2], 1
jmp 0x408348
mov byte [ebp - 2], 0
movzx eax, byte [ebp - 2]
mov esp, ebp
pop ebp
ret

Function at 0x4083e0
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x30]
mov al, byte [eax + 0x68]
and al, 0x70
cmp al, 0x70
je 0x4083f9
mov eax, 0
jmp 0x4083fe
mov eax, 1
pop ebp
ret

Function at 0x408400
Capabilities:
Check processdebugport

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
push 4
lea ecx, [ebp - 4]
push ecx
push 7
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
inc dword [ebp - 4]
cmp dword [ebp - 4], 1
jne 0x408437
xor al, al
jmp 0x408439
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x408580
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x43b500
push 0x4140f0
mov eax, dword fs:[0]
push eax
add esp, 0xfffffff4
push ebx
push esi
push edi
mov eax, dword [0x43d080]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
push str._s_s_s_s_s_s_s_s_s_s
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 4], 0
mov ebx, dword [eax]
mov byte [ebp - 0x19], 1
mov dword [ebp - 4], 0xfffffffe
mov al, byte [ebp - 0x19]
jmp 0x408600
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408920
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
mov eax, dword [0x43d080]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x268], 0x101
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x408a8c
lea edx, [ebp - 0x208]
push edx
lea ecx, [ebp - 0x220]
call fcn.00404b80
push str.runneradmin
lea ecx, [ebp - 0x254]
call fcn.00404b80
push str.Lain
lea ecx, [ebp - 0x23c]
call fcn.00404b80
lea ecx, [ebp - 0x25d]
call fcn.00404510
push eax
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x254]
push ecx
lea ecx, [ebp - 0x284]
call fcn.00404d50
mov edx, dword [eax + 4]
push edx
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x27c]
call fcn.00404f10
push fcn.00405bc0
push 2
push 0x18
lea ecx, [ebp - 0x254]
push ecx
call fcn.00406ee0
lea edx, [ebp - 0x27c]
mov dword [ebp - 0x264], edx
mov ecx, dword [ebp - 0x264]
call fcn.0040ba90
mov dword [ebp - 0x25c], eax
mov ecx, dword [ebp - 0x264]
call fcn.0040baf0
mov dword [ebp - 0x26c], eax
jmp 0x408a16
mov eax, dword [ebp - 0x25c]
add eax, 0x18
mov dword [ebp - 0x25c], eax
mov ecx, dword [ebp - 0x25c]
cmp ecx, dword [ebp - 0x26c]
je 0x408a74
mov edx, dword [ebp - 0x25c]
mov dword [ebp - 0x270], edx
mov eax, dword [ebp - 0x270]
push eax
lea ecx, [ebp - 0x220]
push ecx
call fcn.00401b30
add esp, 8
movzx edx, al
test edx, edx
je 0x408a72
mov byte [ebp - 0x255], 1
lea ecx, [ebp - 0x27c]
call fcn.00405d40
lea ecx, [ebp - 0x220]
call fcn.00405bc0
mov al, byte [ebp - 0x255]
jmp 0x408a92
jmp 0x408a07
lea ecx, [ebp - 0x27c]
call fcn.00405d40
lea ecx, [ebp - 0x220]
call fcn.00405bc0
jmp 0x408a90
xor al, al
jmp 0x408a92
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041121e
mov esp, ebp
pop ebp
ret
Function at 0x40e9b0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
rdtsc
mov dword [ebp - 8], eax
rdtsc
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 8]
cmp eax, 0xff
jae 0x40e9d3
xor al, al
jmp 0x40e9d5
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x40fad0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], ecx
cmp dword [ebp + 0x10], 0
jg 0x40faf0
jl 0x40fae7
cmp dword [ebp + 0xc], 0
ja 0x40faf0
xor eax, eax
xor edx, edx
jmp 0x40fc27
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x40fb12
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.0040fc30
jmp 0x40fc27
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
call fcn.0040a140
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x40fb81
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.00403d20
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
call fcn.0040d7d0
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.0040c610
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 8]
call fcn.0040d720
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
je 0x40fc18
mov ecx, dword [ebp - 8]
call fcn.0040b280
mov dword [ebp - 0x18], 0xfff
cmp dword [ebp - 4], 0xfff
jbe 0x40fbf1
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.00416bb3
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
cmp dword [ebp - 0x10], 0xfff
je 0x40fbef
xor eax, eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
sbb edx, eax
mov eax, ecx
jmp 0x40fc27
jmp 0x40fb9d
cmp dword [ebp - 4], 0
jbe 0x40fc18
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.00416bb3
add esp, 0x10
mov ecx, dword [ebp - 4]
sub ecx, eax
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
sbb ecx, edx
mov edx, ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x411a07
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x411a46
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x411a46
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x411a46
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x411a46
cmp dword [ecx + 0x74], 0xe
jbe 0x411a46
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x41edfc
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x436590
push 0x436588
push str.FlsAlloc
push 0x1f
call fcn.0041ec67
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ee30
push dword [ebp + 8]
mov ecx, esi
call dword [0x42f1d0]
call esi
jmp 0x41ee36
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41ee7a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4365a0
push 0x436598
push str.FlsGetValue
push 0x21
call fcn.0041ec67
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41eeb1
push dword [ebp + 8]
mov ecx, esi
call dword [0x42f1d0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41eeb9
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4365a8
push 0x4365a0
push str.FlsSetValue
push 0x22
call fcn.0041ec67
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41eef3
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42f1d0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x42097a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00411270
mov eax, dword [0x43d080]
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.0041f42f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4209bc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x420b18
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042dd00
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 + 0x43ece0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00421977
mov ecx, dword [esi*4 + 0x43ece0]
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 0x420b11
cmp eax, dword [ecx + edi + 0x24]
jne 0x420b11
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 0x420b11
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00421977
add esp, 0x14
test edx, edx
jl 0x420b11
jg 0x420a87
test eax, eax
jb 0x420b11
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x420b11
jl 0x420aa1
cmp dword [ebp - 0x1008], eax
ja 0x420b11
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x420abf
test ebx, ebx
je 0x420af8
cmp ecx, edi
jae 0x420af8
mov al, byte [ecx]
cmp al, 0xd
jne 0x420ad9
lea eax, [edi - 1]
cmp ecx, eax
jae 0x420ae5
cmp byte [ecx + 1], 0xa
jne 0x420ae5
inc ecx
jmp 0x420ae5
movzx eax, al
movsx eax, byte [eax + 0x43d348]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x420abf
cmp edx, ebx
jne 0x420abf
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x420b16
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041121e
leave
ret
Function at 0x420e0f
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 + 0x43ece0]
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 0x420e4f
cmp byte [ebx], 0xa
jne 0x420e4f
or byte [edi + eax + 0x28], 4
jmp 0x420e54
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 0x420f53
mov dl, byte [eax]
cmp dl, 0x1a
je 0x420f36
inc eax
cmp dl, 0xd
je 0x420e80
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x420ea6
cmp eax, ecx
jae 0x420eb4
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 0x420e68
jmp 0x420f53
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 0x420f31
cmp dword [ebp - 0x10], 0
je 0x420f31
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x43ece0]
test byte [eax + edi + 0x28], 0x48
je 0x420f0b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x420ef6
mov byte [esi], dl
jmp 0x420f07
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x43ece0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x420f53
cmp byte [ebp - 1], 0xa
jne 0x420f1a
cmp esi, ebx
jne 0x420f1a
mov byte [esi], 0xa
jmp 0x420f52
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00421995
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x420f53
mov byte [esi], 0xd
jmp 0x420f52
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x43ece0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x420f50
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x420f53
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x420f5c
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 + 0x43ece0]
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 0x420fa2
cmp word [ebx], dx
jne 0x420fa2
or byte [eax + edi + 0x28], 4
jmp 0x420fa7
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 0x42110a
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 0x4210ea
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x420fe8
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x42101e
cmp eax, edx
jae 0x42102c
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 0x420fc3
jmp 0x42110a
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 0x4210e5
cmp dword [ebp - 0x18], 0
je 0x4210e5
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x43ece0]
test byte [eax + edi + 0x28], 0x48
je 0x4210bb
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 0x42107f
mov word [esi], cx
jmp 0x4210b6
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x43ece0]
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 + 0x43ece0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x43ece0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x42110a
pop eax
cmp word [ebp - 4], ax
jne 0x4210cb
cmp esi, ebx
jne 0x4210cb
mov word [esi], ax
jmp 0x421107
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00421995
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x42110a
push 0xd
pop eax
jmp 0x4210c6
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x43ece0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x421104
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x42110a
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret