joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000a490
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002059d
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x1002c014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
lea ebx, [esi + 4]
test eax, eax
je 0x1000a4c8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 8]
cmp dword [eax - 4], 1
jle 0x1000a4df
push dword [eax - 0xc]
lea ecx, [esi + 8]
call fcn.10002aa0
mov eax, dword [esi + 8]
push 0
push ebx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1000a512
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [eax - 0x10]
lea esi, [eax - 0x10]
mov dword [ebp + 8], eax
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
mov ecx, eax
lea eax, [esi + 0xc]
jl 0x1000a539
cmp ecx, dword [esi]
jne 0x1000a539
lock inc dword [eax]
jmp 0x1000a565
mov eax, dword [ecx]
lea edi, [esi + 4]
push 2
push dword [edi]
call dword [eax]
mov esi, eax
test esi, esi
je 0x1000a601
mov eax, dword [edi]
lea ecx, [esi + 0x10]
mov dword [esi + 4], eax
mov edx, dword [edi]
inc edx
push edx
push dword [ebp + 8]
call fcn.10002bf0
add esp, 8
lea eax, [esi + 0x10]
mov dword [ebp + 8], eax
mov dword [ebp - 4], 1
lea ecx, [ebp + 8]
push 3
push 0x100274bc
call fcn.10002160
mov esi, dword [ebp + 0xc]
mov edi, dword [esi]
cmp dword [edi - 4], 1
mov eax, dword [edi - 0xc]
lea ecx, [eax + eax]
mov dword [ebp + 0xc], ecx
jle 0x1000a59f
push eax
mov ecx, esi
call fcn.10002aa0
mov edi, dword [esi]
mov esi, dword [ebp + 8]
cmp dword [esi - 4], 1
jle 0x1000a5b6
push dword [esi - 0xc]
lea ecx, [ebp + 8]
call fcn.10002aa0
mov esi, dword [ebp + 8]
push dword [ebp + 0xc]
push edi
push 1
push 0
push esi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1000a5eb
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.10002b30
int3
Function at 0x1000a610
Capabilities:
Delete registry value

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
lea ebx, [esi + 4]
push edi
test eax, eax
je 0x1000a626
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 8]
cmp dword [eax - 4], 1
jle 0x1000a63d
push dword [eax - 0xc]
lea ecx, [esi + 8]
call fcn.10002aa0
mov eax, dword [esi + 8]
push ebx
push 0xf003f
push 0
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1000a65a
pop edi
pop esi
xor al, al
pop ebx
ret 4
mov esi, dword [esp + 0x10]
mov eax, dword [esi]
cmp dword [eax - 4], 1
jle 0x1000a672
push dword [eax - 0xc]
mov ecx, esi
call fcn.10002aa0
mov eax, dword [esi]
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
pop edi
test eax, eax
pop esi
sete al
pop ebx
ret 4

Function at 0x1000a690
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
lea ebx, [esi + 4]
push edi
test eax, eax
je 0x1000a6a9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 8]
cmp dword [eax - 4], 1
jle 0x1000a6c0
push dword [eax - 0xc]
lea ecx, [esi + 8]
call fcn.10002aa0
mov eax, dword [esi + 8]
push ebx
push 0xf003f
push 0
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000a722
mov esi, dword [esp + 0x18]
mov dword [esp + 0xc], 4
mov eax, dword [esi]
cmp dword [eax - 4], 1
jle 0x1000a6f5
push dword [eax - 0xc]
mov ecx, esi
call fcn.10002aa0
mov eax, dword [esi]
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
push ecx
push esi
lea ecx, [esp + 0x18]
push ecx
push 0
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000a722
cmp dword [esi], eax
jbe 0x1000a722
pop edi
pop esi
mov al, 1
pop ebx
add esp, 8
ret 8
pop edi
pop esi
xor al, al
pop ebx
add esp, 8
ret 8
Function at 0x100172aa
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024508
push 0x10024500
push str.FlsAlloc
push 0x1e
call fcn.1001716b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100172de
push dword [ebp + 8]
mov ecx, esi
call dword [0x100221fc]
call esi
jmp 0x100172e4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10017328
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024518
push 0x10024510
push str.FlsGetValue
push 0x20
call fcn.1001716b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001735f
push dword [ebp + 8]
mov ecx, esi
call dword [0x100221fc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x100196af
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1001974c
push ebx
push esi
call fcn.10019678
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100195c1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100196f9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001974b
push edi
push eax
call fcn.10016f52
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10019719
call fcn.10016662
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001974a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100195c1
add esp, 0x20
test eax, eax
jne 0x10019738
push edi
call fcn.10016662
jmp 0x10019740
push ebx
call fcn.10016662
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1001974f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10019760
pop esi
ret
push ebx
push edi
push esi
call fcn.10019678
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10016f52
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10019788
push ebx
push esi
push edi
call fcn.100115d0
add esp, 0xc
push 0
call fcn.10016662
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10019b4c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1001979d
Function at 0x406530
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x4334c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4343bc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x24c], ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x434100]
cmp eax, dword [ecx + 4]
jg 0x4066f7
cmp dword [0x433498], 0
jne 0x4066da
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
call fcn.00407310
test al, al
jne 0x4065e9
push esi
lea eax, [ebp - 0x1c]
push str._05d
push eax
call fcn.00401250
mov esi, eax
add esp, 0xc
cmp esi, 0x433488
je 0x4066d1
mov ecx, dword [0x43349c]
cmp ecx, 0xf
jbe 0x40668e
mov edx, dword [0x433488]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406684
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40672d
jmp 0x406684
push edi
push 0
push 2
mov dword [ebp - 0x24c], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x228
mov edi, eax
lea eax, [ebp - 0x244]
push 0
push eax
call fcn.0040fb60
add esp, 0xc
mov dword [ebp - 0x248], 0x22c
lea eax, [ebp - 0x248]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x406657
cmp dword [ebp - 0x240], esi
je 0x40664b
lea eax, [ebp - 0x248]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x406630
jmp 0x406657
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x24c], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push dword [ebp - 0x24c]
lea eax, [ebp - 0x1c]
push str._05d__05d
push eax
call fcn.00401250
add esp, 0x10
mov esi, eax
cmp esi, 0x433488
pop edi
jmp 0x4065a6
push ecx
push edx
call fcn.0040e136
add esp, 8
mov dword [0x433498], 0
mov dword [0x43349c], 0xf
mov byte [0x433488], 0
movups xmm0, xmmword [esi]
movups xmmword [0x433488], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x433498], xmm0
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov dword [esi + 0x14], 0xf
lea ecx, [ebp - 0x1c]
call fcn.004014b0
pop esi
push 0x433488
mov ecx, ebx
call fcn.004027e0
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040e144
mov esp, ebp
pop ebp
ret
push 0x434100
call fcn.0040e417
add esp, 4
cmp dword [0x434100], 0xffffffff
jne 0x40656d
push 0x4274f0
call fcn.0040e3b1
push 0x434100
call fcn.0040e3c6
add esp, 8
jmp 0x40656d
call fcn.0041154f
int3
Function at 0x406740
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426736
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x4334c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x24c], esi
call fcn.0040fb60
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x218]
push 0x7e
push eax
call fcn.0040f860
lea ecx, [ebp - 0x218]
add esp, 8
mov edx, eax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4067c5
sub ecx, edi
mov dword [ebp - 0x220], 0
sar ecx, 1
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 0
xorps xmm0, xmm0
push ecx
lea ecx, [ebp - 0x230]
movups xmmword [ebp - 0x230], xmm0
push eax
test edx, edx
je 0x4068be
call fcn.00401f10
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0040b940
push eax
push esi
mov byte [ebp - 4], 1
call fcn.00406d50
mov ecx, dword [ebp - 0x234]
add esp, 0x10
cmp ecx, 0xf
jbe 0x40686f
mov edx, dword [ebp - 0x248]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406865
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406903
push ecx
push edx
call fcn.0040e136
add esp, 8
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
mov ecx, dword [ebp - 0x21c]
cmp ecx, 7
jbe 0x4068e6
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4068dc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406903
jmp 0x4068dc
call fcn.00401f10
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 2
push eax
push esi
call fcn.0040b940
add esp, 8
jmp 0x40688a
push ecx
push edx
call fcn.0040e136
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e144
mov esp, ebp
pop ebp
ret
call fcn.0041154f
int3
Function at 0x40eb90
Capabilities:
Parse pe header

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

Function at 0x41a004
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00419f86
Function at 0x41d160
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 + 0x434a98]
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 0x41d1a0
cmp byte [ebx], 0xa
jne 0x41d1a0
or byte [edi + eax + 0x28], 4
jmp 0x41d1a5
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 0x41d2a4
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41d287
inc eax
cmp dl, 0xd
je 0x41d1d1
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41d1f7
cmp eax, ecx
jae 0x41d205
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 0x41d1b9
jmp 0x41d2a4
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 0x41d282
cmp dword [ebp - 0x10], 0
je 0x41d282
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x434a98]
test byte [eax + edi + 0x28], 0x48
je 0x41d25c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41d247
mov byte [esi], dl
jmp 0x41d258
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x434a98]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41d2a4
cmp byte [ebp - 1], 0xa
jne 0x41d26b
cmp esi, ebx
jne 0x41d26b
mov byte [esi], 0xa
jmp 0x41d2a3
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041dbaf
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41d2a4
mov byte [esi], 0xd
jmp 0x41d2a3
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x434a98]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41d2a1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41d2a4
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41d2ad
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 + 0x434a98]
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 0x41d2f3
cmp word [ebx], dx
jne 0x41d2f3
or byte [eax + edi + 0x28], 4
jmp 0x41d2f8
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 0x41d45b
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 0x41d43b
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41d339
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41d36f
cmp eax, edx
jae 0x41d37d
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 0x41d314
jmp 0x41d45b
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 0x41d436
cmp dword [ebp - 0x18], 0
je 0x41d436
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x434a98]
test byte [eax + edi + 0x28], 0x48
je 0x41d40c
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 0x41d3d0
mov word [esi], cx
jmp 0x41d407
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x434a98]
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 + 0x434a98]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x434a98]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x41d45b
pop eax
cmp word [ebp - 4], ax
jne 0x41d41c
cmp esi, ebx
jne 0x41d41c
mov word [esi], ax
jmp 0x41d458
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041dbaf
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41d45b
push 0xd
pop eax
jmp 0x41d417
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x434a98]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x41d455
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x41d45b
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41e4ba
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c240
push 0x42c238
push str.FlsAlloc
push 0x1f
call fcn.0041e356
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41e4ee
push dword [ebp + 8]
mov ecx, esi
call dword [0x4281d0]
call esi
jmp 0x41e4f4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41e538
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c250
push 0x42c248
push str.FlsGetValue
push 0x21
call fcn.0041e356
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41e56f
push dword [ebp + 8]
mov ecx, esi
call dword [0x4281d0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41e577
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c258
push 0x42c250
push str.FlsSetValue
push 0x22
call fcn.0041e356
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41e5b1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4281d0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41f850
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41f8ed
push ebx
push esi
call fcn.0041f819
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041e19d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41f89a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41f8ec
push edi
push eax
call fcn.0041a550
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41f8ba
call fcn.0041a516
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41f8eb
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041e19d
add esp, 0x20
test eax, eax
jne 0x41f8d9
push edi
call fcn.0041a516
jmp 0x41f8e1
push ebx
call fcn.0041a516
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x424705
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.00424681
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x424874
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x424874
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x424829
jg 0x424761
test eax, eax
je 0x42481f
push 1
push 0x1000
call fcn.0041e872
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x424784
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x424816
push 0x8000
push ebx
call fcn.00417f86
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4247ad
jg 0x4247a8
cmp ecx, 0x1000
jb 0x4247ad
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041cf44
add esp, 0x10
cmp eax, 0xffffffff
je 0x4247f2
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 0x4247a8
jl 0x4247d9
test ecx, ecx
jne 0x42479a
push dword [ebp - 0xc]
push ebx
call fcn.00417f86
push esi
call fcn.0041a516
add esp, 0xc
xor ebx, ebx
jmp 0x424882
cmp byte [edi + 0x24], 0
je 0x424809
cmp dword [edi + 0x20], 5
jne 0x424809
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x424814
mov ebx, dword [edi + 0x18]
jmp 0x424816
xor ebx, ebx
push esi
call fcn.0041a516
pop ecx
jmp 0x424882
test ecx, ecx
jg 0x4247eb
jl 0x424829
test eax, eax
jae 0x4247eb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041dbaf
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x424849
cmp byte [edi + 0x1c], 0
je 0x4247eb
jmp 0x42487a
push ebx
call fcn.0041fcdf
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4247eb
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 0x424882
cmp byte [edi + 0x1c], 0
je 0x42487f
mov ebx, dword [edi + 0x18]
jmp 0x424882
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041dbaf
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x425c60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x425c8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x425c8d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret