joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49ace8
Capabilities:
Copy file
Create mailslot
Get disk information
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x900
push esi
xor esi, esi
cmp dword [0x4ce27c], 0x37
jne 0x49ade9
push edi
xor eax, eax
mov dword [ebp - 0x38], esi
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
push 0x401388
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
push esi
push esi
push esi
push 0x4013c8
call dword [sym.imp.KERNEL32.dll_CreateMailslotW]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push esi
call dword [sym.imp.KERNEL32.dll_FindAtomA]
xor eax, eax
mov word [ebp - 0x24], ax
lea edi, [ebp - 0x22]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x14], ax
lea edi, [ebp - 0x12]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_TzSpecificLocalTimeToSystemTime]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push esi
lea eax, [ebp - 0x500]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessPriorityBoost]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push 0x4013e0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push esi
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x900]
push eax
push dword [ebp + 8]
push 0x401420
call dword [sym.imp.KERNEL32.dll_FindFirstFileExA]
pop edi
mov dword [ebp - 4], esi
mov eax, dword [0x4ce280]
add dword [ebp - 4], eax
mov eax, 0x12336
add dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov cl, byte [ecx + eax]
mov edx, dword [0x4ca87c]
mov byte [edx + eax], cl
pop esi
leave
ret 4
Function at 0x49ca6b
Capabilities:
Get common file path
Get disk size
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1e4c
call fcn.0049dc80
and dword [ebp - 4], 0
jmp 0x49ca85
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x332beaf6
jge 0x49cb7b
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [0x4ce27c], 0x16
jne 0x49cae9
push 0
lea eax, [ebp - 0x858]
push eax
push 0x401448
push 0x4014a0
push 0x401508
call dword [sym.imp.KERNEL32.dll_GetProfileStringW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
push 0
lea eax, [ebp - 0xc58]
push eax
push 0x401558
push 0x401568
push 0x401580
call dword [sym.imp.KERNEL32.dll_GetProfileStringA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x4ce27c], 0x9e
jne 0x49cb6b
push 0
lea eax, [ebp - 0x1460]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
push 0
lea eax, [ebp - 0x1860]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x19e0]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExA]
lea eax, [ebp - 0xc60]
push eax
lea eax, [ebp - 0x18c0]
push eax
lea eax, [ebp - 0x18b8]
push eax
push 0x4015a8
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
lea eax, [ebp - 0x18b0]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push 0
push dword [ebp - 0x1864]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
cmp dword [ebp - 4], 0x3775ee
jle 0x49cb76
jmp 0x49cb7b
jmp 0x49ca7e
push 0x4be010
push dword [0x4ce27c]
push dword [0x4ca87c]
call fcn.0049ac4b
and dword [ebp - 0x19e4], 0
jmp 0x49cba7
mov eax, dword [ebp - 0x19e4]
inc eax
mov dword [ebp - 0x19e4], eax
cmp dword [ebp - 0x19e4], 0x3e79e
jge 0x49cbe1
cmp dword [0x4ce27c], 0x10
jne 0x49cbc9
lea eax, [ebp - 0x1a04]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnWire]
cmp dword [ebp - 0x19e4], 0x1e673
jne 0x49cbdf
add dword [0x4ca87c], 0
jmp 0x49cb9a
and dword [ebp - 0x1a08], 0
jmp 0x49cbf7
mov eax, dword [ebp - 0x1a08]
inc eax
mov dword [ebp - 0x1a08], eax
cmp dword [ebp - 0x1a08], 0xdd9a7
jge 0x49cc37
cmp dword [0x4ce27c], 0xc01
jne 0x49cc35
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeaps]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
jmp 0x49cbea
jmp dword [0x4ca87c]
Function at 0x49de90
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x49deb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x49deba
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x49ded1
mov edx, dword [ebp - 4]
push edx
call fcn.004a11b0
add esp, 4
or eax, 0xffffffff
jmp 0x49ded3
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4a5fe0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4be480]
jne 0x4a5fea
repz ret
jmp fcn.004b3ec0
Function at 0x495c7b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [edi + 0x2c]
push esi
mov esi, dword [edi + 0x3c]
sub esi, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea ecx, [ebx + ecx - 0x106]
sub esi, eax
cmp eax, ecx
jb 0x495d00
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.00470dc0
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x495cc3
mov eax, dword [edi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x495ce5
add esi, ebx
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x495d5b
mov ecx, dword [edi + 0x74]
add ecx, dword [edi + 0x6c]
push esi
add ecx, dword [edi + 0x38]
mov esi, eax
push ecx
call fcn.004959cb
add dword [edi + 0x74], eax
mov esi, dword [edi + 0x74]
cmp esi, 3
pop ecx
pop ecx
jb 0x495d47
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp esi, 0x106
jae 0x495d5b
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x495c84
pop esi
pop ebx
leave
ret

Function at 0xabee60
Capabilities:
Encode data using xor

Disassembly:
dec ecx
jns 0xabee21
in al, dx
retf
loopne 0xabee24
cmp dword [ebp + 0x3088bada], eax
pop ebp
pop ss
test edx, ebx
mov edx, 0x175d3088
add ah, byte [eax + 0x1c]
jne 0xabee58
and eax, 0xa88eccc2
push ds
sub ch, byte [edi + eax*8]
invalid
and dword [ecx], 0xfffffffb
pop esp
je 0xabedd7
out dx, al
les ecx, [esi]
retf
neg dword [ecx + ebx]
sbb al, 0x19
push ss
inc ebx
mov edx, 0x8dd91e4a
lea eax, [ebx - 0x78]
pop ebp
or al, 0xb7
dec esi
lea eax, [ebx - 0x78]
pop ebp
or al, 0xb7
dec esi
cmp al, 0x7e
xor eax, 0x453ff1cc
imul esp, dword [ebp + 0x57], 0x4b0ea9a9
lcall 0xc913, 0xd1a29ce4
jbe 0xabee57
and ah, byte [eax + 0x69355e8d]
and eax, dword [edx + eax + 0x25d21bb6]
enter 0x5af3, 0xffffffffffffffb3
les esp, [eax - 0x624164b0]
jae 0xabee4c
out dx, al
rcr cl, cl
push ebx
xchg esp, eax
jmp 0xbc57b822
Function at 0x474f00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x474f42
call fcn.0047a885
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x474f42
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x474f39
xor eax, eax
jmp 0x474f4a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00474f50
pop edi
pop esi
pop ebx
ret 4

Function at 0x47adb5
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47ade3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47ae01
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047ad1b
jmp 0x47ae01
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47ae01
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047ad1b
test edi, edi
mov eax, edi
jne 0x47adeb
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x431072
nop
nop
nop
nop
mov ebx, 0x40915c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x6b965a90
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x431060
nop
nop
nop
mov eax, section..reloc
cmp eax, 0
nop
nop
nop
je 0x4310d2
nop
nop
nop
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
mov esi, 0x74f97a27
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
and ebx, 0x77
sbb edi, 0x53
rcl esi, 0x73
neg eax
bswap ebx
dec eax
bswap edx
or edx, 0x2a
ror eax, 0x74
rol eax, 0xed
rol edx, 0xd4
rcr eax, 0xa8
and edi, 0x2f
rcr edx, 0xc5
mov eax, 0x90
dec ebx
rcr ebx, 0xf4
imul eax
imul edx
rcr eax, 2
and edx, 0x97
not edi
neg edi
bswap esi
bswap edi
dec edx
neg esi
sbb eax, 0x72
add ebx, 0xba
not ebx
dec ebx
and ebx, 0x6c
not edi
rcl edx, 0xc2
sub edx, 0x6d
bswap edx
rcl ebx, 0xb5
sbb edi, 0x52
imul edx
sub edi, 0xb3
and edi, 0xfa
neg eax
dec esi
mov edx, 0x12
bswap edi
sub edi, 0x88
sbb edi, 0x44
rcr edi, 0xb5
ror edi, 0x42
sbb edx, 6
xor ecx, ecx
xor edi, edi
rcr edi, 0xe4
rcl eax, 0x47
mov edi, 0xc5
not edx
imul ebx
sub eax, 0xab
dec edx
neg edi
bswap esi
not edx
add esi, 0xe1
mov esi, 0x33
dec ebx
rcl edi, 0x75
not esi
bswap edx
add edi, 0x60
neg ebx
or eax, 0xcb
rol eax, 0xc9
ror esi, 0x2b
rcr edx, 3
mov edx, 0xf6
sbb eax, 0xcf
rcl eax, 0x15
imul eax
and ebx, 0xe7
rcr edi, 0x64
or esi, 0x91
inc ebx
dec edi
mov ebx, 0x25
bswap edx
ror ebx, 0xe3
rcl edi, 0x42
or ebx, 0x8b
dec edi
imul edi
sbb edx, 0x6f
inc edi
sbb esi, 0x3d
rol eax, 0xb5
sub ebx, 0x99
sub eax, 8
rcr edi, 0xbe
dec ebx
sbb edx, 0xe
bswap edi
sub edx, 0xf5
sub eax, 0x32
mov ecx, dword [ebp + 0xc]
dec ebx
imul eax
bswap eax
bswap edx
and ebx, 0x19
or ebx, 0xe7
imul edx
rcl esi, 0x6a
mov edi, 3
neg edx
bswap edx
dec eax
ror eax, 0xd6
neg eax
dec edi
rol edi, 0x5d
sbb edx, 0xc2
inc edi
inc ebx
rol ebx, 0xe9
not ebx
neg esi
imul eax
dec eax
and eax, 0x8c
inc eax
not edx
rcr ebx, 0x5a
rcl esi, 0x74
inc eax
or edi, 0x15
rol eax, 0x86
dec edi
inc eax
inc ebx
or eax, 0x18
dec ebx
and esi, 0x17
imul esi
and esi, 0xd5
imul edx
sub eax, 0xee
sub edx, 0xb8
neg edi
rcr ebx, 0xc6
dec edi
add edi, 0xb3
and ebx, 0xda
ror edx, 0xfd
ror eax, 0x66
mov edi, dword [ebp + 8]
mov eax, eax
xor esi, eax
xor ebx, esi
mov eax, ebx
xor ebx, ebx
xor eax, ebx
xor eax, eax
mov eax, esi
xor eax, ebx
mov eax, ebx
mov esi, eax
mov eax, esi
not byte [edi]
xor esi, eax
xor esi, esi
xor eax, esi
xor esi, ebx
mov ebx, ebx
xor eax, eax
mov ebx, esi
mov eax, ebx
xor eax, esi
sub byte [edi], 0x49
mov esi, eax
mov eax, eax
xor esi, esi
xor ebx, ebx
mov eax, eax
mov ebx, esi
xor esi, eax
mov ebx, esi
xor esi, eax
add byte [edi], 0x89
mov eax, ebx
xor ebx, esi
xor eax, ebx
xor ebx, eax
xor eax, ebx
xor eax, esi
xor esi, ebx
xor esi, ebx
mov esi, eax
imul byte [edi]
inc edi
loop 0x4011cd
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40bf05
Capabilities:
Parse pe header

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

Function at 0x40d5fd
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 0x40d61e
jl 0x40d615
test edi, edi
jne 0x40d61e
xor eax, eax
xor edx, edx
jmp 0x40d6df
cmp dword [ebx + 0x38], 0
je 0x40d633
push eax
push edi
push dword [ebp + 8]
call fcn.0040d6e5
jmp 0x40d6df
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40d67a
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40d67a
cmp eax, edi
jb 0x40d654
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040e650
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 0x40d680
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40d6d4
mov ecx, ebx
call fcn.0040ce11
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40d6bf
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.004176cf
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 0x40d6d4
jmp 0x40d692
test edx, edx
je 0x40d6d4
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.004176cf
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 0x41aadf
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42f350
push 0x42f348
push str.FlsAlloc
push 0x1e
call fcn.0041a94c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ab13
push dword [ebp + 8]
mov ecx, esi
call dword [0x42b160]
call esi
jmp 0x41ab19
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41ab5d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42f360
push 0x42f358
push str.FlsGetValue
push 0x20
call fcn.0041a94c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ab94
push dword [ebp + 8]
mov ecx, esi
call dword [0x42b160]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41dcb9
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 0x41dd56
push ebx
push esi
call fcn.0041dc82
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.0041dbcb
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41dd03
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41dd55
push edi
push eax
call fcn.0041b97c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41dd23
call fcn.0041ae35
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41dd54
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041dbcb
add esp, 0x20
test eax, eax
jne 0x41dd42
push edi
call fcn.0041ae35
jmp 0x41dd4a
push ebx
call fcn.0041ae35
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
Function at 0x422250
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004220c1

Function at 0x42264a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00429d30
mov eax, dword [0x4852d8]
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.0041c7b1
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x42268c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4227e8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00429b60
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 + 0x486a40]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00423641
mov ecx, dword [esi*4 + 0x486a40]
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 0x4227e1
cmp eax, dword [edi + ecx + 0x24]
jne 0x4227e1
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 0x4227e1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00423641
add esp, 0x14
test edx, edx
jl 0x4227e1
jg 0x422757
test eax, eax
jb 0x4227e1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4227e1
jl 0x422771
cmp dword [ebp - 0x1008], eax
ja 0x4227e1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x42278f
test ebx, ebx
je 0x4227c8
cmp ecx, edi
jae 0x4227c8
mov al, byte [ecx]
cmp al, 0xd
jne 0x4227a9
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4227b5
cmp byte [ecx + 1], 0xa
jne 0x4227b5
inc ecx
jmp 0x4227b5
movzx eax, al
movsx eax, byte [eax + 0x485a78]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x42278f
cmp edx, ebx
jne 0x42278f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4227e6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040c398
leave
ret
Function at 0x422adf
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 + 0x486a40]
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 0x422b1f
cmp byte [ebx], 0xa
jne 0x422b1f
or byte [eax + edi + 0x28], 4
jmp 0x422b24
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x422c22
mov al, byte [edx]
cmp al, 0x1a
je 0x422c04
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x422b53
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x422b78
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x422b82
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 0x422b35
jmp 0x422c22
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 0x422bff
cmp dword [ebp - 0xc], 0
je 0x422bff
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x486a40]
test byte [eax + edi + 0x28], 0x48
je 0x422bd9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x422bc4
mov byte [esi], dl
jmp 0x422bd5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x486a40]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x422c22
cmp byte [ebp - 1], 0xa
jne 0x422be8
cmp esi, ebx
jne 0x422be8
mov byte [esi], 0xa
jmp 0x422c21
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042365f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x422c22
mov byte [esi], 0xd
jmp 0x422c21
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x486a40]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x422c1e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x422c22
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x422c2b
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 + 0x486a40]
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 0x422c6e
cmp word [esi], dx
jne 0x422c6e
or byte [edi + eax + 0x28], 4
jmp 0x422c73
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 0x422dc6
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 0x422da6
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x422cb5
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x422ceb
cmp eax, edx
jae 0x422cf7
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 0x422c8d
jmp 0x422dc6
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 0x422da2
cmp dword [ebp - 0x14], 0
je 0x422da2
mov eax, dword [ebx*4 + 0x486a40]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x422d7a
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x422d43
mov word [esi], cx
jmp 0x422d76
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x486a40]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x486a40]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x486a40]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x422dc6
pop ebx
cmp word [ebp - 4], bx
jne 0x422d8b
cmp esi, dword [ebp + 0xc]
jne 0x422d8b
mov word [esi], bx
jmp 0x422dc3
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0042365f
add esp, 0x10
cmp word [ebp - 4], bx
je 0x422dc6
push 0xd
jmp 0x422dbf
mov ecx, dword [ebx*4 + 0x486a40]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x422dbd
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x422dc6
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