joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4195b0
Capabilities:
Identify system language via api

Disassembly:
call dword [sym.imp.KERNEL32.DLL_GetUserDefaultLangID]
mov edx, dword [0x49be14]
xor ecx, ecx
test edx, edx
jle 0x4195ed
push esi
push edi
mov edi, dword [0x49be10]
push ebx
mov esi, edi
push ebp
mov edi, edi
test ecx, ecx
jl 0x419606
cmp ecx, edx
jge 0x419606
mov ebp, dword [esi]
movzx ebx, ax
cmp ebx, ebp
je 0x4195ee
inc ecx
add esi, 0xc
cmp ecx, edx
jl 0x4195d0
pop ebp
pop ebx
pop edi
pop esi
ret
pop ebp
lea eax, [ecx + ecx*2]
pop ebx
mov dword [0x496678], ecx
mov ecx, dword [edi + eax*4 + 8]
pop edi
mov dword [str.D:menu.ini], ecx
pop esi
ret
jmp fcn.00454675

Function at 0x419710
Capabilities:
Read .ini file

Disassembly:
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push eax
call fcn.00419640
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
add esp, 4
mov esi, eax
mov eax, dword [str.D:menu.ini]
push eax
push 0x104
push esi
push 0x473cc0
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x419750
sub eax, edx
mov dword [esp + 4], eax
mov eax, esi
je 0x4197a1
push edi
xor ecx, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x419767
sub eax, edi
dec eax
je 0x41979e
cmp byte [ecx + esi], 0x5c
jne 0x419789
cmp byte [ecx + esi + 1], 0x6e
jne 0x419789
mov byte [ecx + esi], 0x20
mov byte [ecx + esi + 1], 0xa
mov eax, esi
inc ecx
lea edi, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x419790
sub eax, edi
dec eax
cmp ecx, eax
jb 0x419773
mov eax, esi
pop edi
pop esi
pop ecx
ret
Function at 0x41f7e0
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
mov ecx, esi
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
push edi
mov edi, dword [esp + 0xc]
test edi, edi
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
je 0x41f83e
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.c_APEDecompress_Create
push edi
call ebx
push str.c_APEDecompress_Destroy
push edi
mov dword [esi], eax
call ebx
push str.c_APEDecompress_GetData
push edi
mov dword [esi + 4], eax
call ebx
push str.c_APEDecompress_Seek
push edi
mov dword [esi + 8], eax
call ebx
push str.c_APEDecompress_GetInfo
push edi
mov dword [esi + 0xc], eax
call ebx
mov dword [esi + 0x10], eax
pop ebx
cmp dword [esi], 0
je 0x41f866
mov eax, dword [esi + 4]
test eax, eax
je 0x41f866
mov eax, dword [esi + 8]
test eax, eax
je 0x41f866
mov eax, dword [esi + 0xc]
test eax, eax
je 0x41f866
mov eax, dword [esi + 0x10]
test eax, eax
je 0x41f866
pop edi
xor eax, eax
pop esi
ret 8
pop edi
or eax, 0xffffffff
pop esi
ret 8

Function at 0x41fa00
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
mov ecx, esi
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
push edi
mov edi, dword [esp + 0xc]
test edi, edi
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
je 0x41fa5e
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.c_APECompress_Create
push edi
call ebx
push str.c_APECompress_Destroy
push edi
mov dword [esi], eax
call ebx
push str.c_APECompress_Start
push edi
mov dword [esi + 4], eax
call ebx
push str.c_APECompress_AddData
push edi
mov dword [esi + 8], eax
call ebx
push str.c_APECompress_Finish
push edi
mov dword [esi + 0xc], eax
call ebx
mov dword [esi + 0x10], eax
pop ebx
cmp dword [esi], 0
je 0x41fa86
mov eax, dword [esi + 4]
test eax, eax
je 0x41fa86
mov eax, dword [esi + 8]
test eax, eax
je 0x41fa86
mov eax, dword [esi + 0xc]
test eax, eax
je 0x41fa86
mov eax, dword [esi + 0x10]
test eax, eax
je 0x41fa86
pop edi
xor eax, eax
pop esi
ret 8
pop edi
or eax, 0xffffffff
pop esi
ret 8
Function at 0x425810
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
push str.WNASPI32.DLL
mov ebx, ecx
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4258e0
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.GetASPI32SupportInfo
push esi
call edi
push str.SendASPI32Command
push esi
mov dword [0x49c164], eax
call edi
push str.GetASPI32Buffer
push esi
mov dword [0x49c160], eax
call edi
push str.FreeASPI32Buffer
push esi
mov dword [0x49c15c], eax
call edi
push str.TranslateASPI32Address
push esi
mov dword [0x49c158], eax
call edi
mov dword [0x49c154], eax
mov eax, dword [0x49c164]
test eax, eax
pop edi
je 0x4258ce
mov ecx, dword [0x49c160]
test ecx, ecx
je 0x4258ce
call eax
cmp ah, 1
je 0x4258a7
cmp ah, 0xe8
je 0x4258a7
movzx eax, ah
push eax
push str.GetASPI32SupportInfo_return_failed.__x_n
call fcn.00423b00
add esp, 8
pop esi
xor eax, eax
pop ebx
ret
movzx eax, al
push eax
push str.Load_Func_Succ__Max_Ha_id___d._n
mov dword [ebx + 8], eax
call fcn.00423b00
add esp, 8
mov ecx, ebx
call fcn.00425620
test eax, eax
je 0x4258ed
pop esi
mov eax, 1
pop ebx
ret
push str.GetProcAddress_failed._n
call fcn.00423b00
add esp, 4
pop esi
xor eax, eax
pop ebx
ret
push str.LoadLibrary_failed._n
call fcn.00423b00
add esp, 4
pop esi
xor eax, eax
pop ebx
ret
Function at 0x42a2a6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x42a2f9
call fcn.00469602
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, ebx
je 0x42a2f9
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x42a2ef
xor eax, eax
jmp 0x42a412
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x42a329
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x42a329
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x42a40f
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x42a356
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0042ad81
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x42a40f
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x42a39f
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x42a39f
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x42a399
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0042ad81
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x42a3ff
and dword [ebp + 0xc], 0
jmp 0x42a3ff
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x42a3ff
push 0xc
call fcn.0045bdf5
mov esi, eax
test esi, esi
pop ecx
je 0x42a3e1
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x42a3e3
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x42a3fa
push dword [ebp - 8]
call fcn.0045636a
jmp 0x42a3ff
call fcn.00456341
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x42a364
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4339e4
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4842d0
call fcn.004358a8
push 8
call fcn.0043981b
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x49e188], esi
jne 0x433a18
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov dword [0x49e184], esi
mov al, byte [ebp + 0x10]
mov byte [0x49e180], al
cmp dword [ebp + 0xc], edi
jne 0x433a62
cmp dword [0x49ff6c], edi
je 0x433a52
mov eax, dword [0x49ff68]
sub eax, 4
mov dword [0x49ff68], eax
cmp eax, dword [0x49ff6c]
jb 0x433a52
mov eax, dword [eax]
cmp eax, edi
je 0x433a33
call eax
jmp 0x433a33
push 0x4940c8
mov eax, 0x4940c0
call fcn.00433962
pop ecx
push 0x4940d4
mov eax, 0x4940cc
call fcn.00433962
pop ecx
or dword [ebp - 4], 0xffffffff
call fcn.00433a93
cmp dword [ebp + 0x10], edi
jne 0x433aa1
mov dword [0x49e188], esi
push dword [ebp + 8]
call fcn.00433920
xor edi, edi
xor esi, esi
inc esi
call fcn.004358e3
ret

Function at 0x43436d
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
xor ebx, ebx
test edi, edi
jne 0x434389
call fcn.004359af
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x4343fb
push esi
push 0x8c
push 1
call fcn.004358f4
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4343e1
push esi
call fcn.0043782f
mov eax, dword [esp + 0x1c]
pop ecx
push esi
push 4
push esi
push 0x4342db
push dword [esp + 0x24]
mov dword [esi + 0x4c], edi
push 0
mov dword [esi + 0x50], eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov edi, eax
test edi, edi
mov dword [esi + 4], edi
je 0x4343d9
push edi
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
cmp eax, 0xffffffff
jne 0x4343f8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
push esi
call fcn.0043451f
test ebx, ebx
pop ecx
je 0x4343f3
push ebx
call fcn.004359c1
pop ecx
or eax, 0xffffffff
jmp 0x4343fa
mov eax, edi
pop esi
pop edi
pop ebx
ret
Function at 0x434590
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00433af0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x43462b
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x49e148]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x43462b
cmp eax, 1
je 0x43464c
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x43462b
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4345f8
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x434627
xor eax, eax
inc eax
jmp 0x43466b
cmp edi, eax
jae 0x43462f
xor eax, eax
jmp 0x43466b
cmp eax, esi
jae 0x434636
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov eax, dword [0x49e148]
jmp 0x43464f
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x434f8e
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4843b8
call fcn.004358a8
mov edi, 0x94
mov eax, edi
call fcn.00433af0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x49e148], ecx
mov eax, dword [esi + 4]
mov dword [0x49e154], eax
mov edx, dword [esi + 8]
mov dword [0x49e158], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x49e14c], esi
cmp ecx, 2
je 0x434fee
or esi, 0x8000
mov dword [0x49e14c], esi
shl eax, 8
add eax, edx
mov dword [0x49e150], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x435029
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x435029
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x435041
cmp eax, 0x20b
je 0x43502e
mov dword [ebp - 0x1c], esi
jmp 0x435055
cmp dword [ecx + 0x84], 0xe
jbe 0x435029
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x43504f
cmp dword [ecx + 0x74], 0xe
jbe 0x435029
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0043aa62
pop ecx
test eax, eax
jne 0x435069
push 0x1c
call fcn.00434f6a
pop ecx
call fcn.00437a29
test eax, eax
jne 0x43507a
push 0x10
call fcn.00434f6a
pop ecx
call fcn.0043984c
mov dword [ebp - 4], esi
call fcn.0043c0de
test eax, eax
jge 0x435093
push 0x1b
call fcn.00434f45
pop ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x49ff60], eax
call fcn.0043cab2
mov dword [0x49e198], eax
call fcn.0043ca10
test eax, eax
jge 0x4350b9
push 8
call fcn.00434f45
pop ecx
call fcn.0043c7dd
test eax, eax
jge 0x4350ca
push 9
call fcn.00434f45
pop ecx
push 1
call fcn.0043397a
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4350e0
push eax
call fcn.00434f45
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
call fcn.0043c780
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x435101
movzx eax, word [ebp - 0x40]
jmp 0x435104
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0045106d
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x435122
push edi
call fcn.00433aa7
call fcn.00433ac9
jmp 0x435154
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004358e3
ret
Function at 0x4364a6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x4364c3
call fcn.004359af
mov dword [eax], 0x16
xor eax, eax
jmp 0x43652d
push esi
push 0x8c
push 1
call fcn.004358f4
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x436518
push esi
call fcn.0043782f
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x4364f6
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x436411
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
jne 0x43652c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
push esi
call fcn.0043451f
test ebx, ebx
pop ecx
je 0x43652a
push ebx
call fcn.004359c1
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43b5f1
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x43b61f
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x43b626
cmp ebx, dword [eax + 4]
jae 0x43b626
xor eax, eax
jmp 0x43b816
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x43b637
xor eax, eax
inc eax
jmp 0x43b815
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x43b64d
cmp ecx, edx
jae 0x43b792
cmp dword [eax + 4], 0
je 0x43b656
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x43b63e
cmp dword [ebp + 8], 0
je 0x43b678
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x43b792
cmp eax, esi
jae 0x43b792
mov eax, dword [0x49e330]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x43b69d
cmp dword [esi*4 + 0x49e338], edi
je 0x43b796
inc esi
cmp esi, eax
jl 0x43b68b
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x43b812
cmp dword [ebp - 8], 0x1000000
jne 0x43b812
test byte [ebp - 0xc], 0xcc
je 0x43b71b
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x43b812
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x43b812
cmp word [eax + 0x18], 0x10b
jne 0x43b812
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x43b812
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x43b71b
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x43b71b
test byte [ecx + 0x27], 0x80
jne 0x43b792
push 1
push 0x49e378
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
jne 0x43b62f
mov ecx, dword [0x49e330]
test ecx, ecx
mov edx, ecx
jle 0x43b74f
lea eax, [ecx*4 + 0x49e334]
cmp dword [eax], edi
je 0x43b74f
dec edx
sub eax, 4
test edx, edx
jg 0x43b743
test edx, edx
jne 0x43b780
push 0xf
pop ebx
cmp ecx, ebx
jg 0x43b75c
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x43b774
lea eax, [edx*4 + 0x49e338]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x43b762
cmp ecx, 0x10
jge 0x43b780
inc ecx
mov dword [0x49e330], ecx
push 0
push 0x49e378
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
jmp 0x43b62f
xor eax, eax
jmp 0x43b815
test esi, esi
jle 0x43b62f
mov ebx, dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push 1
push 0x49e378
call ebx
test eax, eax
jne 0x43b62f
cmp dword [esi*4 + 0x49e338], edi
je 0x43b7ec
mov eax, dword [0x49e330]
lea esi, [eax - 1]
test esi, esi
jl 0x43b7da
cmp dword [esi*4 + 0x49e338], edi
je 0x43b7d6
dec esi
jns 0x43b7ca
test esi, esi
jge 0x43b7ea
cmp eax, 0x10
jge 0x43b7e5
inc eax
mov dword [0x49e330], eax
lea esi, [eax - 1]
jmp 0x43b7ec
je 0x43b804
xor ecx, ecx
test esi, esi
jl 0x43b804
lea eax, [ecx*4 + 0x49e338]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x43b7f2
push 0
push 0x49e378
call ebx
jmp 0x43b62f
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43be65
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x49a2e4]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x43be96
xor eax, eax
jmp 0x43c01f
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x49ebe0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x43bed2
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0043eec0
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x43bfad
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x43bfeb
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x43bf36
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x43bf27
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x43bf07
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x43bf76
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x43bf7f
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x43bef8
jmp 0x43bf81
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x43c01a
cmp dword [ebp - 0x6c], edi
je 0x43bfeb
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x43bfe0
call fcn.004359af
mov dword [eax], 9
call fcn.004359b8
mov dword [eax], esi
jmp 0x43c015
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x43bfd5
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x43bf81
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x43bf81
push dword [ebp - 0x6c]
call fcn.004359c1
pop ecx
jmp 0x43c015
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x43c003
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x43c003
xor eax, eax
jmp 0x43c01d
call fcn.004359af
mov dword [eax], 0x1c
call fcn.004359b8
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x43c01d
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0043291f
add ebp, 0x3a0
leave
ret
Function at 0x43c2dc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x43c4b0
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x49ebe0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x43c4b0
test cl, 0x48
je 0x43c347
cmp byte [eax + 5], 0xa
je 0x43c347
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x43c399
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x43c381
call fcn.004359af
mov dword [eax], 9
call fcn.004359b8
mov dword [eax], esi
jmp 0x43c391
cmp eax, 0x6d
je 0x43c4b0
push eax
call fcn.004359c1
pop ecx
or eax, 0xffffffff
jmp 0x43c4b2
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x43c4ab
test eax, eax
je 0x43c3c0
cmp byte [ebx], 0xa
jne 0x43c3c0
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x43c3c9
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x43c4a5
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x43c495
cmp al, 0xd
je 0x43c3fb
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x43c487
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x43c415
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x43c410
add dword [ebp + 0x10], 2
jmp 0x43c469
mov dword [ebp + 0x10], eax
jmp 0x43c483
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x43c43d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x43c483
cmp dword [ebp - 0xc], 0
je 0x43c483
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x43c45e
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x43c469
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x43c486
cmp ebx, dword [ebp + 0xc]
jne 0x43c46e
cmp byte [ebp - 1], 0xa
jne 0x43c46e
mov byte [ebx], 0xa
jmp 0x43c486
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0043b8cc
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x43c487
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x43c3df
jmp 0x43c4a5
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x43c4a5
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x43c4b2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret