joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1443c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [eax + 0x60]
cmp dword [ecx + 8], 0x115
jne 0x144d0
cmp dword [ecx + 4], 0x107
jne 0x144d0
mov eax, dword [eax + 0xc]
mov dword [esi + 0x6b], 0x177de
mov dword [esi + 0x61], eax
lea eax, [ebp - 8]
push eax
mov dword [esi + 0x6f], 0x1774c
mov dword [esi + 0x8a], esi
call dword [fcn.000102e4]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
call dword [int.000102e0]
movsx eax, word [ebp - 0xc]
movsx ecx, word [ebp - 0xe]
imul eax, ecx
mov dword [esi + 0x73], eax
mov eax, dword [esi + 0x61]
push 0x40
mov ecx, dword [eax + 8]
pop edx
add ecx, 0x646c6f47
xor word [eax + 0xc], cx
xor word [eax + 0xe], cx
xor dword [eax + 0x110], ecx
xor byte [eax + 0x114], cl
add eax, 0x10
xor dword [eax], ecx
add eax, 4
dec edx
jne 0x144c4
xor eax, eax
jmp 0x144d5
mov eax, 0xc000000d
pop esi
leave
ret 8

Function at 0x152b8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push ebx
push edi
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x1f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x28]
xor ebx, ebx
push eax
mov byte [ebp - 0x20], 0x2a
mov byte [ebp - 0x10], 0x67
mov byte [ebp - 0x1f], 0x2f
mov byte [ebp - 0xf], 0x21
mov byte [ebp - 0x1e], 0xed
mov byte [ebp - 0xe], 0x4c
mov byte [ebp - 0x1d], 0x5e
mov byte [ebp - 0xd], 0xa4
mov byte [ebp - 0x1c], 0x49
mov byte [ebp - 0xc], 0x10
mov byte [ebp - 0x1b], 0x26
mov byte [ebp - 0xb], 0x7e
mov byte [ebp - 0x1a], 0x40
mov byte [ebp - 0xa], 0x51
mov byte [ebp - 0x19], 0x19
mov byte [ebp - 9], 0x22
mov byte [ebp - 0x18], 0x40
mov byte [ebp - 8], 0x25
mov byte [ebp - 0x17], 0x40
mov byte [ebp - 7], bl
mov byte [ebp - 0x16], 0xe2
mov byte [ebp - 6], bl
mov byte [ebp - 0x15], 0x51
mov byte [ebp - 5], bl
mov byte [ebp - 0x14], 0xaa
mov byte [ebp - 4], bl
mov byte [ebp - 0x13], 0xfa
mov byte [ebp - 3], bl
mov byte [ebp - 0x12], 0xdb
mov byte [ebp - 0x11], 0xcb
call dword [fcn.000102e4]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [int.000102e0]
mov eax, dword [ebp - 0x38]
mov byte [ebp - 5], 0x2d
mov byte [ebp - 7], al
sar eax, 8
mov byte [ebp - 6], al
mov eax, dword [ebp - 0x36]
mov byte [ebp - 4], al
sar eax, 8
mov byte [ebp - 3], al
lea eax, [ebp - 0x90]
push eax
call fcn.000153b8
lea eax, [ebp - 0x20]
push 0x1e
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.000153e6
lea eax, [ebp - 0x90]
push eax
push dword [ebp + 8]
call fcn.0001547e
push 0x1e
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.0001075e
pop edi
pop ebx
leave
ret 4

Function at 0x153b8
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret 4
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x41a87e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x41a88d
pop dword [ebp - 0x2c]
mov eax, 0x95d8bc31
sub eax, 0x959713a4
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0xa71100ab
sub dword [ebp - 0x3c], 0x58bebb60
mov dword [ebp - 0x38], 0xc43807
sub dword [ebp - 0x38], 0xce90ebc2
mov dword [ebp - 0x34], 0x8a9201c2
add dword [ebp - 0x34], 0xc1ba426c
mov dword [ebp - 0x30], 0x77e9f717
add dword [ebp - 0x30], 0x881608e9
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x77cbb92e
sub eax, 0x778988ba
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xdabdb62e
add dword [ebp - 0x3c], 0x99b4b328
mov dword [ebp - 0x38], 0x337c4247
sub dword [ebp - 0x38], 0xf20fe0d2
mov dword [ebp - 0x34], 0x4bd2138f
add dword [ebp - 0x34], 0x179d58dd
mov dword [ebp - 0x30], 0xba3f18fe
sub dword [ebp - 0x30], 0xba3f18fe
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0x5839fd95
add eax, 0xa808338f
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x454f1
push 0
call eax
mov ecx, 0xac3d82ba
add ecx, 0x53c2def2
mov edx, eax
mov ebx, 0x434400
add ebx, dword [ebp - 0x2c]
mov edi, 0x88bf734e
add edi, 0xb45b9d5d
xor dword [ebp - 4], esi
mov esi, dword [ebx]
add dword [ebp - 0x20], eax
add esi, edi
xor dword [ebp - 4], 0xb02bf0d9
mov dword [edx], esi
mov dword [ebp - 0x18], 0xa6941468
add edx, 0x3fe6a20d
sub edx, 0x3fe6a209
add ebx, 0x5ea1b75c
add ebx, 0xa15e48a8
loop 0x41a9a9
add eax, 0x1b598bb7
add eax, 0xe4a7edcc
mov ebx, eax
add eax, 0xb777a46d
add eax, 0x48885b98
mov ecx, 0x400000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret

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

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
je 0x431072
nop
nop
mov ebx, 0x40915c
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
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
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x98e0f84
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x431060
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4310d2
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x42241541
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x4310c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x1005b751
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x1005b760
pop dword [ebp - 0x28]
mov eax, 0x8d0ee35a
sub eax, 0x7d092bfa
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0xea8d6748
add dword [ebp - 0x38], 0x63c4de03
mov dword [ebp - 0x34], 0x711892b4
add dword [ebp - 0x34], 0xc11ab991
mov dword [ebp - 0x30], 0x5854c286
sub dword [ebp - 0x30], 0xc087e58
mov dword [ebp - 0x2c], 0xaadb385e
sub dword [ebp - 0x2c], 0xaadb385e
lea eax, [ebp - 0x38]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0xb295bd81
sub dword [ebp - 0x38], 0x3e23542b
mov dword [ebp - 0x34], 0x3f4f124b
add dword [ebp - 0x34], 0x21d4f2a
mov dword [ebp - 0x30], 0x8946d5b9
sub dword [ebp - 0x30], 0x25d7694d
mov dword [ebp - 0x2c], 0x775cf147
add dword [ebp - 0x2c], 0x88a30eb9
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x5d9bb
push 0
call eax
mov ecx, 0x54e9
xor ebx, ebx
add ebx, eax
mov edx, 0x602108f3
sub edx, 0x501428f3
add edx, dword [ebp - 0x28]
mov edi, 0x5f48caf9
sub edi, 0xaa49f21e
sub dword [ebp - 0x20], eax
mov esi, dword [edx]
sub dword [ebp - 0x1c], 0xe847def5
xor esi, edi
sub dword [ebp - 0x1c], 0x333e03e3
mov dword [ebx], esi
add ebx, 0x897d4a05
add ebx, 0x7682b5ff
add edx, 4
loop 0x1005b874
add eax, 0x2d14f654
sub eax, 0x2d13afdd
mov ebx, eax
add eax, 0x496c2d3b
sub eax, 0x496c2d36
mov ecx, 0xd5912a4b
add ecx, 0x3a6ed5b5
add ecx, dword [ebp - 0x28]
call ebx
leave
ret

Function at 0x100858d9
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100858ea
pop esi
ret
push ebx
push edi
push esi
call fcn.1005b751
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1005b751
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10085912
push ebx
push esi
push edi
call fcn.10067180
add esp, 0xc
push 0
call fcn.1005b751
pop ecx
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x408980
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
mov ebx, ecx
push esi
mov esi, dword [esp + 0x14]
test eax, eax
jg 0x4089a1
jl 0x408997
test esi, esi
jne 0x4089a1
pop esi
xor eax, eax
xor edx, edx
pop ebx
pop ecx
ret 0xc
cmp dword [ebx + 0x38], 0
push ebp
push edi
mov edi, esi
je 0x408a54
mov ebp, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
nop dword [eax]
mov ecx, ebx
call fcn.004043d0
mov esi, eax
mov eax, edx
mov dword [esp + 0x10], eax
test eax, eax
jl 0x408a11
jg 0x4089d9
test esi, esi
je 0x408a11
cmp ebp, eax
jg 0x4089e9
jl 0x4089e3
cmp edi, esi
jae 0x4089e9
mov esi, edi
mov dword [esp + 0x10], ebp
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push dword [esp + 0x20]
call fcn.0040c8c0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
sub edi, esi
sbb ebp, dword [esp + 0x10]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x18]
jmp 0x408a30
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x408a40
mov eax, dword [esp + 0x18]
add edi, 0xffffffff
mov esi, 1
adc ebp, 0xffffffff
mov byte [eax], cl
add eax, esi
mov dword [esp + 0x18], eax
test ebp, ebp
jg 0x4089c0
jl 0x408a40
test edi, edi
jne 0x4089c0
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
sub eax, edi
pop edi
sbb edx, ebp
pop ebp
pop esi
pop ebx
pop ecx
ret 0xc
mov eax, dword [ebx + 0x1c]
mov ebp, dword [esp + 0x18]
mov edx, dword [eax]
test edx, edx
je 0x408a99
mov eax, dword [ebx + 0x2c]
lea ecx, [ebx + 0x2c]
mov dword [esp + 0x10], ecx
mov eax, dword [eax]
test eax, eax
je 0x408aa0
mov edi, dword [esp + 0x1c]
cmp eax, edi
cmovb esi, eax
push esi
push edx
push ebp
call fcn.0040c8c0
mov eax, dword [ebx + 0x2c]
add ebp, esi
sub edi, esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x1c]
jmp 0x408aa0
lea eax, [ebx + 0x2c]
mov dword [esp + 0x10], eax
cmp dword [ebx + 0x4c], 0
je 0x408b09
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x408aca
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [eax], edx
cmp edi, 0xfff
jbe 0x408af4
push dword [ebx + 0x4c]
push 0xfff
push 1
push ebp
call fcn.00414b8f
add esp, 0x10
add ebp, eax
sub edi, eax
cmp eax, 0xfff
jne 0x408b09
cmp edi, eax
ja 0x408ad2
test edi, edi
je 0x408b09
push dword [ebx + 0x4c]
push edi
push 1
push ebp
call fcn.00414b8f
add esp, 0x10
sub edi, eax
mov edx, dword [esp + 0x20]
sub esi, edi
pop edi
pop ebp
mov eax, esi
sbb edx, 0
pop esi
pop ebx
pop ecx
ret 0xc
Function at 0x408ec0
Capabilities:
Create thread

Disassembly:
sub esp, 0x64
mov eax, dword [0x46c180]
xor eax, esp
mov dword [esp + 0x60], eax
push esi
push edi
call fcn.004069e0
push 0
push 0
push 0
push 0x4083c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xa
xorps xmm0, xmm0
mov dword [esp + 0x34], 0
push str.Black_John
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 0
movups xmmword [esp + 0x28], xmm0
call fcn.004015e0
push 0xb
xorps xmm0, xmm0
mov dword [esp + 0x4c], 0
push str.Agent_Smith
lea ecx, [esp + 0x40]
mov dword [esp + 0x54], 0
movups xmmword [esp + 0x40], xmm0
call fcn.004015e0
push 7
xorps xmm0, xmm0
mov dword [esp + 0x64], 0
push str.Alister
lea ecx, [esp + 0x58]
mov dword [esp + 0x6c], 0
movups xmmword [esp + 0x58], xmm0
call fcn.004015e0
lea eax, [esp + 8]
mov dword [esp + 0xc], 0
push eax
lea edx, [esp + 0x24]
mov dword [esp + 0x14], 0
lea ecx, [esp + 0x6c]
mov dword [esp + 0x1c], edx
lea eax, [esp + 0x1c]
mov dword [esp + 0xc], ecx
push eax
sub ecx, edx
mov dword [esp + 0x1c], 0
mov eax, 0x2aaaaaab
imul ecx
lea ecx, [esp + 0x14]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
call fcn.00401680
mov edi, 3
lea esi, [esp + 0x68]
nop dword [eax]
mov ecx, dword [esi - 4]
lea esi, [esi - 0x18]
dec edi
cmp ecx, 7
jbe 0x40900d
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x409003
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4090e6
mov eax, edx
push ecx
push eax
call fcn.0040b564
add esp, 8
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
test edi, edi
jne 0x408fd0
mov esi, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x14]
cmp esi, ebp
je 0x4090bd
push ebx
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x409040
mov eax, dword [esi]
push dword [esi + 0x10]
push eax
push 0x46d708
call fcn.00401e80
mov ebx, eax
add esp, 0xc
mov ecx, dword [ebx]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + ebx + 0x30]
mov edi, dword [ecx + 4]
mov ecx, edi
mov dword [esp + 0x24], edi
mov edx, dword [edi]
call dword [edx + 4]
lea eax, [esp + 0x20]
push eax
call fcn.00402610
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
call dword [edx + 0x30]
movzx eax, ax
mov dword [esp + 0x10], eax
test edi, edi
je 0x4090a2
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
test eax, eax
je 0x40909e
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov eax, dword [esp + 0x10]
push eax
mov ecx, ebx
call fcn.00407e20
mov ecx, ebx
call fcn.00406890
add esi, 0x18
cmp esi, ebp
jne 0x409036
pop ebx
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_GetNumberOfEventLogRecords]
lea ecx, [esp + 0x10]
call fcn.00404e30
mov ecx, dword [esp + 0x6c]
xor eax, eax
pop ebp
pop edi
pop esi
xor ecx, esp
call fcn.0040b577
add esp, 0x64
ret 0x10
call fcn.0041008f
int3
Function at 0x40c1b8
Capabilities:
Parse pe header

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

Function at 0x41ccaa
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x430760
push 0x430758
push str.FlsAlloc
push 0x1e
call fcn.0041cb74
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ccde
push dword [ebp + 8]
mov ecx, esi
call dword [0x42c140]
call esi
jmp 0x41cce4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41cd28
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x430770
push 0x430768
push str.FlsGetValue
push 0x20
call fcn.0041cb74
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41cd5f
push dword [ebp + 8]
mov ecx, esi
call dword [0x42c140]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41e5d8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041e27a

Function at 0x41e5e3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041e409

Function at 0x41e9dd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040c320
mov eax, dword [0x46c180]
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.0041d2dd
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41ea1f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41eb7b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042b5a0
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 + 0x46e150]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041fbad
mov ecx, dword [esi*4 + 0x46e150]
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 0x41eb74
cmp eax, dword [edi + ecx + 0x24]
jne 0x41eb74
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 0x41eb74
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041fbad
add esp, 0x14
test edx, edx
jl 0x41eb74
jg 0x41eaea
test eax, eax
jb 0x41eb74
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41eb74
jl 0x41eb04
cmp dword [ebp - 0x1008], eax
ja 0x41eb74
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41eb22
test ebx, ebx
je 0x41eb5b
cmp ecx, edi
jae 0x41eb5b
mov al, byte [ecx]
cmp al, 0xd
jne 0x41eb3c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41eb48
cmp byte [ecx + 1], 0xa
jne 0x41eb48
inc ecx
jmp 0x41eb48
movzx eax, al
movsx eax, byte [eax + 0x46c440]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41eb22
cmp edx, ebx
jne 0x41eb22
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41eb79
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040b577
leave
ret
Function at 0x41f04b
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 + 0x46e150]
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 0x41f08b
cmp byte [ebx], 0xa
jne 0x41f08b
or byte [eax + edi + 0x28], 4
jmp 0x41f090
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41f18e
mov al, byte [edx]
cmp al, 0x1a
je 0x41f170
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41f0bf
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41f0e4
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41f0ee
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 0x41f0a1
jmp 0x41f18e
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 0x41f16b
cmp dword [ebp - 0xc], 0
je 0x41f16b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x46e150]
test byte [eax + edi + 0x28], 0x48
je 0x41f145
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41f130
mov byte [esi], dl
jmp 0x41f141
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x46e150]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41f18e
cmp byte [ebp - 1], 0xa
jne 0x41f154
cmp esi, ebx
jne 0x41f154
mov byte [esi], 0xa
jmp 0x41f18d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041fbcb
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41f18e
mov byte [esi], 0xd
jmp 0x41f18d
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x46e150]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41f18a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41f18e
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41f197
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 + 0x46e150]
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 0x41f1da
cmp word [esi], dx
jne 0x41f1da
or byte [edi + eax + 0x28], 4
jmp 0x41f1df
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 0x41f332
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 0x41f312
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41f221
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41f257
cmp eax, edx
jae 0x41f263
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 0x41f1f9
jmp 0x41f332
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 0x41f30e
cmp dword [ebp - 0x14], 0
je 0x41f30e
mov eax, dword [ebx*4 + 0x46e150]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41f2e6
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41f2af
mov word [esi], cx
jmp 0x41f2e2
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x46e150]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x46e150]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x46e150]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41f332
pop ebx
cmp word [ebp - 4], bx
jne 0x41f2f7
cmp esi, dword [ebp + 0xc]
jne 0x41f2f7
mov word [esi], bx
jmp 0x41f32f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041fbcb
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41f332
push 0xd
jmp 0x41f32b
mov ecx, dword [ebx*4 + 0x46e150]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41f329
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41f332
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