joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f9c7
Capabilities:
Get file version info

Disassembly:
push 0xf0
mov eax, 0x46bc68
call fcn.004516bd
mov eax, dword [ebp + 8]
push eax
mov esi, ebx
mov dword [ebp - 0x54], ebx
call fcn.00402552
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebx + 0x1c], esi
mov dword [ebx + 0x20], esi
mov dword [ebx + 0x24], esi
mov byte [ebp - 4], 1
cmp dword [ebx + 0x14], 0x10
mov dword [ebp - 0x40], esi
jb 0x42fa03
mov eax, dword [ebx]
jmp 0x42fa05
mov eax, ebx
lea ecx, [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
cmp eax, esi
jne 0x42fabd
push str.System_error
mov dword [ebp - 0x4c], str.c:_workspace_8_2_build_windows_i586_cygwin_jdk8u181_11358_install_src_windows_common_FileUtils.cpp
mov dword [ebp - 0x48], str.VersionResource::VersionResource
mov dword [ebp - 0x44], 0x461
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x50], esp
push ebx
call fcn.00402552
lea eax, [ebp - 0xfc]
push eax
mov byte [ebp - 4], 2
call fcn.00402897
lea eax, [ebp - 0xfc]
push str.GetFileVersionInfoSize_
push eax
mov byte [ebp - 4], 3
call fcn.00405650
pop ecx
pop ecx
lea esi, [ebp - 0xfc]
mov byte [ebp - 4], 4
call fcn.004043f5
mov esi, eax
push 0x47e3ac
push esi
call fcn.00405650
pop ecx
pop ecx
mov ecx, dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
push esi
lea edi, [ebp - 0x60]
call fcn.00436725
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x3c]
push ecx
lea esi, [ebp - 0x4c]
mov ecx, eax
call fcn.0041c4f8
lea eax, [ebp - 0x3c]
mov dword [esp], 0x4864a4
push eax
call fcn.00451224
mov esi, eax
lea eax, [ebx + 0x1c]
call fcn.004128e4
mov ecx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x20]
sub eax, ecx
cmp dword [ebx + 0x14], 0x10
jb 0x42fad9
mov edx, dword [ebx]
jmp 0x42fadb
mov edx, ebx
mov edi, dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
push ecx
push eax
push dword [ebp - 0x40]
push edx
call edi
test eax, eax
jne 0x42fb79
push str.System_error
mov dword [ebp - 0x4c], str.c:_workspace_8_2_build_windows_i586_cygwin_jdk8u181_11358_install_src_windows_common_FileUtils.cpp
mov dword [ebp - 0x48], str.VersionResource::VersionResource
mov dword [ebp - 0x44], 0x46a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x50], esp
push ebx
call fcn.00402552
lea eax, [ebp - 0xfc]
push eax
mov byte [ebp - 4], 6
call fcn.00402897
lea eax, [ebp - 0xfc]
push str.GetFileVersionInfo_
push eax
mov byte [ebp - 4], 7
call fcn.00405650
pop ecx
pop ecx
lea esi, [ebp - 0xfc]
mov byte [ebp - 4], 8
call fcn.004043f5
mov esi, eax
push 0x47e3ac
push esi
call fcn.00405650
pop ecx
pop ecx
mov ecx, edi
push esi
lea edi, [ebp - 0x60]
call fcn.00436725
mov byte [ebp - 4], 9
jmp 0x42fa9f
mov eax, ebx
call fcn.00451740
ret 4
Function at 0x431992
Capabilities:
Create process on windows

Disassembly:
push 0x2c
mov eax, 0x469ff8
call fcn.004516bd
cmp dword [0x49a024], 1
mov ebx, ecx
jg 0x4319ed
lea eax, [ebp - 0x30]
push str.Executor.exec__:
lea edi, [ebx + 0x38]
push eax
call fcn.004089f6
pop ecx
pop ecx
and dword [ebp - 4], 0
push str.Executor::startExecution
push 0x93
push str.c:_workspace_8_2_build_windows_i586_cygwin_jdk8u181_11358_install_src_windows_common_Executor.cpp
push 1
mov edx, eax
mov ecx, 0x49a024
call fcn.0042432e
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.00403353
push 0x44
pop esi
push esi
lea edi, [ebx + 0x7c]
push 0
push edi
call fcn.0044b630
add esp, 0xc
push 0x10
lea eax, [ebx + 0x6c]
push 0
push eax
mov dword [edi], esi
call fcn.0044b630
add esp, 0xc
cmp dword [ebx + 0xc0], 1
jne 0x431a31
or dword [ebx + 0xa8], 1
xor eax, eax
mov word [ebx + 0xac], ax
mov dword [ebx + 0x60], 0x8000000
cmp byte [ebx + 0xcd], 0
je 0x431a41
mov esi, ebx
call fcn.00431ed2
lea eax, [ebx + 0x38]
mov edx, dword [eax + 0x14]
cmp edx, 0x10
jb 0x431a50
mov esi, dword [eax]
jmp 0x431a52
mov esi, eax
mov ecx, dword [eax + 0x10]
add ecx, esi
cmp edx, 0x10
jb 0x431a5e
mov eax, dword [eax]
push dword [ebp - 0x35]
xor edx, edx
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
call fcn.0041405a
mov dword [ebp - 4], 1
lea eax, [ebp - 0x31]
lea esi, [ebp - 0x24]
mov byte [ebp - 0x31], 0
call fcn.0040ecb7
cmp dword [ebx + 0x14], 0x10
jb 0x431a97
mov ecx, dword [ebx]
jmp 0x431a99
mov ecx, ebx
lea eax, [ebx + 0x6c]
push eax
push edi
push dword [ebx + 0x68]
push dword [ebx + 0x64]
push dword [ebx + 0x60]
push dword [ebx + 0x5c]
push dword [ebx + 0x58]
push dword [ebx + 0x54]
push dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
setne bl
cmp dword [ebp - 0x24], 0
je 0x431ace
push dword [ebp - 0x24]
call fcn.0044957e
pop ecx
mov al, bl
call fcn.00451740
ret
Function at 0x4330d2
Capabilities:
Identify system language via api

Disassembly:
push 4
mov eax, 0x466548
call fcn.00451654
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
push eax
mov eax, esi
call fcn.004330a6
pop ecx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
push eax
mov eax, esi
call fcn.004330a6
pop ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
push eax
mov eax, esi
call fcn.004330a6
mov eax, esi
mov dword [esp], 0x409
call fcn.004330a6
pop ecx
mov eax, esi
call fcn.0045172c
ret

Function at 0x436890
Capabilities:
Create thread

Disassembly:
push 0x78
mov eax, 0x46d398
call fcn.004516bd
mov eax, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x5c], eax
cmp esi, ebx
jne 0x4368b2
or dword [eax], 0xffffffff
jmp 0x436998
mov dword [ebp - 0x60], ebx
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 4], ebx
call fcn.00436461
mov byte [ebp - 4], 1
or dword [ebp - 0x40], 0xffffffff
lea eax, [ebp - 0x58]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x40]
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
push 0x436875
push ebx
push ebx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], ebx
call fcn.0044f886
mov edi, eax
add esp, 0x18
cmp edi, ebx
jne 0x436932
lea esi, [ebp - 0x78]
call fcn.0043616e
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
push ecx
lea esi, [ebp - 0x6c]
mov ecx, eax
mov dword [ebp - 0x6c], str.c:_workspace_8_2_build_windows_i586_cygwin_jdk8u181_11358_install_src_ipc_windows_ThreadImpl.cpp
mov dword [ebp - 0x68], str.ipc::Thread::start
mov dword [ebp - 0x64], 0x70
call fcn.0043652e
lea eax, [ebp - 0x3c]
mov dword [esp], 0x48688c
push eax
call fcn.00451224
lea eax, [ebp - 0x58]
lea esi, [ebp - 0x84]
call fcn.00435f4f
lea eax, [ebp - 0x58]
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 3
push 1
push dword [ebp - 0x50]
mov dword [ebp - 0x44], edi
call fcn.004362f6
jmp 0x43696b
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax + 8]
call fcn.0043618e
cmp dword [ebp - 0x44], ebx
jne 0x436959
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 1
call fcn.00435f99
mov eax, dword [ebp - 0x40]
mov esi, dword [ebp - 0x5c]
mov dword [esi], eax
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x60], ebx
mov byte [ebp - 4], bl
call fcn.004364d5
mov eax, esi
call fcn.00451740
ret
Function at 0x43f4ee
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46a892
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x4956a0]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push esi
push edi
mov eax, dword [0x4956a0]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
xor ebx, ebx
mov esi, edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], esi
cmp byte [ecx + 0x38], bl
je 0x43f54e
push esi
mov ebx, ecx
call fcn.0043f1f3
mov eax, esi
jmp 0x43f737
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
lea edx, [esp + 0x14]
mov dword [esp + 0xc0], ebx
call fcn.0043f32a
test al, al
jne 0x43f61b
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
lea ebx, [esp + 0x58]
mov byte [esp + 0xc0], 1
call fcn.0044234a
push 0xc8
lea edx, [esp + 0x28]
mov ecx, eax
mov byte [esp + 0xc4], 2
call fcn.0043f32a
movzx eax, al
push eax
call fcn.0043fa09
pop ecx
pop ecx
push 0
push 1
mov ecx, ebx
mov byte [esp + 0xc8], 1
call fcn.00403353
push dword [esp + 0x34]
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
push esi
push ebx
push dword [esp + 0x34]
lea ecx, [esp + 0x34]
call fcn.00430333
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x28], esi
lea esi, [esp + 0x24]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], eax
mov byte [esp + 0xc0], 0
call fcn.004204a0
xor ebx, ebx
mov edi, dword [esp + 0x14]
mov esi, edi
cmp edi, dword [esp + 0x18]
je 0x43f681
push 0x47e68c
call fcn.004298d8
pop ecx
test al, al
jne 0x43f63f
add esi, 0x1c
cmp esi, dword [esp + 0x18]
jne 0x43f627
cmp dword [esp + 0x18], esi
je 0x43f67d
cmp edi, esi
je 0x43f662
lea eax, [esi + 0x1c]
push eax
add esi, 0xffffffe4
push esi
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00420ec0
jmp 0x43f61b
push 0x137
lea esi, [esp + 0x28]
call fcn.00439e9d
push 0x486924
mov eax, esi
push eax
call fcn.00451224
cmp edi, dword [esp + 0x18]
sete al
movzx eax, al
push eax
call fcn.0043f9e1
pop ecx
push dword [esp + 0x14]
lea esi, [esp + 0x40]
add edi, 0x1c
call fcn.00402552
mov byte [esp + 0xc0], 4
jmp 0x43f6e6
lea eax, [esp + 0x58]
push 0x47b7c4
push eax
call fcn.004089f6
pop ecx
pop ecx
push ebx
push eax
or eax, 0xffffffff
lea esi, [esp + 0x44]
mov byte [esp + 0xc8], 5
call fcn.004055bb
push ebx
push 1
lea ecx, [esp + 0x60]
mov byte [esp + 0xc8], 4
call fcn.00403353
add edi, 0x1c
cmp edi, dword [esp + 0x18]
jne 0x43f6a8
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.0043f1aa
push dword [esp + 0x38]
mov byte [esp + 0xc4], 6
lea ebx, [esp + 0x78]
mov byte [esp + 0xb0], 1
call fcn.0043f1f3
call fcn.0043bcf6
push 0
push 1
lea ecx, [esp + 0x44]
call fcn.00403353
lea esi, [esp + 0x14]
call fcn.004204a0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.00449589
mov esp, ebp
pop ebp
ret
Function at 0x442ebe
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46933f
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x4956a0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
xor ebx, ebx
lea esi, [esp + 0x14]
mov dword [esp + 0x14], ebx
call fcn.0043f7b5
mov cl, byte [eax + 4]
mov edi, dword [eax]
mov byte [esp + 0x10], cl
mov dword [esp + 0x1c], edi
mov byte [eax + 4], bl
mov dword [esp + 0x2c], edi
mov byte [esp + 0x30], cl
mov dword [esp + 0x50], ebx
cmp byte [esp + 0x18], bl
je 0x442f29
push dword [esp + 0x14]
mov byte [esp + 0x1c], bl
call fcn.004482f8
pop ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov esi, 0x100001
lea eax, [esp + 0x34]
mov byte [esp + 0x50], 1
call fcn.0042c009
push edi
mov edi, dword [esp + 0x38]
dec esi
push esi
push 1
push edi
call fcn.00450a39
add esp, 0x10
mov dword [esp + 0x14], eax
cmp eax, esi
jbe 0x442f7d
push 0xc8
lea esi, [esp + 0x20]
call fcn.00439e9d
push 0x486924
mov eax, esi
push eax
call fcn.00451224
push dword [esp + 0x1c]
call fcn.004507c7
pop ecx
test eax, eax
je 0x442fa2
push 0x133
lea esi, [esp + 0x20]
call fcn.00439e9d
push 0x486924
mov eax, esi
jmp 0x442f77
push dword [esp + 0x1c]
call fcn.0045079f
pop ecx
test eax, eax
jne 0x442fc7
push 0x13b
lea esi, [esp + 0x20]
call fcn.00439e9d
push 0x486924
mov eax, esi
jmp 0x442f77
mov esi, dword [esp + 0x14]
mov ecx, esi
mov eax, edi
call fcn.00442e8a
lea eax, [edi + esi]
mov esi, dword [ebp + 8]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
cmp edi, eax
je 0x442ff5
sub eax, edi
push eax
push edi
mov ecx, esi
call fcn.00403800
cmp edi, ebx
je 0x443000
push edi
call fcn.0044957e
pop ecx
cmp byte [esp + 0x10], bl
je 0x443010
push dword [esp + 0x1c]
call fcn.004482f8
pop ecx
mov eax, esi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44454a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, eax
xor ecx, ecx
cmp dword [ebp + 0x14], ecx
jl 0x4445ca
jg 0x444576
cmp esi, ecx
jbe 0x4445ca
cmp dword [ebp + 0x14], ecx
jg 0x444576
jl 0x444572
cmp esi, 0x7fffffff
jae 0x444576
mov eax, esi
jmp 0x44457b
mov eax, SysReAllocString
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 4], ecx
je 0x4445bb
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4445a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x4445c5
jmp 0x4445bb
mov eax, dword [ebp - 4]
test eax, eax
jle 0x4445b6
add ebx, eax
cdq
sub esi, eax
sbb dword [ebp + 0x14], edx
jmp 0x444556
cmp eax, 0xffffffff
jne 0x4445c5
call fcn.0044f968
cmp dword [eax], 4
je 0x444556
or eax, 0xffffffff
jmp 0x4445cc
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x405b24
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
sar eax, 2
push edi
mov edi, dword [ebp + 0x14]
test eax, eax
je 0x405ba4
push esi
xor esi, esi
cmp dword [ebp + 0x18], esi
jbe 0x405ba3
push ebx
mov ebx, 0x482688
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x6c
xor al, 0x74
push str.Own_head
push ebx
mov byte [edi + esi], al
call fcn.004013cb
push eax
call fcn.00402409
mov al, byte [edi + esi]
add al, 0x4e
xor al, 0xdc
push str.Earth
push ebx
mov byte [edi + esi], al
call fcn.004013cb
push eax
call fcn.00402409
mov al, byte [edi + esi]
xor al, 0xac
sub al, 0x65
xor al, 0x22
sub al, 0x73
push 0x428558
mov byte [edi + esi], al
call fcn.0040f67e
xor byte [edi + esi], al
add esp, 0x1c
inc esi
cmp esi, dword [ebp + 0x18]
jb 0x405b46
pop ebx
pop esi
lea ecx, [ebp + 8]
call fcn.0040563b
pop edi
pop ebp
ret 0x14

Function at 0x409508
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x409529
jl 0x409520
test edi, edi
jne 0x409529
xor eax, eax
xor edx, edx
jmp 0x4095ea
cmp dword [ebx + 0x38], 0
je 0x40953e
push eax
push edi
push dword [ebp + 8]
call fcn.004095f0
jmp 0x4095ea
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x409585
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x409585
cmp eax, edi
jb 0x40955f
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040ad50
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x40958b
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4095df
mov ecx, ebx
call fcn.00408da2
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4095ca
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.004133f8
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x4095df
jmp 0x40959d
test edx, edx
je 0x4095df
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.004133f8
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x40a8af
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041cb19

Function at 0x41d0a2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040ad00
mov eax, dword [0x480a00]
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.0041ac65
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41d0e4
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41d240
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00426830
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 + 0x483030]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041de41
mov ecx, dword [esi*4 + 0x483030]
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 0x41d239
cmp eax, dword [edi + ecx + 0x24]
jne 0x41d239
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 0x41d239
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041de41
add esp, 0x14
test edx, edx
jl 0x41d239
jg 0x41d1af
test eax, eax
jb 0x41d239
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41d239
jl 0x41d1c9
cmp dword [ebp - 0x1008], eax
ja 0x41d239
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41d1e7
test ebx, ebx
je 0x41d220
cmp ecx, edi
jae 0x41d220
mov al, byte [ecx]
cmp al, 0xd
jne 0x41d201
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41d20d
cmp byte [ecx + 1], 0xa
jne 0x41d20d
inc ecx
jmp 0x41d20d
movzx eax, al
movsx eax, byte [eax + 0x480cc8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41d1e7
cmp edx, ebx
jne 0x41d1e7
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41d23e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040a110
leave
ret
Function at 0x41d2df
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 + 0x483030]
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 0x41d31f
cmp byte [ebx], 0xa
jne 0x41d31f
or byte [eax + edi + 0x28], 4
jmp 0x41d324
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41d422
mov al, byte [edx]
cmp al, 0x1a
je 0x41d404
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41d353
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41d378
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41d382
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 0x41d335
jmp 0x41d422
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 0x41d3ff
cmp dword [ebp - 0xc], 0
je 0x41d3ff
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x483030]
test byte [eax + edi + 0x28], 0x48
je 0x41d3d9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41d3c4
mov byte [esi], dl
jmp 0x41d3d5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x483030]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41d422
cmp byte [ebp - 1], 0xa
jne 0x41d3e8
cmp esi, ebx
jne 0x41d3e8
mov byte [esi], 0xa
jmp 0x41d421
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041de5f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41d422
mov byte [esi], 0xd
jmp 0x41d421
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x483030]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41d41e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41d422
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41d42b
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 + 0x483030]
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 0x41d46e
cmp word [esi], dx
jne 0x41d46e
or byte [edi + eax + 0x28], 4
jmp 0x41d473
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 0x41d5c6
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 0x41d5a6
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41d4b5
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41d4eb
cmp eax, edx
jae 0x41d4f7
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 0x41d48d
jmp 0x41d5c6
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 0x41d5a2
cmp dword [ebp - 0x14], 0
je 0x41d5a2
mov eax, dword [ebx*4 + 0x483030]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41d57a
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41d543
mov word [esi], cx
jmp 0x41d576
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x483030]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x483030]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x483030]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41d5c6
pop ebx
cmp word [ebp - 4], bx
jne 0x41d58b
cmp esi, dword [ebp + 0xc]
jne 0x41d58b
mov word [esi], bx
jmp 0x41d5c3
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041de5f
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41d5c6
push 0xd
jmp 0x41d5bf
mov ecx, dword [ebx*4 + 0x483030]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41d5bd
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41d5c6
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