joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404bb3
Capabilities:
Check mutex on windows

Disassembly:
push ebp
lea ebp, [esp - 0x7a8]
sub esp, 0x828
mov eax, dword [0x479630]
xor eax, ebp
mov dword [ebp + 0x7a4], eax
mov eax, dword [ebp + 0x7b0]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x68], ebx
mov byte [ebp - 0x6c], bl
mov dword [esi], ebx
call fcn.0040ffda
mov dword [esi], eax
cmp eax, ebx
jne 0x404be4
push str.ERROR:_ShutdownEvent_handle_is_NULL
call fcn.00417007
pop ecx
mov dword [ebp - 0x60], 0xfffffffe
push dword [ebp - 0x64]
call fcn.0040f7ac
pop ecx
test eax, eax
jne 0x404c04
push str.jusched_ERROR:_Could_not_open_Policy_key_for_reading
call fcn.00417007
mov dword [ebp - 0x60], 0xfffffffd
jmp 0x404c27
mov eax, dword [ebp - 0x64]
push dword [eax]
call fcn.00404b12
pop ecx
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x404c28
push str.jusched_main:_ERROR_creating_registry_watch_event_notifier
call fcn.00417007
mov dword [ebp - 0x60], 0xfffffffe
pop ecx
push str.SunJavaUpdateSchedulerMutex
push 1
push ebx
mov dword [edi], ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [edi], eax
cmp eax, ebx
jne 0x404c98
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x7ff
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x5b]
push ebx
push eax
mov byte [ebp - 0x5c], bl
call fcn.0043b8b0
add esp, 0xc
cmp dword [ebp - 0x60], 0xb7
lea eax, [ebp - 0x5c]
jne 0x404c78
push str.Error:_Scheduler_Mutex_already_exists_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
pop ecx
jmp 0x404c8a
push dword [ebp - 0x60]
push str.Error:_Error_creating_scheduler_mutex:__d_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x5c]
push eax
call fcn.00417007
or dword [ebp - 0x60], 0xffffffff
pop ecx
cmp dword [ebp - 0x60], ebx
je 0x404cb7
push dword [edi]
push esi
call fcn.00404b61
mov eax, dword [ebp - 0x64]
mov eax, dword [eax]
pop ecx
pop ecx
lea esi, [ebp - 0x80]
mov dword [ebp - 0x7c], eax
call fcn.00414507
mov ecx, dword [ebp + 0x7a4]
mov eax, dword [ebp - 0x60]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043a455
add ebp, 0x7a8
leave
ret
Function at 0x402020
Capabilities:
Inspect section memory permissions

Disassembly:
mov eax, 1
jmp 0x402030
Function at 0x4081e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x3c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x24]
add eax, dword [ecx + 0x78]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
add eax, dword [ecx + 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
add eax, dword [ecx + 0x20]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
add eax, dword [ecx + 0x24]
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
cmp eax, dword [ecx + 0x1c]
jae 0x408285
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
add eax, dword [ecx + edx*4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.00407900
cmp eax, dword [ebp + 0xc]
jne 0x408278
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 8]
movzx edx, word [edx + esi*2]
add eax, dword [ecx + edx*4]
mov dword [ebp - 0x10], eax
jmp 0x40828c
jmp 0x40827a
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
jmp 0x408236
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
add esp, 0x28
pop esi
pop ebp
ret
Function at 0x40ae10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x40], ecx
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
xor edx, edx
neg eax
sbb edx, ecx
jl 0x40ae5b
jmp 0x40ae46
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
jmp 0x40afee
cmp dword [esi + 0x38], 0
je 0x40ae8e
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [ebp + 8]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], edx
mov ecx, esi
call fcn.00409cd0
sub esp, 0xc
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
jmp 0x40afee
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], eax
movsd xmm0, qword [esp + 0x28]
movsd qword [esp + 0x38], xmm0
mov ecx, esi
call fcn.0040a1f0
mov dword [esp + 0x34], eax
xor eax, eax
cmp eax, dword [esp + 0x34]
jae 0x40af16
lea eax, [esp + 0x14]
lea ecx, [esp + 0x34]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00406b10
mov eax, dword [eax]
mov dword [esp + 0x24], eax
mov edi, dword [esp + 0x24]
mov ecx, esi
call fcn.0040a220
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edi
call fcn.00405de0
mov eax, dword [esp + 0x24]
add eax, dword [ebp + 8]
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
sub ecx, eax
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x24]
mov ecx, esi
mov dword [esp], eax
call fcn.0040a240
sub esp, 4
cmp dword [esi + 0x4c], 0
je 0x40afd5
mov ecx, esi
call fcn.00409960
mov dword [esp + 0x44], 0xfff
mov eax, 0xfff
cmp eax, dword [esp + 0x14]
jae 0x40af9f
mov eax, dword [esi + 0x4c]
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
mov dword [esp + 4], 1
mov dword [esp + 8], 0xfff
mov dword [esp + 0xc], eax
call fcn.0049e570
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x30]
add eax, dword [ebp + 8]
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
sub ecx, eax
mov dword [esp + 0x14], ecx
cmp dword [esp + 0x30], 0xfff
je 0x40af9d
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x14]
sub eax, edx
sbb ecx, 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
jmp 0x40afee
jmp 0x40af2f
xor eax, eax
cmp eax, dword [esp + 0x14]
jae 0x40afd3
mov eax, dword [esi + 0x4c]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 8]
mov dword [esp], edx
mov dword [esp + 4], 1
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.0049e570
mov ecx, dword [esp + 0x14]
sub ecx, eax
mov dword [esp + 0x14], ecx
jmp 0x40afd5
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x14]
sub eax, edx
sbb ecx, 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret 0xc
Function at 0x40fd20
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x1c
nop
mov dword [ebp - 0x18], esp
mov dword [ebp - 0xc], 0xffffffff
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0x4106b0
mov edx, dword fs:[0]
mov dword [ebp - 0x14], edx
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov esi, dword [ebp - 0x20]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov edi, esi
add edi, 0x34
mov dword [esp], 8
call fcn.0040bcf0
mov dword [ebp - 0x1c], eax
jmp 0x40fdc3
nop
mov ecx, dword [ebp - 0x1c]
call fcn.0040fcf0
jmp 0x40fdce
nop
mov eax, dword [ebp - 0x1c]
mov dword [edi], eax
mov ecx, esi
call fcn.0040a4b0
mov eax, dword [ebp - 0x14]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x1c
pop esi
pop edi
pop ebp
ret

Function at 0x4505d0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
xor eax, eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
push ecx
call fcn.00450650
add esp, 4
mov dword [ebp - 0xc], eax
call fcn.0045c220
mov edx, 4
imul ecx, edx, 5
mov edx, dword [eax + ecx]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0x22
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov eax, 2
imul ecx, eax, 0
movzx edx, word [ebp + ecx - 4]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0x30
je 0x450635
cmp dword [ebp - 8], 0x31
je 0x45063c
cmp dword [ebp - 8], 0x32
je 0x450643
jmp 0x45064a
mov eax, 2
jmp 0x45064c
mov eax, 1
jmp 0x45064c
mov eax, 3
jmp 0x45064c
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4bbc60
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.004bcf80
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4bbc94
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [section..00cfg]
call dword [ebp - 8]
jmp 0x4bbc9a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esp, ebp
pop ebp
ret 4

Function at 0x4bbcf0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.004bcfc0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4bbd24
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [section..00cfg]
call dword [ebp - 8]
jmp 0x4bbd2e
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret 4

Function at 0x4bbd40
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.004bcfe0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4bbd78
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
call dword [section..00cfg]
call dword [ebp - 8]
jmp 0x4bbd86
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esp, ebp
pop ebp
ret 8

Function at 0x4bbea0
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.004bcca0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4bbee0
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [section..00cfg]
call dword [ebp - 8]
jmp 0x4bbefe
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.004bc210
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4d0930
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push eax
lea ecx, [ebp - 4]
call fcn.004d0c10
lea ecx, [ebp - 4]
call fcn.004d0cb0
movzx eax, al
test eax, eax
jne 0x4d096d
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 4]
call fcn.004d0c30
mov eax, dword [ebp - 0x18]
jmp 0x4d0a95
lea ecx, [ebp - 4]
call fcn.004d0c50
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004d0bd0
add esp, 4
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x10]
sar edx, 1
mov dword [ebp - 0x14], edx
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 4]
call fcn.004d0c50
push eax
push 0
push 0
call fcn.004ba430
add esp, 0x20
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4d09d3
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 4]
call fcn.004d0c30
mov eax, dword [ebp - 0x20]
jmp 0x4d0a95
push 0x66
push str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
push 2
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00491480
add esp, 0x10
push eax
lea ecx, [ebp - 8]
call fcn.00452d10
lea ecx, [ebp - 8]
call fcn.00452db0
movzx edx, al
test edx, edx
jne 0x4d0a1c
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 8]
call fcn.00452d30
lea ecx, [ebp - 4]
call fcn.004d0c30
mov eax, dword [ebp - 0x24]
jmp 0x4d0a95
lea ecx, [ebp - 8]
call fcn.00452dd0
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 4]
call fcn.004d0c50
mov dword [ebp - 0x2c], eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x2c]
push eax
push 0
push 0
call fcn.004ba430
add esp, 0x20
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x4d0a77
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 8]
call fcn.00452d30
lea ecx, [ebp - 4]
call fcn.004d0c30
mov eax, dword [ebp - 0x34]
jmp 0x4d0a95
lea ecx, [ebp - 8]
call fcn.00456b70
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 8]
call fcn.00452d30
lea ecx, [ebp - 4]
call fcn.004d0c30
mov eax, dword [ebp - 0x38]
mov esp, ebp
pop ebp
ret
Function at 0x4d0aa0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push eax
lea ecx, [ebp - 4]
call fcn.004d0c10
lea ecx, [ebp - 4]
call fcn.004d0ce0
movzx eax, al
test eax, eax
jne 0x4d0add
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 4]
call fcn.004d0c30
mov eax, dword [ebp - 0x14]
jmp 0x4d0b97
lea ecx, [ebp - 4]
call fcn.004d0c50
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004d0bd0
add esp, 4
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
sub edx, dword [ebp - 0xc]
sar edx, 1
mov dword [ebp - 0x10], edx
push 0x40
push str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
push 2
mov eax, dword [ebp - 0x10]
shl eax, 1
push eax
call fcn.00491480
add esp, 0x10
push eax
lea ecx, [ebp - 8]
call fcn.00457420
lea ecx, [ebp - 8]
call fcn.0049aeb0
movzx ecx, al
test ecx, ecx
jne 0x4d0b4d
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 8]
call fcn.00457440
lea ecx, [ebp - 4]
call fcn.004d0c30
mov eax, dword [ebp - 0x1c]
jmp 0x4d0b97
lea ecx, [ebp - 4]
call fcn.004d0c50
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 8]
call fcn.00457490
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x10]
shl edx, 1
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.00453ef0
add esp, 0xc
lea ecx, [ebp - 8]
call fcn.00459090
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 8]
call fcn.00457440
lea ecx, [ebp - 4]
call fcn.004d0c30
mov eax, dword [ebp - 0x28]
mov esp, ebp
pop ebp
ret
Function at 0x4d4a20
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.004ba2b0
mov eax, dword [0x5210c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x525688]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1420], ecx
mov edx, dword [ebp - 0x1420]
cmp edx, dword [ebp - 0x1424]
jae 0x4d4bf8
lea eax, [ebp - 5]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1418], ecx
mov edx, dword [ebp - 0x1418]
cmp edx, dword [ebp - 0x1430]
jae 0x4d4b47
mov eax, dword [ebp - 0x1420]
cmp eax, dword [ebp - 0x1424]
jae 0x4d4b47
mov ecx, dword [ebp - 0x1420]
mov dl, byte [ecx]
mov byte [ebp - 0x1419], dl
mov eax, dword [ebp - 0x1420]
add eax, 1
mov dword [ebp - 0x1420], eax
mov cl, byte [ebp - 0x1419]
mov byte [ebp - 0x1411], cl
movsx edx, byte [ebp - 0x1411]
cmp edx, 0xa
jne 0x4d4b25
mov eax, dword [ebp - 0x1408]
add eax, 1
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp - 0x1418]
mov byte [ecx], 0xd
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
mov eax, dword [ebp - 0x1418]
mov cl, byte [ebp - 0x1411]
mov byte [eax], cl
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
jmp 0x4d4aa9
mov eax, dword [ebp - 0x1418]
lea ecx, [ebp - 0x1404]
sub eax, ecx
mov dword [ebp - 0x142c], eax
push 0
lea edx, [ebp - 0x1428]
push edx
mov eax, dword [ebp - 0x142c]
push eax
lea ecx, [ebp - 0x1404]
push ecx
mov edx, dword [ebp - 0x1434]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4d4bb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
jmp 0x4d4c18
mov edx, dword [ebp - 0x140c]
add edx, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], edx
mov eax, dword [ebp - 0x1428]
cmp eax, dword [ebp - 0x142c]
jae 0x4d4bf3
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x4d4c18
jmp 0x4d4a82
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415320
mov esp, ebp
pop ebp
ret
Function at 0x4d4c30
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.004ba2b0
mov eax, dword [0x5210c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x525688]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x141c], ecx
mov edx, dword [ebp - 0x141c]
cmp edx, dword [ebp - 0x1424]
jae 0x4d4e1b
lea eax, [ebp - 6]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1414], ecx
mov edx, dword [ebp - 0x1414]
cmp edx, dword [ebp - 0x1430]
jae 0x4d4d66
mov eax, dword [ebp - 0x141c]
cmp eax, dword [ebp - 0x1424]
jae 0x4d4d66
mov ecx, dword [ebp - 0x141c]
mov dx, word [ecx]
mov word [ebp - 0x141e], dx
mov eax, dword [ebp - 0x141c]
add eax, 2
mov dword [ebp - 0x141c], eax
mov cx, word [ebp - 0x141e]
mov word [ebp - 0x1418], cx
movzx edx, word [ebp - 0x1418]
cmp edx, 0xa
jne 0x4d4d42
mov eax, dword [ebp - 0x1408]
add eax, 2
mov dword [ebp - 0x1408], eax
mov ecx, 0xd
mov edx, dword [ebp - 0x1414]
mov word [edx], cx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
mov ecx, dword [ebp - 0x1414]
mov dx, word [ebp - 0x1418]
mov word [ecx], dx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
jmp 0x4d4cb9
mov ecx, dword [ebp - 0x1414]
lea edx, [ebp - 0x1404]
sub ecx, edx
sar ecx, 1
shl ecx, 1
mov dword [ebp - 0x142c], ecx
push 0
lea eax, [ebp - 0x1428]
push eax
mov ecx, dword [ebp - 0x142c]
push ecx
lea edx, [ebp - 0x1404]
push edx
mov eax, dword [ebp - 0x1434]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4d4dd4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x4d4e3b
mov eax, dword [ebp - 0x140c]
add eax, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], eax
mov ecx, dword [ebp - 0x1428]
cmp ecx, dword [ebp - 0x142c]
jae 0x4d4e16
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1410]
mov dword [edx], eax
mov ecx, dword [ebp - 0x140c]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x1408]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
jmp 0x4d4e3b
jmp 0x4d4c92
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415320
mov esp, ebp
pop ebp
ret
Function at 0x4d9480
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.004d98b0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4d94b2
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [section..00cfg]
call dword [ebp - 8]
jmp 0x4d94bc
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret

Function at 0x4e34e0
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
lea ecx, [ebp - 0x4c]
call fcn.004571e0
lea ecx, [ebp - 0x34]
call fcn.004571e0
call fcn.004b9270
push eax
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004573f0
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4e3533
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x34]
call fcn.00457230
lea ecx, [ebp - 0x4c]
call fcn.00457230
mov eax, dword [ebp - 8]
jmp 0x4e35a8
call fcn.004b9270
push eax
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004573f0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4e356e
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x34]
call fcn.00457230
lea ecx, [ebp - 0x4c]
call fcn.00457230
mov eax, dword [ebp - 0x10]
jmp 0x4e35a8
lea ecx, [ebp - 0x34]
call fcn.00457280
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x4c]
call fcn.00457280
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x34]
call fcn.00457230
lea ecx, [ebp - 0x4c]
call fcn.00457230
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret