joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e9f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4465b0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x45d0bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 0xc]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x41ea27
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41ea49
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov bl, byte [ebp + 8]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
test bl, bl
jne 0x41ea9f
lea eax, [edi + 0x6c]
push eax
mov dword [ebp + 0xc], eax
call fcn.0041de00
lea eax, [edi + 0x60]
mov edi, dword [ebp + 0xc]
mov dword [ebp + 8], eax
jmp 0x41eaae
lea eax, [edi + 0x60]
push eax
mov dword [ebp + 8], eax
call fcn.0041de00
add edi, 0x6c
lea eax, [ebp - 0x18]
push eax
push esi
call fcn.00422870
add esp, 8
cmp byte [ebp + 0x10], 0
je 0x41ead3
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
test bl, bl
je 0x41eace
mov ecx, dword [ebp + 8]
call fcn.0041de00
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
sub ecx, edx
mov esi, dword [ebp - 0x24]
sub eax, esi
cmp ecx, eax
jne 0x41eb37
sub ecx, 4
jb 0x41eb01
nop dword [eax]
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x41eb06
add edx, 4
add esi, 4
sub ecx, 4
jae 0x41eaf0
cmp ecx, 0xfffffffc
je 0x41eb33
mov al, byte [edx]
cmp al, byte [esi]
jne 0x41eb37
cmp ecx, 0xfffffffd
je 0x41eb33
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x41eb37
cmp ecx, 0xfffffffe
je 0x41eb33
mov al, byte [edx + 2]
cmp al, byte [esi + 2]
jne 0x41eb37
cmp ecx, 0xffffffff
je 0x41eb33
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
jne 0x41eb37
mov bl, 1
jmp 0x41eb39
xor bl, bl
lea ecx, [ebp - 0x24]
call fcn.004023f0
lea ecx, [ebp - 0x18]
call fcn.004023f0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41f640
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4466b0
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x45d0bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x38]
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x29]
push eax
push 0x400
mov dword [ebp - 0x3c], ebx
call fcn.0040eb20
mov dword [ebp - 4], esi
nop dword [eax]
test esi, esi
je 0x41f6d8
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x38]
sub eax, dword [ebp - 0x38]
push ecx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x448380]
mulsd xmm0, qword [0x448378]
call fcn.00424a01
push eax
lea ecx, [ebp - 0x38]
call fcn.00418be0
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
sub eax, edx
mov esi, dword [ebp - 0x40]
mov edi, eax
shr edi, 1
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x41f6f1
mov ecx, dword [esi]
test eax, eax
je 0x41f7de
push ecx
push edi
push edx
push 0
push dword [ebp - 0x44]
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, eax
test esi, esi
jne 0x41f721
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c], eax
test eax, eax
jne 0x41f7b0
lea eax, [edi - 1]
cmp esi, eax
je 0x41f6a0
lea eax, [edi - 2]
cmp esi, eax
je 0x41f6a0
lea eax, [ebp - 0x38]
push eax
lea eax, [esi + esi]
push eax
lea ecx, [ebp - 0x38]
call fcn.00418be0
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
cmp ecx, eax
jne 0x41f766
xor eax, eax
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
jmp 0x41f788
sub eax, ecx
je 0x41f7de
shr eax, 1
xor edx, edx
push eax
push ecx
mov dword [ebx + 0x10], 0
mov ecx, ebx
mov dword [ebx + 0x14], 7
mov word [ebx], dx
call fcn.00407d10
lea ecx, [ebp - 0x38]
call fcn.004023f0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00424185
mov esp, ebp
pop ebp
ret 0x10
push str.Cannot_get_data_from_the_ini_file
lea ecx, [ebp - 0x28]
call fcn.00406310
push dword [ebp - 0x3c]
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x58]
call fcn.00410e30
push 0x45968c
lea eax, [ebp - 0x58]
push eax
call fcn.00425c43
call fcn.0040ecb0
int3
Function at 0x41f7f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4453b8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x45d0bc]
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, ecx
push edi
call fcn.00419e00
lea esi, [edi + 0x48]
add esp, 4
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x41f832
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41f858
cmp dword [esi + 0x14], 8
jb 0x41f846
mov esi, dword [esi]
push esi
push 0
push str.General
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionW]
test eax, eax
je 0x41f888
lea eax, [edi + 0x18]
push eax
call fcn.00419e00
lea eax, [edi + 0x30]
push eax
call fcn.00419e00
add esp, 8
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.00424185
mov esp, ebp
pop ebp
ret
push str.Unable_to_create_gpt.ini_file
lea ecx, [ebp - 0x28]
call fcn.00406310
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x38]
call fcn.00410e30
push 0x45968c
lea eax, [ebp - 0x38]
push eax
call fcn.00425c43
int3

Function at 0x4222c0
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4222d1
mov eax, dword [esi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 8
jb 0x4222e5
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x422302
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x422302
call esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4229a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446c33
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x45d0bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x11d]
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x134]
push eax
push 0x1000
mov dword [ebp - 0x128], ebx
call fcn.0040eb20
push ebx
push 0x10
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.0040bd80
lea eax, [ebp - 0xb0]
push eax
call fcn.00442940
mov esi, dword [ebp - 0x134]
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [eax]
push 0
lea eax, [ebp - 0x124]
push eax
push 0x1000
push esi
push edi
call ebx
test eax, eax
je 0x422a96
push dword [ebp - 0x124]
lea eax, [ebp - 0xb0]
push esi
push eax
call fcn.00443000
add esp, 0xc
cmp dword [ebp - 0x124], 0x1000
je 0x422a20
lea eax, [ebp - 0xb0]
push eax
mov eax, dword [ebp - 0x128]
push dword [eax]
call fcn.004428b0
add esp, 8
lea ecx, [ebp - 0x134]
call fcn.004023f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00424185
mov esp, ebp
pop ebp
ret
push 0x4550a5
lea ecx, [ebp - 0x28]
call fcn.00406310
push str.CalcMd5ByHandleEx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00406310
push 0x409
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004219a0
add esp, 0xc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
push ecx
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x11c]
call fcn.00419970
push 0x45a1e4
lea eax, [ebp - 0x11c]
push eax
call fcn.00425c43
int3

Function at 0x436d2b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00436ba1

Function at 0x43b5ad
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043b22a

Function at 0x442940
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
pop ebp
ret
Function at 0x4019d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf8
mov eax, dword [0x447040]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0xf8]
push eax
push 0xf1
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 8]
mov cl, byte [ebp + edx - 0xf8]
mov byte [eax], cl
mov edx, 1
imul eax, edx, 0
movsx ecx, byte [ebp + eax - 0xf8]
sub ecx, 0x40
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
lea eax, [ebp - 0xf8]
push eax
push 0x43c230
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00401f00
add esp, 0xc
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x14]
push eax
push str._sSDIR_s_
mov ecx, dword [ebp + 0x18]
push ecx
call fcn.00401f00
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424f84
mov esp, ebp
pop ebp
ret
Function at 0x401f40
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 0x5c], 0x30
mov dword [ebp - 0x58], 3
mov dword [ebp - 0x54], 0x402130
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp - 0x44], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x40], eax
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0x447008
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x5c]
push ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp + 0x10]
movsx edx, byte [ecx + eax]
test edx, edx
je 0x40202c
lea eax, [ebp - 8]
push eax
push 0x4479e0
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00401cd0
add esp, 0xc
mov edx, 0xf1
shl edx, 0
add edx, 0x4479e0
push edx
push 0x43c460
push 0x4ccaf0
call fcn.00401f00
add esp, 0xc
mov eax, 0xf1
shl eax, 1
add eax, 0x4479e0
push eax
push 0x43c464
push 0x448170
call fcn.00401f00
add esp, 0xc
jmp 0x402047
push 0
push str.Fehlende_Eingabe
push str.Eine_Kommandozeile_fehlt_in_SUMSN.EXE
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x40211f
push 0x43c4a4
push str.D:P3TFHTEST
call fcn.0042b546
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x402068
mov byte [ebp - 1], 1
jmp 0x40206c
mov byte [ebp - 1], 0
mov cl, byte [ebp - 1]
mov byte [0x44827c], cl
cmp dword [ebp - 0xc], 0
je 0x402087
mov edx, dword [ebp - 0xc]
push edx
call fcn.0042b45f
add esp, 4
push 0x43c4b8
push 0x43c4c4
push 0x4cc618
call fcn.00401f00
add esp, 0xc
push 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0
mov ecx, dword [0x447004]
push ecx
mov edx, dword [section..data]
push edx
push 0x80000000
push 0x80000000
push 0xcf0000
push str.Summe_LF_Typen_GZT
push 0x447008
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x40211c
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0x2c]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x4020f2
mov eax, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4258f5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x425934
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x425934
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x425934
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x425934
cmp dword [ecx + 0x74], 0xe
jbe 0x425934
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x42f86b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43f4e4
push 0x43f4dc
push str.FlsAlloc
push 0x1f
call fcn.0042f747
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42f89f
push dword [ebp + 8]
mov ecx, esi
call dword [0x43c184]
call esi
jmp 0x42f8a5
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42f8e9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43f4f4
push 0x43f4ec
push str.FlsGetValue
push 0x21
call fcn.0042f747
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42f920
push dword [ebp + 8]
mov ecx, esi
call dword [0x43c184]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42f928
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43f4fc
push 0x43f4f4
push str.FlsSetValue
push 0x22
call fcn.0042f747
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42f962
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x43c184]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4305da
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 + 0x4cd550]
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 0x43061a
cmp byte [ebx], 0xa
jne 0x43061a
or byte [edi + eax + 0x28], 4
jmp 0x43061f
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 0x43071e
mov dl, byte [eax]
cmp dl, 0x1a
je 0x430701
inc eax
cmp dl, 0xd
je 0x43064b
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x430671
cmp eax, ecx
jae 0x43067f
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 0x430633
jmp 0x43071e
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 0x4306fc
cmp dword [ebp - 0x10], 0
je 0x4306fc
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4cd550]
test byte [eax + edi + 0x28], 0x48
je 0x4306d6
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4306c1
mov byte [esi], dl
jmp 0x4306d2
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4cd550]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x43071e
cmp byte [ebp - 1], 0xa
jne 0x4306e5
cmp esi, ebx
jne 0x4306e5
mov byte [esi], 0xa
jmp 0x43071d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004312fa
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x43071e
mov byte [esi], 0xd
jmp 0x43071d
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4cd550]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x43071b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x43071e
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x430727
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 + 0x4cd550]
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 0x43076d
cmp word [ebx], dx
jne 0x43076d
or byte [eax + edi + 0x28], 4
jmp 0x430772
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 0x4308d5
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 0x4308b5
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4307b3
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4307e9
cmp eax, edx
jae 0x4307f7
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 0x43078e
jmp 0x4308d5
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 0x4308b0
cmp dword [ebp - 0x18], 0
je 0x4308b0
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4cd550]
test byte [eax + edi + 0x28], 0x48
je 0x430886
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 0x43084a
mov word [esi], cx
jmp 0x430881
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4cd550]
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 + 0x4cd550]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4cd550]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4308d5
pop eax
cmp word [ebp - 4], ax
jne 0x430896
cmp esi, ebx
jne 0x430896
mov word [esi], ax
jmp 0x4308d2
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004312fa
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4308d5
push 0xd
pop eax
jmp 0x430891
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4cd550]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4308cf
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4308d5
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 0x4316c4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004251a0
mov eax, dword [0x447040]
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.0042eb37
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x431706
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x431862
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0043b330
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 + 0x4cd550]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004312dc
mov ecx, dword [esi*4 + 0x4cd550]
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 0x43185b
cmp eax, dword [ecx + edi + 0x24]
jne 0x43185b
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 0x43185b
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004312dc
add esp, 0x14
test edx, edx
jl 0x43185b
jg 0x4317d1
test eax, eax
jb 0x43185b
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x43185b
jl 0x4317eb
cmp dword [ebp - 0x1008], eax
ja 0x43185b
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x431809
test ebx, ebx
je 0x431842
cmp ecx, edi
jae 0x431842
mov al, byte [ecx]
cmp al, 0xd
jne 0x431823
lea eax, [edi - 1]
cmp ecx, eax
jae 0x43182f
cmp byte [ecx + 1], 0xa
jne 0x43182f
inc ecx
jmp 0x43182f
movzx eax, al
movsx eax, byte [eax + 0x4472a0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x431809
cmp edx, ebx
jne 0x431809
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x431860
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00424f84
leave
ret
Function at 0x433fbc
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 0x434059
push ebx
push esi
call fcn.00433f85
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.00433f19
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x434006
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x434058
push edi
push eax
call fcn.0042d965
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x434026
call fcn.0042d92b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x434057
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00433f19
add esp, 0x20
test eax, eax
jne 0x434045
push edi
call fcn.0042d92b
jmp 0x43404d
push ebx
call fcn.0042d92b
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