joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435d50
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x348]
sub esp, 0x348
push 0xffffffffffffffff
push 0x44cd06
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x45a008]
xor eax, ebp
mov dword [ebp + 0x344], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
xor ecx, ecx
mov dword [edi + 4], 0
mov word [eax], cx
cmp byte [0x45b411], cl
jne 0x435e02
lea eax, [ebp + 0x22c]
mov byte [ebp + 0x22c], cl
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x435e8f
cmp eax, 0x114
jae 0x435e8f
lea edx, [ebp + 0x22c]
mov byte [ebp + 0x340], 0
lea ecx, [ebp - 0x18]
call fcn.00432bf0
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.00433c50
push dword [ebp - 0x18]
call fcn.0041d479
add esp, 4
mov al, 1
jmp 0x435e91
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor eax, eax
mov word [ebp], ax
lea eax, [ebp]
push eax
push 0x114
call ebx
mov esi, eax
test esi, esi
je 0x435e8f
cmp esi, 0x114
jae 0x435e3f
xor eax, eax
mov ecx, edi
mov word [ebp + 0x228], ax
lea eax, [ebp]
push eax
call fcn.00433be0
mov al, 1
jmp 0x435e91
lea ecx, [ebp - 0x18]
call fcn.00433cc0
mov dword [ebp - 4], 1
cmp esi, dword [ebp - 0x10]
jbe 0x435e5c
push esi
lea ecx, [ebp - 0x18]
call fcn.00433530
push dword [ebp - 0x18]
push esi
call ebx
mov ebx, eax
test ebx, ebx
je 0x435e84
push esi
lea ecx, [ebp - 0x18]
call fcn.00401b60
cmp dword [ebp - 0x14], ebx
jne 0x435e84
lea eax, [esi - 1]
cmp eax, ebx
jne 0x435e84
mov eax, ecx
jmp 0x435de8
push dword [ebp - 0x18]
call fcn.0041d479
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x344]
xor ecx, ebp
call fcn.0041d468
lea esp, [ebp + 0x348]
pop ebp
ret

Function at 0x435ec0
Capabilities:
Set current directory

Disassembly:
sub esp, 0xc
cmp byte [0x45b411], 0
jne 0x435ef7
mov edx, ecx
lea ecx, [esp]
push esi
call fcn.00432c30
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [esp + 4]
mov esi, eax
call fcn.0041d479
add esp, 4
test esi, esi
setne al
pop esi
add esp, 0xc
ret
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
add esp, 0xc
ret
Function at 0x4361f0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
sub esp, 0xc
cmp byte [0x45b411], 0
push esi
push edi
mov edi, ecx
jne 0x436223
mov edx, edi
lea ecx, [esp + 8]
call fcn.00432c30
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [esp + 8]
mov esi, eax
call fcn.0041d479
add esp, 4
jmp 0x436231
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43624e
cmp esi, 0xffffffff
je 0x43624e
mov eax, esi
and al, 0x11
cmp al, 1
jne 0x43624e
and esi, 0xfffffffe
mov ecx, edi
mov edx, esi
call fcn.00436740
test al, al
je 0x436297
cmp byte [0x45b411], 0
jne 0x436284
mov edx, edi
lea ecx, [esp + 8]
call fcn.00432c30
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [esp + 8]
mov esi, eax
call fcn.0041d479
add esp, 4
test esi, esi
je 0x436297
pop edi
mov al, 1
pop esi
add esp, 0xc
ret
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x436297
pop edi
mov al, 1
pop esi
add esp, 0xc
ret
pop edi
xor al, al
pop esi
add esp, 0xc
ret
Function at 0x436590
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44cd9c
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x45a008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [0x45b411], 0
jne 0x4365fc
mov edx, edi
lea ecx, [ebp - 0x18]
call fcn.00432c30
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.0041d479
add esp, 4
test esi, esi
je 0x43661d
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
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x43661d
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
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x43663e
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x50]
call fcn.00401be0
push 0
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0
call fcn.00436ef0
test al, al
jne 0x436660
xor bl, bl
jmp 0x436669
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.0041d479
add esp, 4
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

Function at 0x4366f0
Capabilities:
Delete directory

Disassembly:
sub esp, 0xc
cmp byte [0x45b411], 0
jne 0x436728
mov edx, ecx
lea ecx, [esp]
push esi
call fcn.00432c30
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [esp + 4]
mov esi, eax
call fcn.0041d479
add esp, 4
test esi, esi
pop esi
je 0x436739
mov al, 1
add esp, 0xc
ret
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x436739
mov al, 1
add esp, 0xc
ret
xor al, al
add esp, 0xc
ret

Function at 0x436740
Capabilities:
Set file attributes

Disassembly:
sub esp, 0xc
cmp byte [0x45b411], 0
push esi
mov esi, edx
jne 0x43677c
mov edx, ecx
lea ecx, [esp + 4]
call fcn.00432c30
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
mov esi, eax
call fcn.0041d479
add esp, 4
test esi, esi
je 0x43678f
mov al, 1
pop esi
add esp, 0xc
ret
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x43678f
mov al, 1
pop esi
add esp, 0xc
ret
xor al, al
pop esi
add esp, 0xc
ret

Function at 0x4375b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0xc
cmp byte [0x45b411], 0
jne 0x4375e4
mov edx, ecx
lea ecx, [esp]
push esi
call fcn.00432c30
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [esp + 4]
mov esi, eax
call fcn.0041d479
add esp, 4
mov eax, esi
pop esi
add esp, 0xc
ret
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovne ecx, eax
mov eax, ecx
add esp, 0xc
ret
Function at 0x4377e0
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebp, ecx
push edi
mov edi, dword [esp + 0x14]
mov ecx, 0x400000
mov dword [ebx], 0
nop dword [eax]
cmp esi, 0x400000
mov dword [esp + 0x1c], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x20]
push ecx
push eax
push edi
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x1c]
add dword [ebx], ecx
test eax, eax
je 0x437847
test ecx, ecx
je 0x43783e
add edi, ecx
sub esi, ecx
mov ecx, 0x400000
jne 0x437800
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 0xc
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0xc

Function at 0x437920
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebp, ecx
push edi
mov edi, dword [esp + 0x14]
mov ecx, 0x400000
mov dword [ebx], 0
nop dword [eax]
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
cmp esi, 0x400000
mov eax, esi
cmova eax, ecx
push eax
push edi
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x1c]
add dword [ebx], ecx
test eax, eax
je 0x437987
test ecx, ecx
je 0x43797e
add edi, ecx
sub esi, ecx
mov ecx, 0x400000
jne 0x437940
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 0xc
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0xc

Function at 0x438ef0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x70
mov eax, dword [0x45a008]
xor eax, esp
mov dword [esp + 0x68], eax
push esi
mov esi, ecx
mov dword [esp + 0x28], 0x40
push str.GlobalMemoryStatusEx
push 0x454210
mov dword [esi], SysReAllocStringLen
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x438f71
lea ecx, [esp + 0x28]
push ecx
call eax
test eax, eax
je 0x438f71
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x34]
cmp ecx, edx
ja 0x438f54
mov eax, dword [esp + 0x50]
jb 0x438f5a
cmp eax, dword [esp + 0x30]
jb 0x438f5a
mov eax, dword [esp + 0x30]
mov ecx, edx
mov dword [esi], eax
mov al, 1
mov dword [esi + 4], ecx
pop esi
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0041d468
add esp, 0x70
ret
lea eax, [esp + 8]
mov dword [esp + 8], 0x20
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [esp + 0x10]
mov al, 1
cmp dword [esp + 0x20], ecx
mov dword [esi + 4], 0
cmovb ecx, dword [esp + 0x20]
mov dword [esi], ecx
mov ecx, dword [esp + 0x6c]
pop esi
xor ecx, esp
call fcn.0041d468
add esp, 0x70
ret
Function at 0x44a090
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44df58
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x45a008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [esi + 0x14]
xor ecx, ecx
mov edx, 2
lea eax, [ebx + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041d5b4
mov ecx, dword [esi + 0x14]
mov edi, eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
lea ecx, [ecx*2 + 2]
push ecx
push dword [esi + 0x10]
push edi
call fcn.004292b0
add esp, 0x10
mov dword [ebp - 4], 0
xor ecx, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
cmp dword [eax + 4], ecx
jbe 0x44a22a
mov esi, ebx
mov eax, dword [eax]
mov ecx, dword [eax + ecx*4]
mov eax, esi
sub eax, ebx
mov dword [ebp - 0x10], ecx
mov edx, dword [ecx + 4]
cmp edx, eax
jbe 0x44a19a
lea ecx, [ebx + edx]
mov eax, ecx
lea esi, [ecx + 0x10]
shr eax, 1
add esi, eax
and esi, 0xfffffff0
dec esi
cmp esi, ebx
jb 0x44a141
cmp esi, 0x3ffffffe
jbe 0x44a146
mov esi, 0x3ffffffe
cmp esi, ebx
jbe 0x44a247
mov eax, esi
sub eax, ebx
cmp eax, edx
jb 0x44a247
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041d5b4
lea ecx, [ebx*2 + 2]
mov edi, eax
push ecx
push dword [ebp - 0x20]
push edi
call fcn.004292b0
push dword [ebp - 0x20]
call fcn.0041d479
mov ecx, dword [ebp - 0x10]
add esp, 0x14
dec esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], esi
mov eax, dword [ecx + 4]
lea eax, [eax*2 + 2]
push eax
push dword [ecx]
lea eax, [edi + ebx*2]
push eax
call fcn.004292b0
mov eax, dword [ebp - 0x10]
add esp, 0xc
add ebx, dword [eax + 4]
cmp byte [0x45b411], 0
mov dword [ebp - 0x1c], ebx
jne 0x44a1e6
mov edx, edi
lea ecx, [ebp - 0x2c]
call fcn.00432c30
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x2c]
call fcn.0041d479
add esp, 4
jmp 0x44a1ef
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp esi, ebx
jne 0x44a204
lea ecx, [ebp - 0x20]
call fcn.00433db0
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov eax, 0x5c
mov word [edi + ebx*2], ax
inc ecx
inc ebx
mov dword [ebp - 0x14], ecx
xor eax, eax
mov dword [ebp - 0x1c], ebx
mov word [edi + ebx*2], ax
mov eax, dword [ebp + 8]
cmp ecx, dword [eax + 4]
jb 0x44a112
push edi
call fcn.0041d479
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x457080
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x13329ac
push eax
call fcn.0041feb0
int3
Function at 0x44b400
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x84
mov eax, dword [0x45a008]
xor eax, esp
mov dword [esp + 0x80], eax
push esi
push edi
mov edi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov dword [esp + 8], 0x420041
xor edx, edx
mov dword [esp + 0xc], 0x440043
mov dword [esp + 0x10], 0x460045
mov dword [esp + 0x14], 0x480047
mov dword [esp + 0x18], 0x4a0049
mov dword [esp + 0x1c], 0x4c004b
mov dword [esp + 0x20], 0x4e004d
mov dword [esp + 0x24], 0x50004f
mov dword [esp + 0x28], 0x520051
mov dword [esp + 0x2c], 0x540053
mov dword [esp + 0x30], 0x560055
mov dword [esp + 0x34], 0x580057
mov dword [esp + 0x38], 0x5a0059
mov dword [esp + 0x3c], 0x620061
mov dword [esp + 0x40], 0x640063
mov dword [esp + 0x44], 0x660065
mov dword [esp + 0x48], 0x680067
mov dword [esp + 0x4c], 0x6a0069
mov dword [esp + 0x50], 0x6c006b
mov dword [esp + 0x54], 0x6e006d
mov dword [esp + 0x58], 0x70006f
mov dword [esp + 0x5c], 0x720071
mov dword [esp + 0x60], 0x740073
mov dword [esp + 0x64], 0x760075
mov dword [esp + 0x68], 0x780077
mov dword [esp + 0x6c], 0x7a0079
mov dword [esp + 0x70], 0x310030
mov dword [esp + 0x74], 0x330032
mov dword [esp + 0x78], 0x350034
mov dword [esp + 0x7c], 0x370036
mov dword [esp + 0x80], 0x390038
mov dword [esp + 0x84], 0x2f002b
test esi, esi
jle 0x44b561
nop dword [eax]
movzx ecx, word [edi + edx*2]
xor eax, eax
cmp word [esp + eax*2 + 8], cx
je 0x44b55c
inc eax
cmp eax, 0x40
jb 0x44b536
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0041d468
add esp, 0x84
ret
inc edx
cmp edx, esi
jl 0x44b530
mov ecx, dword [esp + 0x88]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.0041d468
add esp, 0x84
ret
Function at 0x405ac0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x405015
lea edi, [esi - 0x4015]
push edi
or ebp, 0xffffffff
jmp 0x405ae2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x405ae9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x405ad8
mov eax, 1
add ebx, ebx
jne 0x405afb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x405b0c
jne 0x405b2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x405b2b
dec eax
add ebx, ebx
jne 0x405b18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x405af0
add ebx, ebx
jne 0x405b27
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x405b7d
xor ecx, ecx
sub eax, 3
jb 0x405b43
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x405bb2
sar eax, 1
mov ebp, eax
jmp 0x405b4e
add ebx, ebx
jne 0x405b4e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x405b1c
inc ecx
add ebx, ebx
jne 0x405b5c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x405b1c
add ebx, ebx
jne 0x405b69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x405b5e
jne 0x405b7a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x405b5e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x405b9c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x405b8e
jmp 0x405ade
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x405b9c
add edi, ecx
jmp 0x405ade
pop esi
mov edi, esi
mov ecx, 0xd9d
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x405bd7
cmp byte [edi], 0
jne 0x405bbc
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x405bba
lea edi, [esi + 0x3000]
mov eax, dword [edi]
or eax, eax
je 0x405c1f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x506c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x405bdd
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5074]
or eax, eax
je 0x405c19
mov dword [ebx], eax
add ebx, 4
jmp 0x405bfa
call dword [esi + 0x5070]
mov ebp, dword [esi + 0x5078]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x405c53
sub esp, 0xffffff80
jmp 0x401e15
Function at 0x4dcbac
Capabilities:
Resolve function by parsing pe exports

Disassembly:
stc
push 0xe06d487f
add dl, dl
push ebp
push dword [esp + 4]
lea esp, [esp + 0xc]
Function at 0x401f35
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x24
mov eax, dword [0x42c040]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [0x486b50]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x401f99
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.0040261a
lea ecx, [esp + 0x14]
call fcn.00401d65
cmp eax, 0x8aafdc01
je 0x401fb1
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00402edf
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x401f68
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004069e9
add esp, 0x24
ret
mov edx, str.QwruxAA
call fcn.0040387f
push eax
call fcn.0040384d
mov eax, dword [ebx + 0x24]
pop ecx
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00402edf
jmp 0x401f9b
Function at 0x41833a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407930
mov eax, dword [0x42c040]
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.00414735
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41837c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4184d8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00421750
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 + 0x486748]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00418760
mov ecx, dword [esi*4 + 0x486748]
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 0x4184d1
cmp eax, dword [edi + ecx + 0x24]
jne 0x4184d1
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 0x4184d1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418760
add esp, 0x14
test edx, edx
jl 0x4184d1
jg 0x418447
test eax, eax
jb 0x4184d1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4184d1
jl 0x418461
cmp dword [ebp - 0x1008], eax
ja 0x4184d1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41847f
test ebx, ebx
je 0x4184b8
cmp ecx, edi
jae 0x4184b8
mov al, byte [ecx]
cmp al, 0xd
jne 0x418499
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4184a5
cmp byte [ecx + 1], 0xa
jne 0x4184a5
inc ecx
jmp 0x4184a5
movzx eax, al
movsx eax, byte [eax + 0x42c9b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41847f
cmp edx, ebx
jne 0x41847f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4184d6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004069e9
leave
ret
Function at 0x41eace
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 + 0x486748]
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 0x41eb0e
cmp byte [ebx], 0xa
jne 0x41eb0e
or byte [eax + edi + 0x28], 4
jmp 0x41eb13
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41ec11
mov al, byte [edx]
cmp al, 0x1a
je 0x41ebf3
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41eb42
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41eb67
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41eb71
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 0x41eb24
jmp 0x41ec11
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 0x41ebee
cmp dword [ebp - 0xc], 0
je 0x41ebee
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x486748]
test byte [eax + edi + 0x28], 0x48
je 0x41ebc8
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ebb3
mov byte [esi], dl
jmp 0x41ebc4
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x486748]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41ec11
cmp byte [ebp - 1], 0xa
jne 0x41ebd7
cmp esi, ebx
jne 0x41ebd7
mov byte [esi], 0xa
jmp 0x41ec10
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041877e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41ec11
mov byte [esi], 0xd
jmp 0x41ec10
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x486748]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41ec0d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41ec11
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret