joyce8/EMBER2024-capa huggingface dataset:
Function at 0x464af0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4a83f8], ebx
push esi
push edi
jne 0x464b70
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x464bab
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x48f034
push edi
call esi
test eax, eax
mov dword [0x4a83f8], eax
je 0x464bab
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4a83fc], eax
call esi
cmp dword [0x4a7f34], 2
mov dword [0x4a8400], eax
jne 0x464b70
push 0x48eff4
push edi
call esi
test eax, eax
mov dword [0x4a8408], eax
je 0x464b70
push 0x48efdc
push edi
call esi
mov dword [0x4a8404], eax
mov eax, dword [0x4a8404]
test eax, eax
je 0x464bb5
call eax
test eax, eax
je 0x464b9c
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4a8408]
test eax, eax
je 0x464b9c
test byte [ebp - 8], 1
jne 0x464bb5
cmp dword [0x4a7f40], 4
jb 0x464baf
or byte [ebp + 0x12], 0x20
jmp 0x464bd4
xor eax, eax
jmp 0x464be4
or byte [ebp + 0x12], 4
jmp 0x464bd4
mov eax, dword [0x4a83fc]
test eax, eax
je 0x464bd4
call eax
mov ebx, eax
test ebx, ebx
je 0x464bd4
mov eax, dword [0x4a8400]
test eax, eax
je 0x464bd4
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4a83f8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x465b49
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x465b62
or eax, 0xffffffff
jmp 0x465bc3
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x465bbf
push 0x3d
push esi
call fcn.0046676a
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x465bbf
cmp esi, eax
je 0x465bbf
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x4a7f54]
sete cl
cmp eax, dword [0x4a7f58]
mov dword [ebp - 8], ecx
jne 0x465ba5
mov edi, eax
call fcn.00465ae8
mov dword [0x4a7f54], eax
cmp eax, ebx
jne 0x465bfe
cmp dword [ebp + 0xc], ebx
je 0x465bc7
cmp dword [0x4a7f5c], ebx
je 0x465bc7
call fcn.004637af
test eax, eax
je 0x465bfe
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x465bd0
xor eax, eax
jmp 0x465bc2
push 4
call fcn.0045c7df
cmp eax, ebx
pop ecx
mov dword [0x4a7f54], eax
je 0x465bbf
mov dword [eax], ebx
cmp dword [0x4a7f5c], ebx
jne 0x465bfe
push 4
call fcn.0045c7df
cmp eax, ebx
pop ecx
mov dword [0x4a7f5c], eax
je 0x465bbf
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x4a7f54]
call fcn.00465a9b
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x465c5f
cmp dword [esi], ebx
je 0x465c5f
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0045c7f1
cmp dword [ebp - 8], ebx
pop ecx
jne 0x465c42
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x465ca0
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x465c39
mov eax, edi
shl eax, 2
push eax
push dword [0x4a7f54]
call fcn.0045ca11
cmp eax, ebx
pop ecx
pop ecx
je 0x465ca0
jmp 0x465c9b
cmp dword [ebp - 8], ebx
jne 0x465d0b
cmp edi, ebx
jge 0x465c6e
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x4a7f54]
call fcn.0045ca11
cmp eax, ebx
pop ecx
pop ecx
je 0x465bbf
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x4a7f54], eax
cmp dword [ebp + 0xc], ebx
je 0x465cf5
push dword [ebp - 4]
call fcn.0045c2c0
inc eax
inc eax
push eax
call fcn.0045c7df
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x465cf5
push dword [ebp - 4]
push esi
call fcn.0045f9d0
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x465cee
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0045c7f1
pop ecx
cmp dword [ebp - 8], ebx
je 0x465d03
push dword [ebp - 4]
call fcn.0045c7f1
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x465bc2
push dword [ebp - 4]
call fcn.0045c7f1
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x465bcc
Function at 0x466b80
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47ddcb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
mov eax, dword [ebp + 8]
push esi
xor edx, edx
push edi
mov dword [esp + 0x10], eax
mov byte [esp + 0x14], dl
mov ecx, dword [ecx]
push edx
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
mov eax, dword [ebp + 0xc]
push edx
push 2
push eax
push 1
push edx
push 8
push ecx
mov dword [esp + 0x250], edx
mov dword [esp + 0x2c], str.NtLogon
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
test eax, eax
jne 0x466c16
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReportEvent
lea ecx, [esp + 0x124]
call fcn.0044ba90
push 0x49859c
lea edx, [esp + 0x1c]
mov esi, eax
mov ecx, 0x41
lea edi, [esp + 0x1c]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.00459658
mov ecx, dword [esp + 0x224]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x466c30
Capabilities:
Terminate process

Disassembly:
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
jne 0x466c5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x48f11c
push 0x4a8438
call fcn.00402c00
add esp, 0xc
push 0
call fcn.00459e4b
ret

Function at 0x468928
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x47df7a
call fcn.0045c690
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov al, byte [ebp + 8]
xor edi, edi
lea ecx, [esi + 0xc]
mov dword [ebp - 4], edi
mov dword [esi], 0x48f398
mov byte [esi + 4], al
mov dword [esi + 8], edi
call fcn.0042e603
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x46a7b6
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebx
push ebp
push esi
push edi
push 8
mov edi, ecx
call fcn.00436ddb
mov ebp, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
xor ebx, ebx
push ebx
push 1
push ebx
lea esi, [edi + 0x18]
push ebx
push esi
mov dword [edi], 0x48f608
mov dword [esi], ebx
call ebp
test eax, eax
jne 0x46a816
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x46a803
push 8
push 1
push ebx
push ebx
push esi
call ebp
test eax, eax
jne 0x46a816
push str.RandomStream:_unable_to_create_keyset_n
jmp 0x46a808
push str.RandomStream:_unable_to_acquire_context_n
push 0x4a57f0
call fcn.00459ef1
pop ecx
pop ecx
mov dword [esi], ebx
cmp dword [esi], ebx
jne 0x46a85b
push str.RandomStream:_warning:_no_OS_supplied_random_source___using_rand___n
push 0x4a57f0
call fcn.00459ef1
push ebx
call fcn.0045b051
add esp, 0xc
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
imul eax, eax, 0xf1207
add esi, eax
call fcn.0045cc42
add eax, dword [0x4a849c]
add eax, esi
push eax
mov dword [0x4a849c], eax
call fcn.0045cc35
pop ecx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x46c4c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
xor eax, eax
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
push edi
lea edi, [esi + 0x40]
mov ecx, edi
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
xor edx, edx
lea eax, [esi + 0x20]
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
xor ecx, ecx
test ebp, ebp
lea edx, [esi + 0x30]
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov eax, 0x10
mov byte [esi + 0x2f], 1
mov dword [esi + 0x164], eax
mov byte [esi + 0x3f], 2
mov dword [esi + 0x168], eax
mov dword [esi + 0x16c], eax
je 0x46c592
push ebx
xor ebx, ebx
test ebp, ebp
jbe 0x46c551
cmp eax, 0x10
jne 0x46c53c
lea eax, [esi + 0x70]
push eax
push edi
push edi
call fcn.0046cf21
add esp, 0xc
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dl, byte [ebx + ecx]
mov cl, byte [edi + eax]
xor cl, dl
inc ebx
mov byte [edi + eax], cl
inc eax
cmp ebx, ebp
jb 0x46c527
cmp eax, 0x10
lea ecx, [esi + 0x50]
jae 0x46c561
xor byte [eax + esi + 0x40], 0x80
add ecx, 0x10
lea eax, [esi + 0x41]
inc ecx
mov ebp, 4
lea ebx, [ebx]
mov dl, byte [ecx - 1]
xor byte [eax - 1], dl
mov dl, byte [ecx]
xor byte [eax], dl
mov dl, byte [ecx + 1]
xor byte [eax + 1], dl
mov dl, byte [ecx + 2]
xor byte [eax + 2], dl
add ecx, 4
add eax, 4
dec ebp
jne 0x46c570
pop ebx
jmp 0x46c5ad
lea eax, [esi + 0x50]
mov edx, dword [eax]
mov ecx, edi
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
lea ecx, [esi + 0x70]
push ecx
push edi
push edi
call fcn.0046cf21
mov edx, dword [edi]
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
mov dword [esi], edx
mov edx, dword [edi + 0xc]
add esp, 0xc
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
pop edi
mov dword [esi + 0xc], edx
pop esi
xor eax, eax
pop ebp
ret
Function at 0x46cb50
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x164]
cmp eax, 0x10
lea ebx, [esi + 0x50]
mov ecx, ebx
jae 0x46cb76
mov dl, byte [eax + esi + 0x20]
lea eax, [eax + esi + 0x20]
xor dl, 0x80
mov byte [eax], dl
add ecx, 0x10
push ebp
push edi
lea eax, [esi + 0x21]
inc ecx
mov edi, 4
mov dl, byte [ecx - 1]
xor byte [eax - 1], dl
mov dl, byte [ecx]
xor byte [eax], dl
mov dl, byte [ecx + 1]
xor byte [eax + 1], dl
mov dl, byte [ecx + 2]
xor byte [eax + 2], dl
add ecx, 4
add eax, 4
dec edi
jne 0x46cb81
lea ebp, [esi + 0x70]
lea eax, [esi + 0x20]
push ebp
push eax
push eax
call fcn.0046cf21
mov eax, dword [esi + 0x16c]
add esp, 0xc
cmp eax, 0x10
mov ecx, ebx
jae 0x46cbce
mov dl, byte [esi + eax + 0x30]
lea eax, [esi + eax + 0x30]
xor dl, 0x80
mov byte [eax], dl
add ecx, 0x10
lea eax, [esi + 0x31]
inc ecx
mov edi, 4
mov dl, byte [ecx - 1]
xor byte [eax - 1], dl
mov dl, byte [ecx]
xor byte [eax], dl
mov dl, byte [ecx + 1]
xor byte [eax + 1], dl
mov dl, byte [ecx + 2]
xor byte [eax + 2], dl
add ecx, 4
add eax, 4
dec edi
jne 0x46cbd7
add esi, 0x30
push ebp
push esi
push esi
call fcn.0046cf21
mov edx, dword [esp + 0x24]
add esp, 0xc
test edx, edx
pop edi
pop ebp
jbe 0x46cc27
mov ecx, dword [esp + 0xc]
mov eax, esi
mov esi, edx
mov bl, byte [eax + 0x10]
mov dl, byte [eax - 0x10]
xor dl, bl
xor dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
dec esi
jne 0x46cc16
pop esi
xor eax, eax
pop ebx
ret
Function at 0x100b005
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x100b058
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
jbe 0x100b058
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100b058
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x100b058
push dword [ebp + 0x14]
push ebx
push eax
push dword [ebp + 8]
call fcn.01048ebb
test eax, eax
jl 0x100b06b
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
pop esi
pop ebx
pop ebp
ret
Function at 0x100c055
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6c4
mov eax, dword [0x1090004]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x670], ecx
mov dword [ebp - 0x674], eax
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x464], ebx
mov ecx, 0x81
lea edi, [ebp - 0x460]
push 0x64
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xcc]
push eax
push 0x3f6
push ebx
call esi
mov eax, dword [ebp - 0x670]
add eax, 0x2960
push eax
mov dword [ebp - 0x678], eax
lea eax, [ebp - 0x464]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0xc8
lea eax, [ebp - 0x25c]
push eax
push 0x3f5
push ebx
call esi
cmp word [ebp - 0x25c], bx
lea eax, [ebp - 0x25c]
je 0x100c0fa
cmp word [eax], 0x23
jne 0x100c0f3
mov word [eax], bx
inc eax
inc eax
cmp word [eax], bx
jne 0x100c0ea
push 0x104
lea eax, [ebp - 0x66c]
push eax
mov word [ebp - 0x66c], bx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor eax, eax
push 0x13
pop ecx
lea edi, [ebp - 0x6c4]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x674]
mov dword [ebp - 0x6c0], eax
mov eax, dword [ebp - 0x670]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x6bc], eax
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x6b8], eax
lea eax, [ebp - 0x464]
mov dword [ebp - 0x6a8], eax
lea eax, [ebp - 0xcc]
mov dword [ebp - 0x694], eax
lea eax, [ebp - 0x464]
push eax
mov dword [ebp - 0x6c4], 0x4c
mov dword [ebp - 0x6ac], 1
mov dword [ebp - 0x6a4], 0x208
mov dword [ebp - 0x690], 0x801000
mov dword [ebp - 0x688], 0x100160c
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
pop edi
pop esi
pop ebx
jne 0x100c1b1
lea eax, [ebp - 0x66c]
mov dword [ebp - 0x698], eax
lea eax, [ebp - 0x6c4]
push eax
call dword [sym.imp.comdlg32.dll_GetOpenFileNameW]
test eax, eax
je 0x100c1d4
push dword [ebp - 0x6a8]
push dword [ebp - 0x678]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [ebp - 4]
call fcn.0100d888
leave
ret 4
Function at 0x100c1e5
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6bc
mov eax, dword [0x1090004]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x670], ecx
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x464], ebx
mov ecx, 0x81
lea edi, [ebp - 0x460]
push 0x64
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xcc]
push eax
push 0x3f7
push ebx
call esi
push 0xc8
lea eax, [ebp - 0x25c]
push eax
push 0x3f5
push ebx
call esi
cmp word [ebp - 0x25c], bx
lea eax, [ebp - 0x25c]
je 0x100c262
cmp word [eax], 0x23
jne 0x100c25b
mov word [eax], bx
inc eax
inc eax
cmp word [eax], bx
jne 0x100c252
push 0x104
lea eax, [ebp - 0x66c]
push eax
mov word [ebp - 0x66c], bx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov esi, dword [ebp - 0x670]
xor eax, eax
push 0x13
pop ecx
lea edi, [ebp - 0x6bc]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6b8], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x6b4], eax
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x6b0], eax
lea eax, [ebp - 0x464]
mov dword [ebp - 0x6a0], eax
lea eax, [ebp - 0xcc]
mov dword [ebp - 0x68c], eax
lea eax, [ebp - 0x464]
push eax
mov dword [ebp - 0x6bc], 0x4c
mov dword [ebp - 0x6a4], 1
mov dword [ebp - 0x69c], 0x208
mov dword [ebp - 0x688], 0x801000
mov dword [ebp - 0x680], 0x100160c
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x100c313
lea eax, [ebp - 0x66c]
mov dword [ebp - 0x690], eax
lea eax, [ebp - 0x6bc]
push eax
call dword [sym.imp.comdlg32.dll_GetOpenFileNameW]
test eax, eax
je 0x100c337
push dword [ebp - 0x6a0]
add esi, 0x2b68
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100d888
leave
ret 4
Function at 0x100d9cf
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x60
push 0x1001658
call fcn.0100e900
mov edi, 0x94
mov eax, edi
call fcn.0100dcb0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x10990f8], ecx
mov eax, dword [esi + 4]
mov dword [0x1099104], eax
mov edx, dword [esi + 8]
mov dword [0x1099108], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x10990fc], esi
cmp ecx, 2
je 0x100da2f
or esi, 0x8000
mov dword [0x10990fc], esi
shl eax, 8
add eax, edx
mov dword [0x1099100], eax
cmp word [0x1000000], 0x5a4d
jne 0x100da6b
mov eax, dword [0x100003c]
lea eax, [eax + 0x1000000]
cmp dword [eax], 0x4550
jne 0x100da6b
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x100da84
cmp ecx, 0x20b
je 0x100da71
and dword [ebp - 0x1c], 0
jmp 0x100da98
cmp dword [eax + 0x84], 0xe
jbe 0x100da6b
xor ecx, ecx
cmp dword [eax + 0xf8], ecx
jmp 0x100da92
cmp dword [eax + 0x74], 0xe
jbe 0x100da6b
xor ecx, ecx
cmp dword [eax + 0xe8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
push 0
call fcn.0100e8a4
pop ecx
test eax, eax
jne 0x100dac5
cmp dword [0x10990e0], 1
jne 0x100dab2
call fcn.0100e080
push 0x1c
call fcn.0100de93
push 0xff
call fcn.0100dcf2
pop ecx
pop ecx
and dword [ebp - 4], 0
call fcn.0100e6d4
test eax, eax
jge 0x100dada
push 0x1b
call fcn.0100d9a0
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x109ae50], eax
call fcn.0100e5a7
mov dword [0x10990d8], eax
call fcn.0100e4fe
test eax, eax
jge 0x100db00
push 8
call fcn.0100d9a0
pop ecx
call fcn.0100e2a4
test eax, eax
jge 0x100db11
push 9
call fcn.0100d9a0
pop ecx
call fcn.0100dd4c
mov dword [ebp - 0x28], eax
test eax, eax
je 0x100db24
push eax
call fcn.0100d9a0
pop ecx
and dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0100e236
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x100db46
movzx eax, word [ebp - 0x40]
jmp 0x100db49
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push 0
push 0x1000000
call fcn.0100c44c
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], 0
jne 0x100db6a
push esi
call fcn.0100de2c
call fcn.0100de64
jmp 0x100db9c
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x7c]
call fcn.0100e93b
ret
Function at 0x100de93
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x1090004]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x1090030]
je 0x100debd
inc eax
cmp eax, 0x12
jb 0x100deae
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1090030]
mov dword [ebp - 0x110], esi
jne 0x100e068
mov eax, dword [0x10990e0]
cmp eax, 1
je 0x100e036
test eax, eax
jne 0x100def3
cmp dword [0x109000c], 1
je 0x100e036
cmp ecx, 0xfc
je 0x100e068
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
mov byte [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100df2e
push 5
pop ecx
mov esi, 0x10019cc
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebx, [ebp - 0x10c]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100df39
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x100df71
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100df51
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x10019c8
push ebx
call fcn.0100f000
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100df76
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 0x1090034]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100df90
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.0100dcb0
mov edx, esp
push 6
pop ecx
mov esi, 0x10019ac
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100dfbc
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100dfc8
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100dfe1
mov eax, dword [ebp - 0x110]
mov esi, 0x10019a8
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x1090034]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100dfff
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100e00b
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1001980
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.0100eefd
add esp, 0xc
jmp 0x100e068
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x100e068
mov esi, dword [esi + 0x1090034]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x100e04d
push 0
sub ecx, edx
lea edx, [ebp - 0x114]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x120]
mov ecx, dword [ebp - 4]
call fcn.0100d888
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100e5a7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1099250]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0x100e5f3
call esi
mov edi, eax
cmp edi, ebx
je 0x100e5d9
mov dword [0x1099250], 1
jmp 0x100e5f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x100e5ee
push 2
pop eax
mov dword [0x1099250], eax
jmp 0x100e5f3
mov eax, dword [0x1099250]
cmp eax, 1
jne 0x100e670
cmp edi, ebx
jne 0x100e604
call esi
mov edi, eax
cmp edi, ebx
je 0x100e679
cmp word [edi], bx
mov eax, edi
je 0x100e619
inc eax
inc eax
cmp word [eax], bx
jne 0x100e60b
inc eax
inc eax
cmp word [eax], bx
jne 0x100e60b
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, edi
push ebx
sar eax, 1
inc eax
push eax
push edi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x100e667
push eax
call fcn.0100f62c
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x100e667
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
push ebx
call esi
test eax, eax
jne 0x100e664
push dword [ebp - 4]
call fcn.0100f567
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x100e6c8
cmp eax, 2
je 0x100e67d
cmp eax, ebx
je 0x100e67d
xor eax, eax
jmp 0x100e6ca
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x100e679
cmp byte [esi], bl
je 0x100e69a
inc eax
cmp byte [eax], bl
jne 0x100e690
inc eax
cmp byte [eax], bl
jne 0x100e690
sub eax, esi
inc eax
mov edi, eax
push edi
call fcn.0100f62c
cmp eax, ebx
pop ecx
je 0x100e6c1
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret