joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dbeb
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1044
call fcn.00410410
mov eax, dword [0x4566b4]
xor eax, esp
mov dword [esp + 0x1040], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1058]
lea eax, [esp + 0x84c]
push edi
mov edi, dword [esp + 0x1058]
mov ebp, 0x800
push ebp
xor ebx, ebx
push ebx
push eax
call fcn.00411ec0
push esi
push ebx
push edi
push 0xffffffffffffffff
lea eax, [esp + 0x86c]
push 0x400
push eax
call fcn.00404720
add esp, 0x24
test eax, eax
jns 0x40dc53
xor eax, eax
mov word [esp + 0x104e], ax
push 0x40
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.00411ec0
lea eax, [esp + 0x1c]
push 0x20
push eax
call fcn.0040db6b
push 0x440090
lea eax, [esp + 0x28]
push 0x20
push eax
call fcn.004256fa
push ebp
lea eax, [esp + 0x74]
push ebx
push eax
call fcn.00411ec0
mov ecx, edi
add esp, 0x2c
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40dc91
sub ecx, edx
sar ecx, 1
cmp ecx, 6
jbe 0x40dce1
lea eax, [edi - 0xc]
mov edx, 0x440094
lea eax, [eax + ecx*2]
mov si, word [eax]
xor ecx, ecx
inc ecx
cmp si, word [edx]
jne 0x40dcd9
test si, si
je 0x40dcd5
mov si, word [eax + 2]
cmp si, word [edx + 2]
jne 0x40dcd9
add eax, 4
add edx, 4
test si, si
jne 0x40dcb0
mov eax, ebx
jmp 0x40dcdd
sbb eax, eax
or eax, ecx
test eax, eax
je 0x40dce3
mov ecx, ebx
lea esi, [esp + 0x10]
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0x40dcea
sub esi, edx
lea eax, [esp + 0x850]
push eax
sar esi, 1
mov edx, 0x4400b4
test ecx, ecx
mov eax, str.Error:
cmove eax, edx
push eax
lea edi, [esi + esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.P:_04d_T:_04d__s_s
mov eax, 0x3ff
sub eax, esi
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x6c]
add eax, edi
push eax
call fcn.004046de
add esp, 0x20
test eax, eax
jns 0x40dd5a
mov dword [esp + 0x846], 0x2e002e
mov dword [esp + 0x84a], 0x2e
push edi
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x58]
push eax
call fcn.00411940
lea edi, [esp + 0x5c]
add esp, 0xc
sub edi, 2
mov ax, word [edi + 2]
lea edi, [edi + 2]
cmp ax, bx
jne 0x40dd74
mov eax, dword [0x4400e8]
mov dword [edi], eax
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x1050]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00410400
add esp, 0x1044
ret

Function at 0x40e49d
Capabilities:
Create process on windows

Disassembly:
call fcn.0040f2cd
test eax, eax
jne 0x40e4bb
push 1
push eax
push eax
push str.http:__java.com_inst_dl_redirect
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret
Function at 0x40e51b
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x4018
call fcn.00410410
mov eax, dword [0x4566b4]
xor eax, esp
mov dword [esp + 0x4014], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x4028]
lea eax, [esp + 0x20]
push edi
mov ebp, 0x1000
mov dword [esp + 0x1c], esi
xor ebx, ebx
push ebp
push ebx
push eax
mov edi, ebx
call fcn.00411ec0
push ebp
lea eax, [esp + 0x1034]
push ebx
push eax
call fcn.00411ec0
add esp, 0x18
mov dword [esp + 0x10], 0x800
lea eax, [esp + 0x18]
push eax
push 0x20019
push ebx
push 0x4431d8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e69a
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x10]
push ebx
push ebx
push ebx
push ebx
push eax
lea eax, [esp + 0x38]
push eax
push ebx
push dword [esp + 0x34]
call ebp
test eax, eax
jne 0x40e69a
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x24]
push eax
push 0x443230
push 0x4431cc
lea eax, [esp + 0x1030]
push 0x800
push eax
call fcn.00409a4f
add esp, 0x14
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
lea eax, [esp + 0x1030]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e672
push 0x1000
push eax
lea eax, [esp + 0x202c]
push eax
call fcn.00411ec0
add esp, 0xc
mov dword [esp + 0x10], 0x800
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x2028]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push 0x443288
push dword [esp + 0x28]
call ebx
test eax, eax
jne 0x40e672
cmp dword [esp + 0x10], eax
jbe 0x40e672
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x800
push eax
lea eax, [esp + 0x3028]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push 0x4432a0
push dword [esp + 0x28]
call ebx
xor eax, eax
mov dword [esp + 0x10], 0x800
push eax
push eax
push eax
push eax
lea eax, [esp + 0x20]
inc edi
push eax
lea eax, [esp + 0x38]
push eax
push edi
push dword [esp + 0x34]
call ebp
test eax, eax
je 0x40e5bd
lea eax, [esp + 0x3024]
mov ecx, esi
push eax
call fcn.0040d612
mov ecx, dword [esp + 0x4024]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00410400
add esp, 0x4018
ret

Function at 0x40ecb4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push edi
mov dword [ebp - 4], esi
call fcn.0040efdf
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax*2 + 2]
lea eax, [ebp - 4]
push eax
push 0x20006
push esi
push dword [0x4566ac]
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40ecf7
xor eax, eax
jmp 0x40ed1c
push edi
push dword [ebp + 0xc]
push 1
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40ed11
xor esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x40ed20
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x2010
call fcn.00410410
mov eax, dword [0x4566b4]
xor eax, esp
mov dword [esp + 0x200c], eax
push ebx
mov ebx, dword [esp + 0x2018]
lea eax, [esp + 0x10]
push ebp
push esi
push edi
mov edi, dword [esp + 0x2028]
mov ebp, 0x1000
xor esi, esi
mov dword [esp + 0x18], 1
push ebp
push esi
push eax
mov dword [esp + 0x1c], esi
call fcn.00411ec0
push ebp
lea eax, [esp + 0x102c]
push esi
push eax
call fcn.00411ec0
push ebx
call fcn.00421004
add esp, 0x1c
test eax, eax
je 0x40edb9
push eax
push dword [esp + 0x2030]
push edi
call fcn.00425769
add esp, 0xc
test eax, eax
je 0x40ef52
xor eax, eax
mov ecx, dword [esp + 0x201c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00410400
add esp, 0x2010
ret
lea eax, [esp + 0x10]
push eax
push 0x20019
push esi
push dword [0x4566a8]
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ed9e
lea eax, [esp + 0x202c]
push eax
push edi
lea eax, [esp + 0x20]
push eax
push esi
push ebx
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40ef36
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x800
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
push esi
push 0x443880
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40ee34
xor esi, esi
inc esi
jmp 0x40ef36
push dword [esp + 0x10]
call ebp
lea eax, [esp + 0x10]
push eax
push 0x20019
push esi
push str.SOFTWAREOracleJavaDeploy
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ee2c
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x800
push eax
lea eax, [esp + 0x1020]
push eax
lea eax, [esp + 0x20]
push eax
push esi
push str.deployment.modified.timestamp
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40ee2c
mov dword [esp + 0x14], 0x800
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x101c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40eec0
test dx, dx
je 0x40eebc
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40eec0
add eax, 4
add ecx, 4
test dx, dx
jne 0x40ee9a
mov eax, esi
jmp 0x40eec5
sbb eax, eax
or eax, 1
test eax, eax
js 0x40ef52
lea eax, [esp + 0x14]
push eax
push edi
lea eax, [esp + 0x20]
push eax
push esi
push ebx
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40ee2c
push dword [esp + 0x10]
call ebp
call fcn.0040cd61
test eax, eax
jne 0x40ef52
lea eax, [esp + 0x10]
push eax
push 0x20006
push esi
push dword [0x4566a8]
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ed9e
push dword [esp + 0x14]
push edi
push 1
push esi
push ebx
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40ef43
push dword [esp + 0x10]
call ebp
mov eax, esi
jmp 0x40eda0
push dword [esp + 0x10]
call ebp
push edi
push ebx
call fcn.0040ecb4
pop ecx
pop ecx
xor eax, eax
inc eax
jmp 0x40eda0
Function at 0x40ef5a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push dword [ebp + 8]
xor edi, edi
xor esi, esi
inc edi
mov dword [ebp - 4], esi
mov dword [ebp - 8], edi
call fcn.00421004
pop ecx
test eax, eax
je 0x40ef90
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00425769
add esp, 0xc
test eax, eax
jne 0x40efaf
mov eax, edi
jmp 0x40efdb
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push dword [0x4566ac]
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40efb3
xor eax, eax
jmp 0x40efdb
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
test eax, eax
cmove esi, edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x40f121
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x3014
call fcn.00410410
mov eax, dword [0x4566b4]
xor eax, esp
mov dword [esp + 0x3010], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x3024]
lea eax, [esp + 0x1c]
push edi
mov ebp, 0x1000
xor ebx, ebx
push ebp
push ebx
push eax
mov edi, ebx
call fcn.00411ec0
push ebp
lea eax, [esp + 0x1030]
push ebx
push eax
call fcn.00411ec0
add esp, 0x18
mov dword [esp + 0x10], 0x800
lea eax, [esp + 0x18]
push eax
push 0x20019
push ebx
push 0x4436c0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f29a
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x10]
push ebx
push ebx
push ebx
push ebx
push eax
lea eax, [esp + 0x34]
push eax
push ebx
push dword [esp + 0x34]
call ebp
test eax, eax
jne 0x40f29a
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x20]
push eax
push 0x443718
push 0x4436b4
lea eax, [esp + 0x102c]
push 0x800
push eax
call fcn.00409a4f
add esp, 0x14
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
lea eax, [esp + 0x102c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f270
push 0x1000
push eax
lea eax, [esp + 0x2028]
push eax
call fcn.00411ec0
add esp, 0xc
mov dword [esp + 0x10], 0x800
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x2024]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push str.RuntimeLib
push dword [esp + 0x28]
call ebx
test eax, eax
jne 0x40f270
cmp dword [esp + 0x10], eax
jbe 0x40f270
mov eax, dword [esp + 0x302c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push esi
lea eax, [esp + 0x24]
push eax
push 0
push 0x443788
push dword [esp + 0x28]
call ebx
xor eax, eax
mov dword [esp + 0x10], 0x800
push eax
push eax
push eax
push eax
lea eax, [esp + 0x20]
inc edi
push eax
lea eax, [esp + 0x34]
push eax
push edi
push dword [esp + 0x34]
call ebp
test eax, eax
je 0x40f1bf
xor ebx, ebx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0x40f29d
sub esi, ecx
xor eax, eax
mov ecx, dword [esp + 0x3020]
sar esi, 1
cmp eax, esi
pop edi
pop esi
pop ebp
sbb eax, eax
pop ebx
xor ecx, esp
neg eax
call fcn.00410400
add esp, 0x3014
ret
Function at 0x40f2cd
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x230]
sub esp, 0x2b0
mov eax, dword [0x4566b4]
xor eax, ebp
mov dword [ebp + 0x22c], eax
push ebx
push 0x208
xor ebx, ebx
lea eax, [ebp + 0x24]
push ebx
push eax
call fcn.00411ec0
add esp, 0xc
lea eax, [ebp + 0x24]
push eax
push ebx
push ebx
push 0x2c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x40f317
xor eax, eax
jmp 0x40f40e
push esi
push edi
lea eax, [ebp + 0x24]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040f9bd
push str.JavaJava_Updatejucheck.exe
mov ecx, eax
call fcn.0040fcf7
push eax
lea ecx, [ebp - 0x24]
call fcn.0040f985
lea ecx, [ebp - 0xc]
call fcn.0040fc96
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xc]
push 0x22
push eax
call fcn.0040f5a1
add esp, 0xc
mov esi, eax
mov ecx, esi
push 0x22
call fcn.0040fd7a
push esi
lea ecx, [ebp + 0xc]
call fcn.0040f985
lea ecx, [ebp - 0xc]
call fcn.0040fc96
push 0x44
pop esi
push esi
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.00411ec0
xor eax, eax
mov dword [ebp - 0x80], esi
lea edi, [ebp - 0x3c]
add esp, 0xc
cmp dword [ebp + 0x20], 8
lea ecx, [ebp + 0xc]
stosd dword es:[edi], eax
lea edx, [ebp - 0x25]
cmovae ecx, dword [ebp + 0xc]
push edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0x1c]
lea eax, [ecx + eax*2]
lea ecx, [ebp + 0xc]
cmovae ecx, dword [ebp + 0xc]
push eax
push ecx
lea ecx, [ebp]
call fcn.0040f568
lea eax, [ebp - 0x2a]
mov dword [ebp - 0x2a], ebx
push eax
lea ecx, [ebp]
call fcn.0040f730
cmp dword [ebp - 0x10], 8
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x80]
push ecx
push ebx
push ebx
push 0x8000000
push 1
push ebx
push ebx
push dword [ebp]
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
push eax
call fcn.0040c225
add esp, 0x28
neg eax
sbb esi, esi
lea ecx, [ebp]
neg esi
call fcn.0040fc70
lea ecx, [ebp + 0xc]
call fcn.0040fc96
lea ecx, [ebp - 0x24]
call fcn.0040fc96
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp + 0x22c]
xor ecx, ebp
pop ebx
call fcn.00410400
add ebp, 0x230
leave
ret

Function at 0x40f424
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00410410
mov eax, dword [0x4566b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x400
lea eax, [ebp - 0x804]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
je 0x40f493
push str.DeploymentRuleSet.jar
lea eax, [ebp - 0x804]
push eax
push str._sSunJavaDeployment_s
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0040f964
add esp, 0x14
test eax, eax
jle 0x40f493
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40f493
test al, 0x10
jne 0x40f493
xor eax, eax
inc eax
jmp 0x40f495
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00410400
leave
ret
Function at 0x41102e
Capabilities:
Parse pe header

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

Function at 0x421afb
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4566b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x446fd0
push esi
call fcn.00422d31
pop ecx
pop ecx
test eax, eax
jne 0x421b29
xor al, al
jmp 0x421ba6
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.0042183c
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x421b63
push dword [ebp - 0x210]
call fcn.004220b1
xor al, al
jmp 0x421ba4
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x421b69
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x421b89
push edx
call fcn.00421a32
pop ecx
test al, al
je 0x421b54
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x421b97
mov bl, 1
push dword [ebp - 0x210]
call fcn.004220b1
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00410400
leave
ret

Function at 0x42d4c1
Capabilities:
Set environment variable

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

Function at 0x42dc78
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x448a84
push 0x448a7c
push str.FlsAlloc
push 0x1f
call fcn.0042dae3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42dcac
push dword [ebp + 8]
mov ecx, esi
call dword [0x43d298]
call esi
jmp 0x42dcb2
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42dcf6
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x448a94
push 0x448a8c
push str.FlsGetValue
push 0x21
call fcn.0042dae3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42dd2d
push dword [ebp + 8]
mov ecx, esi
call dword [0x43d298]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42dd35
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x448a9c
push 0x448a94
push str.FlsSetValue
push 0x22
call fcn.0042dae3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42dd6f
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x43d298]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x430213
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0043018f
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x430382
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x430382
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x430337
jg 0x43026f
test eax, eax
je 0x43032d
push 1
push 0x1000
call fcn.0042c4db
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x430292
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x430324
push 0x8000
push ebx
call fcn.004285d7
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4302bb
jg 0x4302b6
cmp ecx, 0x1000
jb 0x4302bb
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0042f180
add esp, 0x10
cmp eax, 0xffffffff
je 0x430300
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4302b6
jl 0x4302e7
test ecx, ecx
jne 0x4302a8
push dword [ebp - 0xc]
push ebx
call fcn.004285d7
push esi
call fcn.0042ad61
add esp, 0xc
xor ebx, ebx
jmp 0x430390
cmp byte [edi + 0x24], 0
je 0x430317
cmp dword [edi + 0x20], 5
jne 0x430317
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x430322
mov ebx, dword [edi + 0x18]
jmp 0x430324
xor ebx, ebx
push esi
call fcn.0042ad61
pop ecx
jmp 0x430390
test ecx, ecx
jg 0x4302f9
jl 0x430337
test eax, eax
jae 0x4302f9
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00430f12
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x430357
cmp byte [edi + 0x1c], 0
je 0x4302f9
jmp 0x430388
push ebx
call fcn.0042e473
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4302f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x430390
cmp byte [edi + 0x1c], 0
je 0x43038d
mov ebx, dword [edi + 0x18]
jmp 0x430390
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00430f12
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4303aa
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 + 0x46c698]
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 0x4303ea
cmp byte [ebx], 0xa
jne 0x4303ea
or byte [edi + eax + 0x28], 4
jmp 0x4303ef
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 0x4304ee
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4304d1
inc eax
cmp dl, 0xd
je 0x43041b
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x430441
cmp eax, ecx
jae 0x43044f
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 0x430403
jmp 0x4304ee
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 0x4304cc
cmp dword [ebp - 0x10], 0
je 0x4304cc
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x46c698]
test byte [eax + edi + 0x28], 0x48
je 0x4304a6
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x430491
mov byte [esi], dl
jmp 0x4304a2
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x46c698]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4304ee
cmp byte [ebp - 1], 0xa
jne 0x4304b5
cmp esi, ebx
jne 0x4304b5
mov byte [esi], 0xa
jmp 0x4304ed
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00430f12
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4304ee
mov byte [esi], 0xd
jmp 0x4304ed
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x46c698]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4304eb
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4304ee
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret