joyce8/EMBER2024-capa huggingface dataset:
Function at 0x669ca0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6ab363
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov eax, dword [0x799664]
mov dword [esp + 0x14], 0
mov dword [esi + 0x14], eax
push ecx
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0xc], esp
push edx
mov byte [esp + 0x1c], 1
mov dword [esi], 0x773848
call fcn.00699a85
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 8], ecx
mov ecx, esi
mov dword [eax + 0xc], edx
call fcn.00669d50
lea ecx, [esp + 0x2c]
mov dword [esp + 0x14], 0xffffffff
call fcn.00699d10
mov ecx, dword [esp + 0xc]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x14
ret 0x14

Function at 0x682bd0
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
jne 0x682be0
mov esi, 1
push esi
call fcn.0066df37
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x682c32
call fcn.0066ebcd
mov edi, eax
call fcn.00685730
mov ecx, dword [edi]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov edi, eax
and edi, 8
je 0x682c16
mov edx, dword [0x7a0448]
mov dword [0x7a0444], edx
test al, 0x18
je 0x682c27
push esi
push 0x24
push 5
call fcn.00685f80
add esp, 0xc
test edi, edi
je 0x682c4d
push 1
call fcn.0067039a
test byte [esp + 0x14], 0x20
je 0x682c4d
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x683d50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov edx, dword [ebp + 0x10]
test edx, edx
push ebx
push esi
push edi
je 0x683e44
cmp byte [edx], 0
je 0x683e37
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
add eax, 8
or ecx, 0xffffffff
mov dword [esp + 0xc], eax
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x20]
push ecx
mov esi, ebx
call fcn.00683cd0
mov edi, dword [ebp + 0xc]
push 8
lea edx, [esp + 0x20]
push edi
push edx
call fcn.00683cd0
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
xor eax, edx
push eax
xor ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.00683c40
mov eax, dword [esp + 0x30]
add esp, 0x24
cmp edi, eax
jae 0x683e01
sub eax, edi
mov edi, eax
lea eax, [esp + 0x20]
push eax
call fcn.00683c80
fmul qword [0x7770e0]
push ecx
fstp qword [esp]
call fcn.0066c8a8
fadd qword [0x7770d8]
add esp, 8
call fcn.0066c978
mov byte [ebx], al
inc ebx
dec edi
jne 0x683dd4
lea ecx, [esp + 0x20]
push ecx
call fcn.00683c80
fmul qword [0x7770e0]
push ecx
fstp qword [esp]
call fcn.0066c8a8
add esp, 8
call fcn.0066c978
cmp esi, ebx
je 0x683e2d
xor byte [esi], al
inc esi
cmp esi, ebx
jne 0x683e26
mov byte [ebx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov byte [edx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
pop edi
pop esi
mov byte [eax], 0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x684210
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
lea eax, [ebx + 0x134]
push edi
lea esi, [ebx + 0x34]
mov dword [esp + 0x14], eax
xor edi, edi
mov ecx, dword [ebx + 0x1c]
mov ebp, edi
and ebp, 0xff
mov al, byte [ecx + ebp + 1]
test al, 3
je 0x684240
mov byte [edi + esi], 2
jmp 0x684277
test al, 4
je 0x68424a
mov byte [edi + esi], 0xd
jmp 0x684277
mov edx, dword [ebx + 0x240]
push edi
push ebx
call dword [edx + 4]
add esp, 8
cmp eax, 1
jle 0x684263
mov byte [edi + esi], 2
jmp 0x684277
mov eax, dword [ebx + 0x1c]
test byte [eax + ebp + 1], 0x17
jne 0x684273
mov byte [edi + esi], 0x19
jmp 0x684277
mov byte [edi + esi], 1
inc edi
cmp edi, 0x100
jb 0x684227
mov ecx, dword [esp + 0x14]
mov al, 7
mov byte [esi + 0x21], al
mov byte [esi + 0x3d], al
mov byte [esi + 0x3e], al
mov al, 0x10
mov byte [esi + 0x7c], al
mov byte [esi + 0x26], al
mov byte [esi + 0x24], 2
mov byte [esi + 0x5f], 2
mov byte [esi + 0x27], 9
mov byte [esi + 0x2e], 0xf
mov byte [esi + 0x3c], 8
mov byte [esi + 0x23], 0xa
mov byte [esi + 0x3b], 0x15
mov byte [esi + 0x3a], 0x16
mov byte [esi], 0x11
mov byte [esi + 0x5c], 0x12
mov byte [esi + 0x2f], 0x13
mov byte [esi + 0x2a], 0x14
mov byte [esi + 0x40], 0x17
mov byte [esi + 0x60], 0x1a
mov byte [esi + 0x22], 0x20
mov eax, esi
sub ecx, esi
mov edi, 0x100
mov dl, byte [eax]
cmp dl, 2
je 0x6842eb
cmp dl, 0xd
je 0x6842eb
xor edx, edx
jmp 0x6842f0
mov edx, 1
mov byte [ecx + eax], dl
inc eax
dec edi
jne 0x6842db
mov al, 0x1d
mov byte [esi + 0x58], al
mov byte [esi + 0x78], al
mov al, 0x1f
pop edi
mov byte [esi + 0x62], 0x1e
mov byte [esi + 0x4e], al
mov byte [esi + 0x6e], al
pop esi
pop ebp
pop ebx
ret

Function at 0x684310
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push ebx
push 0x4000
call fcn.00682bd0
mov esi, eax
add esp, 8
test esi, esi
jne 0x684331
pop edi
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esp + 0x10]
push ebx
push 0
push eax
call fcn.00685970
mov edi, eax
add esp, 0xc
test edi, edi
jge 0x684356
push esi
call fcn.00682c60
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
ret
push ebp
push 0x4000
push esi
push edi
call fcn.0067817b
push ebx
push edi
mov ebp, eax
call fcn.006859e0
push 0x684390
push ebp
push esi
call fcn.00686d10
push esi
call fcn.00682c60
add esp, 0x24
pop ebp
pop edi
pop esi
xor al, al
pop ebx
ret
Function at 0x6856a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push 0x891880
xor bl, bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x8917a8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x68571b
push 0x4c
push 1
call fcn.0066eff5
mov esi, eax
add esp, 8
test esi, esi
jne 0x6856e3
push 0x891880
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret
mov ecx, dword [0x8917a8]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x887ce8]
inc eax
lea edx, [esi + 0xc]
mov dword [0x887ce8], eax
push edx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 4]
push 0
push eax
call fcn.00689250
add esp, 8
mov byte [esi + 0x3c], 1
push 0x891880
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret

Function at 0x685ba0
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.0066ebcd
mov ebx, dword [esp + 0x14]
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.0067817b
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x685c9a
call fcn.0066ebcd
cmp dword [eax], 0
je 0x685be7
call fcn.0066ebcd
mov ebp, dword [eax]
jmp 0x685bea
or ebp, 0xffffffff
call fcn.00685730
test esi, esi
mov dword [eax], ebp
jne 0x685bff
call fcn.0066ebcd
cmp dword [eax], 4
je 0x685c4f
mov eax, dword [esp + 0x20]
test al, 0x1a
je 0x685c32
cmp esi, 0xffffffff
je 0x685c74
test al, 6
je 0x685c32
call fcn.00685730
mov ecx, dword [eax]
push ecx
push ebx
call fcn.00689280
add esp, 4
push eax
push 0x24
push 9
call fcn.00685f80
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x685c92
test al, 6
je 0x685c40
test ah, 2
je 0x685c92
test esi, esi
jbe 0x685c9e
test ah, 2
je 0x685c9e
add dword [esp + 0x18], esi
sub edi, esi
call fcn.0066ebcd
mov edx, dword [esp + 0x18]
push edi
push edx
push ebx
mov dword [eax], 0
call fcn.0067817b
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x685c9a
jmp 0x685bd4
call fcn.00685730
mov eax, dword [eax]
push eax
push ebx
call fcn.00689280
add esp, 4
push eax
push 0x24
push 2
call fcn.00685f80
add esp, 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esp + 0x20]
test al, 6
je 0x685cab
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
test ah, 2
je 0x685cb4
mov esi, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x696a29
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0066eb5a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x696a4c
test byte [esp + 8], 2
je 0x696a4c
call fcn.0066ebcd
mov dword [eax], 0xd
call fcn.0066ebd6
mov dword [eax], 5
jmp 0x696a25
xor eax, eax
ret
Function at 0x69c0f3
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x69c12b
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0069a16b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0069a143
jmp 0x69c137
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x69d7e5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x69d827
call fcn.006a3a3b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x69d827
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x69d81e
xor eax, eax
jmp 0x69d82f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0069d835
pop edi
pop esi
pop ebx
ret 4

Function at 0x69f1e8
Capabilities:
Reference sql statements

Disassembly:
mov eax, 0x6abba0
call fcn.0066fc78
push ecx
push ecx
push esi
push 0x14
call fcn.00699a51
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
test esi, esi
je 0x69f23b
mov ecx, esi
call fcn.0069a261
mov eax, dword [0x799664]
lea ecx, [esi + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov dword [esi], vtable.CFileException.0
mov dword [esi + 0xc], eax
call fcn.00699e4d
jmp 0x69f23d
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
push 0x7820d0
push eax
mov dword [ebp - 0x10], esi
call fcn.0067000c
pop esi

Function at 0x6a3f6b
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x6a3f99
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x6a3fb7
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.006a3ed1
jmp 0x6a3fb7
mov eax, dword [esi + 0x14]
test eax, eax
je 0x6a3fb7
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.006a3ed1
test edi, edi
mov eax, edi
jne 0x6a3fa1
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4036d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.004032f0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x403702
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 [0x433124]
call dword [ebp - 8]
jmp 0x40370c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret
Function at 0x41bb60
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.00406e40
lea ecx, [ebp - 4]
call fcn.0041bb30
movzx eax, al
test eax, eax
jne 0x41bb9d
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 4]
call fcn.0041ba70
mov eax, dword [ebp - 0x18]
jmp 0x41bcc5
lea ecx, [ebp - 4]
call fcn.00406f50
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0041baf0
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.00406f50
push eax
push 0
push 0
call fcn.0041b9b0
add esp, 0x20
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x41bc03
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 4]
call fcn.0041ba70
mov eax, dword [ebp - 0x20]
jmp 0x41bcc5
push 0x66
push str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
push 2
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0040b6e0
add esp, 0x10
push eax
lea ecx, [ebp - 8]
call fcn.004026e0
lea ecx, [ebp - 8]
call fcn.00402720
movzx edx, al
test edx, edx
jne 0x41bc4c
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 8]
call fcn.00402700
lea ecx, [ebp - 4]
call fcn.0041ba70
mov eax, dword [ebp - 0x24]
jmp 0x41bcc5
lea ecx, [ebp - 8]
call fcn.00402760
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 4]
call fcn.00406f50
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.0041b9b0
add esp, 0x20
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x41bca7
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 8]
call fcn.00402700
lea ecx, [ebp - 4]
call fcn.0041ba70
mov eax, dword [ebp - 0x34]
jmp 0x41bcc5
lea ecx, [ebp - 8]
call fcn.00406ef0
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 8]
call fcn.00402700
lea ecx, [ebp - 4]
call fcn.0041ba70
mov eax, dword [ebp - 0x38]
mov esp, ebp
pop ebp
ret

Function at 0x41eb70
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.0041e4a0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41eba4
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 [0x433124]
call dword [ebp - 8]
jmp 0x41ebaa
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esp, ebp
pop ebp
ret 4

Function at 0x41ec00
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.0041e4e0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41ec34
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 [0x433124]
call dword [ebp - 8]
jmp 0x41ec3e
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret 4
Function at 0x41ec50
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.0041e500
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41ec88
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 [0x433124]
call dword [ebp - 8]
jmp 0x41ec96
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 0x425180
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
lea ecx, [ebp - 0x4c]
call fcn.00419960
lea ecx, [ebp - 0x34]
call fcn.00419960
call fcn.00419b90
push eax
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004190c0
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4251d3
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x34]
call fcn.00419a00
lea ecx, [ebp - 0x4c]
call fcn.00419a00
mov eax, dword [ebp - 8]
jmp 0x425248
call fcn.00419b90
push eax
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004190c0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x42520e
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x34]
call fcn.00419a00
lea ecx, [ebp - 0x4c]
call fcn.00419a00
mov eax, dword [ebp - 0x10]
jmp 0x425248
lea ecx, [ebp - 0x34]
call fcn.00419e80
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x4c]
call fcn.00419e80
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.00419a00
lea ecx, [ebp - 0x4c]
call fcn.00419a00
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x42c150
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.00432150
mov eax, dword [section..data]
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 + 0x444688]
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 0x42c328
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 0x42c277
mov eax, dword [ebp - 0x1420]
cmp eax, dword [ebp - 0x1424]
jae 0x42c277
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 0x42c255
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 0x42c1d9
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 0x42c2e1
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 0x42c348
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 0x42c323
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 0x42c348
jmp 0x42c1b2
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.00401020
mov esp, ebp
pop ebp
ret
Function at 0x42c360
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.00432150
mov eax, dword [section..data]
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 + 0x444688]
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 0x42c54b
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 0x42c496
mov eax, dword [ebp - 0x141c]
cmp eax, dword [ebp - 0x1424]
jae 0x42c496
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 0x42c472
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 0x42c3e9
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 0x42c504
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 0x42c56b
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 0x42c546
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 0x42c56b
jmp 0x42c3c2
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.00401020
mov esp, ebp
pop ebp
ret