joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4139da
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x43b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_StrCpyW]
mov esi, 0x444990
push 0x4375ac
push esi
call edi
push str.pred.dll
mov ebx, 0x444948
push ebx
call edi
mov eax, dword [0x43b8c0]
cmp eax, 0x64
je 0x413a30
cmp eax, 0x12c
jne 0x413a40
push str.rmed
push esi
call edi
push str._rmed.dll
jmp 0x413a3d
push str.hmed
push esi
call edi
push str.hmed.dll
push ebx
call edi
call fcn.00413b6a
test eax, eax
je 0x413a74
push 0x444388
push str.37474384
push str.Data
push str.OPTIONS
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415673
leave
ret
push dword [0x444940]
call fcn.0041ff39
push 2
push 0x32
call fcn.0041ff54
add esp, 0xc
mov dword [0x444940], eax
push 0x444388
push 0x32
push eax
push 0x4355cc
push 0x4375a4
push 0x4375a8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x413a63
mov esi, dword [0x444940]
mov ecx, esi
call fcn.00413c7f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call esi
cmp eax, 0x14
jl 0x413a63
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.004162b0
add esp, 0xc
lea eax, [ebp - 0x20c]
push dword [0x444940]
push eax
call edi
push dword [0x444940]
call esi
mov ecx, dword [0x444940]
sub eax, 0x10
lea esi, [eax + eax]
lea ecx, [esi + ecx]
call fcn.0040e124
mov edi, eax
cmp esi, 0x208
jae 0x413b64
xor eax, eax
mov word [ebp + esi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.0041a2a9
pop ecx
cmp edi, eax
jne 0x413a63
xor eax, eax
mov dword [0x44493c], 0xe8
mov dword [0x444938], 0x157
inc eax
mov dword [0x444934], 0x2e9
jmp 0x413a65
call fcn.004157a3
int3

Function at 0x413b6a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x794]
sub esp, 0x814
mov eax, dword [0x43b004]
xor eax, ebp
mov dword [ebp + 0x790], eax
push esi
lea eax, [ebp - 0x78]
xor esi, esi
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push 0x20019
push esi
push esi
push esi
push str.SOFTWAREWinTools_SoftwareExtraDisks
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x413bb1
xor eax, eax
jmp 0x413bee
lea eax, [ebp - 0x74]
mov dword [ebp - 0x74], 0x400
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x7c]
push eax
push esi
push 0x444990
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x413be3
lea eax, [ebp - 0x70]
push eax
call fcn.0041a286
pop ecx
mov esi, eax
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp + 0x790]
xor ecx, ebp
pop esi
call fcn.00415673
add ebp, 0x794
leave
ret
Function at 0x413c04
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x43b004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 8]
xor esi, esi
push eax
lea eax, [ebp - 0xc]
mov edi, edx
push eax
push esi
push 0x20006
push esi
push esi
push esi
push str.SOFTWAREWinTools_SoftwareExtraDisks
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x413c43
xor eax, eax
jmp 0x413c71
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push edi
push 1
push esi
push 0x444990
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x413c66
xor esi, esi
inc esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00415673
leave
ret

Function at 0x413c7f
Capabilities:
Encode data using xor

Disassembly:
movzx eax, word [ecx]
test ax, ax
je 0x413c9c
mov edx, eax
xor edx, 1
mov word [ecx], dx
lea ecx, [ecx + 2]
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x413c89
xor eax, eax
ret
Function at 0x414a86
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x43b004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x44437c]
xorps xmm0, xmm0
and dword [ebp - 0x28], 0
and dword [ebp - 0x20], 0
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x40]
push eax
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x14], xmm0
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x4c
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x24], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00415673
leave
ret

Function at 0x414af1
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43b004]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0xa], 0
xorps xmm0, xmm0
push esi
mov esi, ecx
movlpd qword [ebp - 0x12], xmm0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
cmp word [esi + eax*2 - 2], 0x5c
jne 0x414b28
mov word [esi + eax*2 - 2], cx
jmp 0x414b2d
mov word [esi + eax*2 + 2], cx
mov eax, dword [0x44437c]
and dword [ebp - 0x18], 0
mov dword [ebp - 0x24], eax
mov eax, 0x454
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x1c], esi
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00415673
leave
ret

Function at 0x414fee
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x43b004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x415062
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push esi
push dword [ebp - 0x18]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x415062
push esi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
jmp 0x415064
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00415673
leave
ret

Function at 0x415f78
Capabilities:
Parse pe header

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

Function at 0x425377
Capabilities:
Read file on windows

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

Function at 0x425382
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004251b2
Function at 0x42e080
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42e0ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42e0ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40ce70
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x40cea1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x40ce90
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x4157f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 0x10], 0xc
jge 0x415802
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, dword [0x450098]
inc eax
mov dword [0x450098], eax
cmp eax, 1
jne 0x415827
push 0
call fcn.004256f7
xor eax, 0xbb40e64e
push eax
call fcn.004256e5
add esp, 8
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x18]
push edi
push esi
push dword [ebp + 8]
call fcn.004159c0
add esp, 0xc
mov dword [ebp + 0x10], 0
call fcn.004256c4
sar eax, 7
movzx edx, al
push edi
push esi
mov dword [ebp - 8], edx
call fcn.00415930
push edx
push edi
push esi
mov ebx, eax
call fcn.00415a30
mov ecx, dword [ebp + 0x10]
add esp, 0x14
mov eax, dword [ebp - 8]
xor al, bl
mov byte [ebp + ecx - 0x18], al
inc ecx
mov dword [ebp + 0x10], ecx
cmp ecx, 0xa
jb 0x415844
push edi
push esi
push dword [ebp + 8]
call fcn.004159c0
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
add esp, 0xc
mov dword [ebp - 4], edx
sub eax, edx
mov dword [ebp - 8], 0xa
mov dword [ebp - 0xc], eax
nop dword [eax]
push edi
push esi
call fcn.00415930
mov ebx, eax
mov eax, dword [ebp - 0xc]
mov al, byte [eax + edx]
movzx ecx, al
push ecx
push edi
push esi
mov byte [ebp + 0x13], al
call fcn.00415a30
mov edx, dword [ebp - 4]
add esp, 0x14
mov al, byte [ebp + 0x13]
xor al, bl
mov byte [edx], al
inc edx
sub dword [ebp - 8], 1
mov dword [ebp - 4], edx
jne 0x4158a0
push edi
push esi
call fcn.00415930
mov esi, dword [ebp + 0x1c]
mov ebx, esi
shr ebx, 0x10
movzx ecx, bl
push ecx
push edi
push dword [ebp + 0x14]
mov dword [ebp + 0x10], eax
call fcn.00415a30
mov eax, dword [ebp + 0xc]
xor bl, byte [ebp + 0x10]
mov edx, dword [ebp + 0x14]
push edi
push edx
mov byte [eax + 0xa], bl
call fcn.00415930
shr esi, 0x18
mov ebx, eax
push esi
push edi
push edx
call fcn.00415a30
mov ecx, dword [ebp + 0xc]
add esp, 0x28
mov eax, esi
xor al, bl
pop edi
pop esi
mov byte [ecx + 0xb], al
mov eax, 0xc
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x415a30
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebx]
mov eax, ecx
xor eax, dword [ebp + 0x10]
mov edx, dword [ebx + 8]
movzx eax, al
shr ecx, 8
xor ecx, dword [esi + eax*4]
movzx eax, cl
add eax, dword [ebx + 4]
mov dword [ebx], ecx
imul ecx, eax, 0x8088405
mov eax, dword [ebp + 0x10]
inc ecx
mov dword [ebx + 4], ecx
shr ecx, 0x18
xor ecx, edx
shr edx, 8
movzx ecx, cl
xor edx, dword [esi + ecx*4]
pop esi
mov dword [ebx + 8], edx
pop ebx
pop ebp
ret
Function at 0x415a80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp dword [edi + 0x100ac], ebx
je 0x415ae8
cmp dword [edi + 0x7c], ebx
jbe 0x415ae8
mov ecx, 0xffffff5c
lea eax, [edi + 0x100d0]
sub ecx, edi
lea esi, [edi + 0xa4]
mov dword [ebp + 8], ecx
nop
mov edx, dword [edi + 0x100dc]
push edx
push eax
call fcn.00415930
movzx ecx, byte [esi]
mov ebx, eax
push ecx
push edx
lea eax, [edi + 0x100d0]
push eax
call fcn.00415a30
xor byte [esi], bl
add esp, 0x14
mov eax, dword [ebp + 8]
inc esi
add eax, esi
cmp eax, dword [edi + 0x7c]
lea eax, [edi + 0x100d0]
jb 0x415ab0
xor ebx, ebx
mov esi, dword [edi + 0x7c]
lea eax, [edi + 0xa4]
push esi
push eax
push dword [edi + 0x2c]
mov eax, dword [edi + 8]
push dword [edi + 0x1c]
call eax
add esp, 0x10
mov dword [edi + 0x7c], 0
or ecx, 0xffffffff
cmp eax, esi
cmovne ebx, ecx
add dword [edi + 0x100c0], esi
mov ecx, dword [edi + 0x48]
mov eax, ebx
adc dword [edi + 0x100c4], 0
add dword [edi + 0x100c8], ecx
mov dword [edi + 0x48], 0
adc dword [edi + 0x100cc], 0
pop edi
pop esi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00417280

Function at 0x4175a0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movzx eax, dl
shr edx, 8
xor edx, dword [eax*4 + 0x43d258]
movzx eax, dl
shr edx, 8
xor edx, dword [eax*4 + 0x43d258]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x43d258]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x43d258]
mov eax, edx
pop ebp
ret

Function at 0x41b410
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041b420
Function at 0x41c94d
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 0x41c96e
jl 0x41c965
test edi, edi
jne 0x41c96e
xor eax, eax
xor edx, edx
jmp 0x41ca2f
cmp dword [ebx + 0x38], 0
je 0x41c983
push eax
push edi
push dword [ebp + 8]
call fcn.0041ca35
jmp 0x41ca2f
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x41c9ca
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x41c9ca
cmp eax, edi
jb 0x41c9a4
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0041f210
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 0x41c9d0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x41ca24
mov ecx, ebx
call fcn.0041c1ed
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x41ca0f
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00424ede
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 0x41ca24
jmp 0x41c9e2
test edx, edx
je 0x41ca24
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00424ede
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 0x41e9ab
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41e9ea
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41e9ea
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41e9ea
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41e9ea
cmp dword [ecx + 0x74], 0xe
jbe 0x41e9ea
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x424ac8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0041df40
mov eax, dword [0x44f014]
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.0042bde8
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x424b0a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x424c66
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0043b520
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 + 0x450bf0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0042d8c9
mov ecx, dword [esi*4 + 0x450bf0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x424c5f
cmp eax, dword [ecx + edi + 0x24]
jne 0x424c5f
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x424c5f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042d8c9
add esp, 0x14
test edx, edx
jl 0x424c5f
jg 0x424bd5
test eax, eax
jb 0x424c5f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x424c5f
jl 0x424bef
cmp dword [ebp - 0x1008], eax
ja 0x424c5f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x424c0d
test ebx, ebx
je 0x424c46
cmp ecx, edi
jae 0x424c46
mov al, byte [ecx]
cmp al, 0xd
jne 0x424c27
lea eax, [edi - 1]
cmp ecx, eax
jae 0x424c33
cmp byte [ecx + 1], 0xa
jne 0x424c33
inc ecx
jmp 0x424c33
movzx eax, al
movsx eax, byte [eax + 0x44f298]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x424c0d
cmp edx, ebx
jne 0x424c0d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x424c64
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041db56
leave
ret

Function at 0x42b7b5
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x442fb0
push 0x442fa8
push str.FlsAlloc
push 0x1f
call fcn.0042b620
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42b7e9
push dword [ebp + 8]
mov ecx, esi
call dword [0x43d15c]
call esi
jmp 0x42b7ef
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42b833
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x442fc0
push 0x442fb8
push str.FlsGetValue
push 0x21
call fcn.0042b620
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42b86a
push dword [ebp + 8]
mov ecx, esi
call dword [0x43d15c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x42b872
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x442fc8
push 0x442fc0
push str.FlsSetValue
push 0x22
call fcn.0042b620
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42b8ac
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x43d15c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x42d945
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x450bf0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42d985
cmp byte [ebx], 0xa
jne 0x42d985
or byte [edi + eax + 0x28], 4
jmp 0x42d98a
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x42da89
mov dl, byte [eax]
cmp dl, 0x1a
je 0x42da6c
inc eax
cmp dl, 0xd
je 0x42d9b6
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x42d9dc
cmp eax, ecx
jae 0x42d9ea
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x42d99e
jmp 0x42da89
push 0
lea eax, [ebp - 0x10]
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 0x42da67
cmp dword [ebp - 0x10], 0
je 0x42da67
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x450bf0]
test byte [eax + edi + 0x28], 0x48
je 0x42da41
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42da2c
mov byte [esi], dl
jmp 0x42da3d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x450bf0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42da89
cmp byte [ebp - 1], 0xa
jne 0x42da50
cmp esi, ebx
jne 0x42da50
mov byte [esi], 0xa
jmp 0x42da88
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042d8e7
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42da89
mov byte [esi], 0xd
jmp 0x42da88
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x450bf0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42da86
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42da89
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42da92
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x450bf0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42dad8
cmp word [ebx], dx
jne 0x42dad8
or byte [eax + edi + 0x28], 4
jmp 0x42dadd
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x42dc40
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x42dc20
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x42db1e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x42db54
cmp eax, edx
jae 0x42db62
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x42daf9
jmp 0x42dc40
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42dc1b
cmp dword [ebp - 0x18], 0
je 0x42dc1b
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x450bf0]
test byte [eax + edi + 0x28], 0x48
je 0x42dbf1
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x42dbb5
mov word [esi], cx
jmp 0x42dbec
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x450bf0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x450bf0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x450bf0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x42dc40
pop eax
cmp word [ebp - 4], ax
jne 0x42dc01
cmp esi, ebx
jne 0x42dc01
mov word [esi], ax
jmp 0x42dc3d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0042d8e7
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x42dc40
push 0xd
pop eax
jmp 0x42dbfc
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x450bf0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x42dc3a
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x42dc40
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret