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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x10036014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10037af8]
push ebx
push esi
push edi
mov edi, ecx
xor eax, 0x763481ac
mov dword [ebp - 0x14], eax
mov eax, dword [0x10037afc]
xor eax, 0x763481ac
mov dword [ebp - 0xb8], edi
mov ebx, dword [edi + 0x18]
add ebx, 0x23
mov dword [ebp - 0x10], eax
and ebx, 0xfffffff8
push ebx
call fcn.100125ba
mov esi, eax
add esp, 4
test esi, esi
jne 0x1000c294
lea eax, [esi + 2]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10011ed6
mov esp, ebp
pop ebp
ret
push ebx
push edi
push esi
call fcn.100151b0
lea eax, [ebx - 0x10]
mov word [esi + 0x24], 0x2d04
add esp, 0xc
lea edi, [esi + 0x10]
xor ecx, ecx
mov edx, edi
test eax, eax
je 0x1000c2d2
mov edi, eax
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x10030770]
sub edi, 1
jne 0x1000c2b5
lea edi, [esi + 0x10]
xor eax, eax
mov dword [esi + 0xc], ecx
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x14]
mov dword [ebp - 8], eax
lea ecx, [ebp - 0xb0]
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.1000a100
push ebx
push esi
mov edx, esi
lea ecx, [ebp - 0xb0]
call fcn.1000a1a0
push 0x94
lea eax, [ebp - 0xb0]
push 0
push eax
call fcn.10015730
mov eax, dword [ebp - 0xb8]
add esp, 0x1c
push ebx
push esi
push ebx
push esi
push dword [eax + 0x10]
push 0
call fcn.100291e0
mov dword [ebp - 0xb4], eax
cmp eax, 0x6f8
je 0x1000c3b5
xor eax, eax
lea edx, [ebp - 0x14]
push eax
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0xb0]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1000a100
push ebx
push esi
mov edx, esi
lea ecx, [ebp - 0xb0]
call fcn.1000a1a0
lea edx, [ebx - 0x10]
add esp, 0x10
xor ecx, ecx
test edx, edx
je 0x1000c38a
lea ecx, [ecx]
movzx eax, byte [edi]
lea edi, [edi + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x10030770]
sub edx, 1
jne 0x1000c370
cmp dword [esi + 0xc], ecx
je 0x1000c396
mov ecx, 0x6f8
jmp 0x1000c3b7
mov ecx, dword [ebp - 0xb8]
mov eax, dword [ecx + 0x18]
add eax, 0x1c
push eax
push esi
push ecx
call fcn.100151b0
mov ecx, dword [ebp - 0xb4]
add esp, 0xc
jmp 0x1000c3b7
mov ecx, eax
mov eax, dword [ebp - 0xb8]
mov edx, dword [eax + 0x10]
call fcn.1000c0f0
push ebx
push 0
push esi
mov edi, eax
call fcn.10015730
add esp, 0xc
push esi
call fcn.10011ff3
add esp, 4
cmp edi, 0x5de
je 0x1000c3e9
cmp edi, 5
jne 0x1000c3ec
or edi, 0xffffffff
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10011ed6
mov esp, ebp
pop ebp
ret
Function at 0x1000e120
Capabilities:
Move file
Write file on windows

Disassembly:
push ecx
push ebx
push esi
push edi
push 0x20
push 0x10030c90
push 0x10037b10
mov edi, edx
mov ebx, ecx
call fcn.100187af
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1000e237
push eax
push eax
call fcn.10018b4b
mov esi, eax
add esp, 8
test esi, esi
jne 0x1000e184
mov eax, dword [0x100368b0]
cmp eax, 0x100368b0
je 0x1000e17d
push 0x10037b10
push dword [eax + 0x14]
mov edx, 0x10030cf4
lea ecx, [esi + 0x43]
push dword [eax + 0x10]
call fcn.10001d20
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret
push esi
push 0x10037b10
call fcn.10018b66
add esp, 8
test eax, eax
je 0x1000e1d9
call fcn.100165ba
cmp dword [eax], 2
je 0x1000e1e2
push esi
call fcn.10016d7f
add esp, 4
mov eax, dword [0x100368b0]
cmp eax, 0x100368b0
je 0x1000e17d
push 0x10037b10
push dword [eax + 0x14]
mov edx, 0x10030cf4
mov ecx, 0x44
push dword [eax + 0x10]
call fcn.10001d20
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret
push esi
call fcn.10018bbb
add esp, 4
push esi
call fcn.10016d7f
add esp, 4
push 0x20
push 0x10030c90
push 0x10037b10
call fcn.100187af
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1000e237
mov eax, dword [0x100368b0]
cmp eax, 0x100368b0
je 0x1000e17d
push 0x10037b10
push dword [eax + 0x14]
mov edx, 0x10030cf4
lea ecx, [esi + 0x45]
push dword [eax + 0x10]
call fcn.10001d20
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret
push esi
push edi
push 1
push ebx
call fcn.10018dfe
add esp, 0x10
push esi
cmp eax, edi
je 0x1000e292
call fcn.10018ecc
add esp, 4
push 0x10037b10
call fcn.10018bbb
add esp, 4
mov eax, dword [0x100368b0]
cmp eax, 0x100368b0
je 0x1000e17d
push 0x10037b10
push dword [eax + 0x14]
mov edx, 0x10030cf4
mov ecx, 0x46
push dword [eax + 0x10]
call fcn.10001d20
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret
call fcn.10018ecc
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x1000e2b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push 0xa
movzx eax, cx
push eax
push dword [0x10037a88]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x1000e301
mov eax, dword [0x100368b0]
cmp eax, 0x100368b0
je 0x1000e2f9
push dword [eax + 0x14]
mov edx, 0x10030cf4
lea ecx, [esi + 0x47]
push dword [eax + 0x10]
call fcn.10001d00
add esp, 8
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
push dword [0x10037a88]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push dword [0x10037a88]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x1000e34d
mov eax, dword [0x100368b0]
cmp eax, 0x100368b0
je 0x1000e2f9
push dword [eax + 0x14]
mov edx, 0x10030cf4
mov ecx, 0x48
push dword [eax + 0x10]
call fcn.10001d00
add esp, 8
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x1000e384
mov eax, dword [0x100368b0]
cmp eax, 0x100368b0
je 0x1000e2f9
push dword [eax + 0x14]
mov edx, 0x10030cf4
lea ecx, [esi + 0x49]
push dword [eax + 0x10]
call fcn.10001d00
add esp, 8
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x10037d28]
test eax, eax
je 0x1000e3c7
lea ecx, [ebp - 4]
push ecx
call eax
test eax, eax
jne 0x1000e3c7
mov eax, dword [0x100368b0]
cmp eax, 0x100368b0
je 0x1000e2f9
push dword [eax + 0x14]
mov edx, 0x10030cf4
mov ecx, 0x4a
push dword [eax + 0x10]
call fcn.10001d00
add esp, 8
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ecx
mov edx, edi
mov ecx, esi
call fcn.1000e120
mov ecx, dword [0x10037d24]
add esp, 4
mov esi, eax
test ecx, ecx
je 0x1000e3e5
push dword [ebp - 4]
call ecx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000e3f0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x10036014]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x10037d20], 0
push edi
mov edi, edx
mov dword [ebp - 0x214], ecx
je 0x1000e523
test edi, edi
je 0x1000e523
cmp word [edi], 0
je 0x1000e523
mov eax, dword [0x10037af0]
lea edx, [ebp - 0x208]
and eax, 0x100
push edx
mov dword [ebp - 0x210], eax
or eax, 0x10008
push eax
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000e50d
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x20c], 0x100
push eax
lea eax, [ebp - 0x204]
push eax
push 0
push dword [ebp - 0x208]
call ebx
mov esi, eax
cmp esi, 0x103
je 0x1000e4d0
test esi, esi
jne 0x1000e4ee
mov ecx, dword [ebp - 0x208]
lea edx, [ebp - 0x204]
call fcn.1000e3f0
mov esi, eax
test esi, esi
je 0x1000e462
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10011ed6
mov esp, ebp
pop ebp
ret
push 0
push dword [ebp - 0x210]
push edi
push dword [ebp - 0x214]
call dword [0x10037d20]
lea esi, [eax - 2]
neg esi
sbb esi, esi
and esi, eax
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10011ed6
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x1000e528
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10011ed6
mov esp, ebp
pop ebp
ret
mov eax, 0x3f2
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.10011ed6
mov esp, ebp
pop ebp
ret
Function at 0x1000e540
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
lea eax, [esp + 8]
push esi
mov esi, dword [0x10037af0]
push edi
push eax
and esi, 0x100
mov edi, ecx
mov eax, esi
or eax, 4
push eax
push 0
push str.SystemCurrentControlSetServices
push Ordinal_3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1000e5a6
mov eax, dword [0x100368b0]
cmp eax, 0x100368b0
je 0x1000e59e
push dword [eax + 0x14]
mov edx, 0x10030cf4
mov ecx, 0x4b
push dword [eax + 0x10]
call fcn.10001d00
add esp, 8
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x1c]
or esi, 2
push eax
lea eax, [esp + 0x10]
push eax
push 0
push esi
push 0
push 0
push 0
push str.dtlitescsidrv
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1000e605
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x100368b0]
cmp eax, 0x100368b0
je 0x1000e59e
push dword [eax + 0x14]
mov edx, 0x10030cf4
mov ecx, 0x4c
push dword [eax + 0x10]
call fcn.10001d00
add esp, 8
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esp + 0x14]
push 4
push eax
push 4
push 0
push str.Start
push dword [esp + 0x20]
mov dword [esp + 0x2c], 3
call esi
test eax, eax
je 0x1000e644
mov eax, dword [0x100368b0]
cmp eax, 0x100368b0
je 0x1000e6d5
mov ecx, 0x4d
jmp 0x1000e6c2
push 4
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 1
push eax
push 4
push 0
push str.Type
push dword [esp + 0x20]
call esi
test eax, eax
je 0x1000e679
mov eax, dword [0x100368b0]
cmp eax, 0x100368b0
je 0x1000e6d5
mov ecx, 0x4e
jmp 0x1000e6c2
push 0xe
push str.SCSI_Miniport
push 1
push 0
push str.Group
push dword [esp + 0x20]
call esi
test eax, eax
je 0x1000e6a6
mov eax, dword [0x100368b0]
cmp eax, 0x100368b0
je 0x1000e6d5
mov ecx, 0x4f
jmp 0x1000e6c2
mov ecx, edi
call fcn.1000e2b0
test eax, eax
jne 0x1000e6fd
mov eax, dword [0x100368b0]
cmp eax, 0x100368b0
je 0x1000e6d5
mov ecx, 0x50
push dword [eax + 0x14]
mov edx, 0x10030cf4
push dword [eax + 0x10]
call fcn.10001d00
add esp, 8
push dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
mov ecx, dword [esp + 0x10]
mov edx, str.dtlitescsidrv
call fcn.1000e3f0
push dword [esp + 0x10]
call esi
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [esp + 0x10]
call esi
mov eax, dword [0x100368b0]
cmp eax, 0x100368b0
je 0x1000e733
push dword [eax + 0x14]
mov edx, 0x10030cf4
mov ecx, 0x51
push dword [eax + 0x10]
call fcn.10001d00
add esp, 8
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10010770
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
mov eax, dword [0x10036014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x214]
push 0x210
push 0
push eax
call fcn.10015730
push esi
lea eax, [ebp - 0x214]
push 0x108
push eax
call fcn.10016a2c
push 0x1002b628
lea eax, [ebp - 0x214]
push 0x108
push eax
call fcn.10019aa0
add esp, 0x24
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100107f1
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10011ed6
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
xor ebx, ebx
jmp 0x10010800
mov ecx, 0x1002b634
lea eax, [ebp - 0x438]
jmp 0x10010810
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10010836
test dx, dx
je 0x10010832
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10010836
add eax, 4
add ecx, 4
test dx, dx
jne 0x10010810
xor eax, eax
jmp 0x1001083b
sbb eax, eax
or eax, 1
test eax, eax
je 0x1001087f
mov eax, 0x1002b638
lea ecx, [ebp - 0x438]
lea ebx, [ebx]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x10010876
test dx, dx
je 0x10010872
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x10010876
add ecx, 4
add eax, 4
test dx, dx
jne 0x10010850
xor eax, eax
jmp 0x1001087b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10010893
lea eax, [ebp - 0x464]
push eax
push esi
call edi
test eax, eax
jne 0x10010800
jmp 0x10010898
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
xor ebx, 1
pop edi
mov al, bl
xor ecx, ebp
pop ebx
pop esi
call fcn.10011ed6
mov esp, ebp
pop ebp
ret
Function at 0x10010dd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10010de5
xor al, al
pop ebp
ret
shr al, 4
and al, 1
pop ebp
ret

Function at 0x100111b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0xf013f
push 1
push 0
push 0
push str.SoftwareDisc_SoftDAEMON_Tools_LiteRebootFlag
push Ordinal_3
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10011203
push 0xa
push str.temp
push 1
push eax
push 0x1002b624
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x10020168
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1001fe16

Function at 0x10029554
Capabilities:
Execute syscall

Disassembly:
mov eax, dword [sym.VDriveLib.dll_A0DB34FC6FE35D429A28ADDE5467D4D7]
lea edx, [esp + 4]
int 0x2e
ret 0x28
Function at 0x405b24
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
sar eax, 2
push edi
mov edi, dword [ebp + 0x14]
test eax, eax
je 0x405ba4
push esi
xor esi, esi
cmp dword [ebp + 0x18], esi
jbe 0x405ba3
push ebx
mov ebx, 0x45e648
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x6c
xor al, 0x74
push str.Own_head
push ebx
mov byte [edi + esi], al
call fcn.004013cb
push eax
call fcn.00402409
mov al, byte [edi + esi]
add al, 0x4e
xor al, 0xdc
push str.Earth
push ebx
mov byte [edi + esi], al
call fcn.004013cb
push eax
call fcn.00402409
mov al, byte [edi + esi]
xor al, 0xac
sub al, 0x65
xor al, 0x22
sub al, 0x73
push 0x428558
mov byte [edi + esi], al
call fcn.0040f67e
xor byte [edi + esi], al
add esp, 0x1c
inc esi
cmp esi, dword [ebp + 0x18]
jb 0x405b46
pop ebx
pop esi
lea ecx, [ebp + 8]
call fcn.0040563b
pop edi
pop ebp
ret 0x14

Function at 0x409508
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 0x409529
jl 0x409520
test edi, edi
jne 0x409529
xor eax, eax
xor edx, edx
jmp 0x4095ea
cmp dword [ebx + 0x38], 0
je 0x40953e
push eax
push edi
push dword [ebp + 8]
call fcn.004095f0
jmp 0x4095ea
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x409585
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x409585
cmp eax, edi
jb 0x40955f
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040ad50
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 0x40958b
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4095df
mov ecx, ebx
call fcn.00408da2
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4095ca
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.004133f8
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 0x4095df
jmp 0x40959d
test edx, edx
je 0x4095df
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.004133f8
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 0x40a8af
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40a8ee
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40a8ee
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40a8ee
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40a8ee
cmp dword [ecx + 0x74], 0xe
jbe 0x40a8ee
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4197fd
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c7f0
push 0x42c7e8
push str.FlsAlloc
push 0x1e
call fcn.0041966a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x419831
push dword [ebp + 8]
mov ecx, esi
call dword [0x42817c]
call esi
jmp 0x419837
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41987b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c800
push 0x42c7f8
push str.FlsGetValue
push 0x20
call fcn.0041966a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4198b2
push dword [ebp + 8]
mov ecx, esi
call dword [0x42817c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41cca8
Capabilities:
Read file on windows

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

Function at 0x41d0a2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040ad00
mov eax, dword [0x45c9c0]
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.0041ac65
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41d0e4
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41d240
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00426830
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 + 0x45eff0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041de41
mov ecx, dword [esi*4 + 0x45eff0]
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 0x41d239
cmp eax, dword [edi + ecx + 0x24]
jne 0x41d239
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 0x41d239
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041de41
add esp, 0x14
test edx, edx
jl 0x41d239
jg 0x41d1af
test eax, eax
jb 0x41d239
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41d239
jl 0x41d1c9
cmp dword [ebp - 0x1008], eax
ja 0x41d239
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41d1e7
test ebx, ebx
je 0x41d220
cmp ecx, edi
jae 0x41d220
mov al, byte [ecx]
cmp al, 0xd
jne 0x41d201
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41d20d
cmp byte [ecx + 1], 0xa
jne 0x41d20d
inc ecx
jmp 0x41d20d
movzx eax, al
movsx eax, byte [eax + 0x45cc88]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41d1e7
cmp edx, ebx
jne 0x41d1e7
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41d23e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040a110
leave
ret
Function at 0x41d2df
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 + 0x45eff0]
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 0x41d31f
cmp byte [ebx], 0xa
jne 0x41d31f
or byte [eax + edi + 0x28], 4
jmp 0x41d324
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41d422
mov al, byte [edx]
cmp al, 0x1a
je 0x41d404
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41d353
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41d378
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41d382
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 0x41d335
jmp 0x41d422
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 0x41d3ff
cmp dword [ebp - 0xc], 0
je 0x41d3ff
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x45eff0]
test byte [eax + edi + 0x28], 0x48
je 0x41d3d9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41d3c4
mov byte [esi], dl
jmp 0x41d3d5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x45eff0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41d422
cmp byte [ebp - 1], 0xa
jne 0x41d3e8
cmp esi, ebx
jne 0x41d3e8
mov byte [esi], 0xa
jmp 0x41d421
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041de5f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41d422
mov byte [esi], 0xd
jmp 0x41d421
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x45eff0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41d41e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41d422
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret