joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455630
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00448eb8
and dword [ebp - 4], 0
cmp dword [0x49f8f4], 0
mov ebx, eax
jne 0x4556e1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x455792
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x455792
push eax
call fcn.00448e46
mov dword [esp], 0x46db00
push edi
mov dword [0x49f8f4], eax
call esi
push eax
call fcn.00448e46
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x49f8f8], eax
call esi
push eax
call fcn.00448e46
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x49f8fc], eax
call esi
push eax
call fcn.00448e46
pop ecx
mov dword [0x49f904], eax
test eax, eax
je 0x4556e1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00448e46
pop ecx
mov dword [0x49f900], eax
mov eax, dword [0x49f900]
cmp eax, ebx
je 0x455739
cmp dword [0x49f904], ebx
je 0x455739
push eax
call fcn.00448ec1
push dword [0x49f904]
mov esi, eax
call fcn.00448ec1
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x455739
test edi, edi
je 0x455739
call esi
test eax, eax
je 0x455730
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x455730
test byte [ebp - 0xc], 1
jne 0x455739
or dword [ebp + 0x10], 0x200000
jmp 0x455772
mov eax, dword [0x49f8f8]
cmp eax, ebx
je 0x455772
push eax
call fcn.00448ec1
pop ecx
test eax, eax
je 0x455772
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x455772
mov eax, dword [0x49f8fc]
cmp eax, ebx
je 0x455772
push eax
call fcn.00448ec1
pop ecx
test eax, eax
je 0x455772
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x49f8f4]
call fcn.00448ec1
pop ecx
test eax, eax
je 0x455792
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x455794
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10091720
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x10091904
pushal
mov esi, section.UPX1
lea edi, [esi - 0x74000]
push edi
jmp 0x1009174a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10091751
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10091740
mov eax, 1
add ebx, ebx
jne 0x10091763
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10091774
jne 0x10091793
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10091793
dec eax
add ebx, ebx
jne 0x10091780
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x10091758
add ebx, ebx
jne 0x1009178f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x100917e5
xor ecx, ecx
sub eax, 3
jb 0x100917ab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1009181a
sar eax, 1
mov ebp, eax
jmp 0x100917b6
add ebx, ebx
jne 0x100917b6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10091784
inc ecx
add ebx, ebx
jne 0x100917c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10091784
add ebx, ebx
jne 0x100917d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x100917c6
jne 0x100917e2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x100917c6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10091804
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x100917f6
jmp 0x10091746
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10091804
add edi, ecx
jmp 0x10091746
pop esi
mov edi, esi
mov ecx, 0xb8
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10091822
cmp byte [edi], 2
jne 0x10091822
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x10091827
lea edi, [esi + 0x8f000]
mov eax, dword [edi]
or eax, eax
je 0x10091896
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x91000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x910c8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10091854
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x910cc]
or eax, eax
je 0x10091890
mov dword [ebx], eax
add ebx, 4
jmp 0x10091871
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x100918c7
cmp al, 0xef
ja 0x100918ba
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1009189c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x100918a9
mov ebp, dword [esi + 0x910d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x100918fb
sub esp, 0xffffff80
jmp 0x10002db0
Function at 0x4029a0
Capabilities:
Parse pe header

Disassembly:
jmp 0x42e1bb
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42e1fb
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42e1fb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42e1fb
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42e1fb
cmp dword [ecx + 0x74], 0xe
jbe 0x42e1fb
cmp dword [ecx + 0xe8], 0
je 0x42e1fb
mov al, 1
ret
xor al, al
ret
Function at 0x403972
Capabilities:
Send data
Send data on socket

Disassembly:
jmp 0x425840
push esi
mov esi, ecx
push edi
mov edi, dword [esi]
cmp edi, 0xffffffff
je 0x4258d5
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x4258d5
mov eax, dword [edx + 8]
sub eax, dword [edx + 4]
push 0
push eax
mov eax, dword [edx]
add eax, dword [edx + 4]
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x42588a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.send_error__1_:__d_n
call fcn.004035a3
add esp, 8
pop edi
pop esi
ret
test ecx, ecx
jns 0x42589f
push ecx
push str.send_error__2_:__d_n
call fcn.004035a3
add esp, 8
pop edi
pop esi
ret
mov eax, dword [esi + 0x1c]
add dword [eax + 4], ecx
mov edi, dword [esi + 0x1c]
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
jne 0x4258d5
test edi, edi
je 0x4258c6
push dword [edi]
call fcn.004049f8
push 0xc
push edi
call fcn.00401708
add esp, 0xc
push dword [esi]
mov dword [esi + 0x1c], 0
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
ret
Function at 0x404610
Capabilities:
Terminate thread

Disassembly:
jmp fcn.00424f30
jmp 0x425120
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
je 0x425168
push 0
push 0
push 0x7e7
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
push 0xbb8
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x425158
push 0xffffffffffffffff
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10], 0
cmp byte [esi], 0
je 0x425173
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esi + 0x34]
cmp ecx, 0x10
jb 0x4251a3
mov eax, dword [esi + 0x20]
inc ecx
cmp ecx, 0x1000
jb 0x425199
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4251be
mov eax, edx
push ecx
push eax
call fcn.00401708
add esp, 8
mov dword [esi + 0x30], 0
lea ecx, [esi + 8]
mov dword [esi + 0x34], 0xf
mov byte [esi + 0x20], 0
pop esi
jmp 0x403580
call fcn.0040440d
int3

Function at 0x40473c
Capabilities:
Query environment variable

Disassembly:
jmp 0x47423d
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x474251
xor edi, edi
jmp 0x474288
push ebx
push esi
call fcn.00474146
sub eax, esi
sar eax, 1
lea ebx, [eax + eax]
push ebx
call fcn.0040407a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x474278
push ebx
push esi
push edi
call fcn.0040213f
add esp, 0xc
push 0
call fcn.004027a2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret

Function at 0x404895
Capabilities:
Terminate process

Disassembly:
jmp 0x439f5c
push 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x439f6c
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00402342
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret
Function at 0x416740
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
mov dword [ebp - 8], ebx
cmp dword [ebx], 0
jne 0x4168dc
cmp dword [ebx + 4], 0xffffffff
jne 0x4168dc
push esi
lea esi, [ebx + 0x244]
push esi
push 0x103
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x416775
sub esi, ecx
sar esi, 1
movzx eax, word [ebx + esi*2 + 0x242]
cmp eax, 0x5c
je 0x4167a3
cmp eax, 0x2f
je 0x4167a3
mov dword [ebx + esi*2 + 0x244], 0x2f
xor eax, eax
push edi
mov edi, dword [ebp + 0x10]
cmp edi, 1
jne 0x4167ce
mov esi, dword [ebp + 8]
push edi
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4167e9
pop edi
pop esi
mov eax, 0x2000000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp edi, 2
je 0x4167e6
cmp edi, 3
je 0x4167e6
pop edi
pop esi
mov eax, 0x10000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 8]
xor ebx, ebx
xor al, al
mov byte [ebp - 1], al
mov byte [ebp + 0x13], bl
cmp edi, 1
je 0x41682f
cmp edi, 2
jne 0x41684b
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x416829
pop edi
pop esi
mov eax, 0x200
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov byte [ebp + 0x13], 1
jmp 0x416835
mov ebx, esi
mov byte [ebp + 0x13], 0
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
setne al
mov byte [ebp - 1], al
push 0x20
call fcn.00403bbb
add esp, 4
mov esi, eax
cmp edi, 1
je 0x416886
cmp edi, 2
je 0x416886
mov eax, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov word [esi], 0x100
mov byte [esi + 0x10], 0
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0xc], 0
jmp 0x4168b7
mov al, byte [ebp + 0x13]
mov byte [esi + 0x10], al
mov al, byte [ebp - 1]
mov byte [esi], 1
mov byte [esi + 1], al
mov dword [esi + 4], ebx
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
test al, al
je 0x4168b7
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0xc], eax
push esi
call fcn.00402b8a
mov ecx, dword [ebp - 8]
add esp, 4
mov edx, 0x200
mov dword [ecx], eax
xor ecx, ecx
test eax, eax
pop edi
cmove ecx, edx
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0x1000000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x40915c
mov ecx, 0x2e6f152e
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x431024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x13b9701b
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0xd68058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xd681a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xd6807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd6806a
add dl, dl
jne 0xd68089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd680dc
xor eax, eax
add dl, dl
jne 0xd68096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd6817d
add dl, dl
jne 0xd680a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd680b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd680bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd680c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xd680d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xd68075
mov eax, 1
add dl, dl
jne 0xd680ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd680f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd680e1
sub eax, ebx
mov ebx, 1
jne 0xd68128
mov ecx, 1
add dl, dl
jne 0xd6810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd68119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd68105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd68075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xd6813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd6814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd68136
cmp eax, 0x7d00
jae 0xd6816d
cmp eax, 0x500
jb 0xd68168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd68075
cmp eax, 0x7f
ja 0xd68170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd68075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xd6819e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xd68075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4068db
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068ff
xor eax, eax
test eax, eax
je 0x406912
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406912
xor ecx, ecx
jmp 0x406915
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406a38
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43110c], 0
push esi
jne 0x406a6f
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a49
mov dword [ecx*4 + 0x431108], eax
inc ecx
cmp ecx, 0x100
jl 0x406a44
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406aa0
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431108]
xor eax, esi
inc ecx
dec edx
jne 0x406a82
pop edi
not eax
pop esi
ret 0xc

Function at 0x10428058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x104281a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
Function at 0x4022fd
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
mov eax, dword [0x47f5c0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
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 0x402366
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.00401b4a
lea eax, [esp + 0x14]
push 0x235
push eax
call fcn.00403a65
pop ecx
pop ecx
cmp eax, dword [esp + 0x38]
je 0x40237e
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00402e72
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x40232e
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.00406114
add esp, 0x20
ret
mov eax, dword [ebx + 0x24]
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.00402e72
jmp 0x402368

Function at 0x403ee0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ecx
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x4804f0], eax
push 0x27
push 0x47f030
push 0x547
mov esi, 0x47f058
push esi
call fcn.0040239c
push 0x8aafdc01
push dword [0x4804f0]
call fcn.004022fd
add esp, 0x18
lea ecx, [esp + 8]
push ecx
push 0x40
push 0x4e4
push esi
call eax
pop edi
pop esi
test eax, eax
je 0x403f40
call fcn.00403de5
xor eax, eax
pop ecx
ret 0x10
Function at 0x418050
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00417ec1

Function at 0x41844a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407010
mov eax, dword [0x47f5c0]
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.004161cb
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41848c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4185e8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004218d0
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 + 0x480f90]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00419441
mov ecx, dword [esi*4 + 0x480f90]
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 0x4185e1
cmp eax, dword [edi + ecx + 0x24]
jne 0x4185e1
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 0x4185e1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00419441
add esp, 0x14
test edx, edx
jl 0x4185e1
jg 0x418557
test eax, eax
jb 0x4185e1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4185e1
jl 0x418571
cmp dword [ebp - 0x1008], eax
ja 0x4185e1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41858f
test ebx, ebx
je 0x4185c8
cmp ecx, edi
jae 0x4185c8
mov al, byte [ecx]
cmp al, 0xd
jne 0x4185a9
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4185b5
cmp byte [ecx + 1], 0xa
jne 0x4185b5
inc ecx
jmp 0x4185b5
movzx eax, al
movsx eax, byte [eax + 0x47f898]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41858f
cmp edx, ebx
jne 0x41858f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4185e6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406114
leave
ret
Function at 0x4188df
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 + 0x480f90]
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 0x41891f
cmp byte [ebx], 0xa
jne 0x41891f
or byte [eax + edi + 0x28], 4
jmp 0x418924
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x418a22
mov al, byte [edx]
cmp al, 0x1a
je 0x418a04
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x418953
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x418978
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x418982
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 0x418935
jmp 0x418a22
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 0x4189ff
cmp dword [ebp - 0xc], 0
je 0x4189ff
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x480f90]
test byte [eax + edi + 0x28], 0x48
je 0x4189d9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4189c4
mov byte [esi], dl
jmp 0x4189d5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x480f90]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x418a22
cmp byte [ebp - 1], 0xa
jne 0x4189e8
cmp esi, ebx
jne 0x4189e8
mov byte [esi], 0xa
jmp 0x418a21
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041945f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x418a22
mov byte [esi], 0xd
jmp 0x418a21
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x480f90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x418a1e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x418a22
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret