joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422b6d
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x435280]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0041b27b
mov dword [ebp - 0x14], eax
cmp dword [0x437390], esi
jne 0x422c60
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x422bed
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x422d40
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x422d40
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x422d40
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x437390], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x437394], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x437398], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4373a0], eax
test eax, eax
je 0x422c5d
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43739c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x422c85
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x422c78
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x422c9a
push 4
pop eax
jmp 0x422d42
cmp dword [ebp - 0x14], esi
je 0x422c9a
push dword [0x437390]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x422c7f
mov eax, dword [0x43739c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x422cf8
cmp dword [0x4373a0], edi
je 0x422cf8
push eax
call ebx
push dword [0x4373a0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x422cf8
test eax, eax
je 0x422cf8
call ecx
test eax, eax
je 0x422ced
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x422ced
test byte [ebp - 8], 1
jne 0x422cf8
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x422d28
mov eax, dword [0x437394]
cmp eax, edi
je 0x422d25
push eax
call ebx
test eax, eax
je 0x422d25
call eax
mov esi, eax
test esi, esi
je 0x422d25
mov eax, dword [0x437398]
cmp eax, edi
je 0x422d25
push eax
call ebx
test eax, eax
je 0x422d25
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x437390]
call ebx
test eax, eax
je 0x422d40
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x422d42
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410875
mov esp, ebp
pop ebp
ret
Function at 0x407180
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4071be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4071b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4071c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4071a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4072a0
Capabilities:
Parse pe header

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

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x65221476
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
mov ebx, 0x42cd70
nop
mov ecx, 0x1f1b7076
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43201e
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x43b658
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 0x43b3c1
mov edi, 0x3f62ca4e
and edi, edi
call fcn.0043b691
add edi, 0x4f648b6a
sub ecx, edi
or edi, edi
xor dword [esi], eax
or ecx, ecx
inc esi
mov ecx, 0xcce45c76
or ecx, ecx
cmp esi, ebx
jne fcn.0043b658
mov edi, edi
or ecx, ecx
push 0x36880749
pop ecx
ret

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x4016f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x4c]
mov al, 0x45
mov byte [esp + 0x29], al
mov byte [esp + 0x2c], al
mov eax, dword [edi]
xor ecx, ecx
mov byte [esp + 0x28], 0x4b
mov byte [esp + 0x2a], 0x52
mov byte [esp + 0x2b], 0x4e
mov byte [esp + 0x2d], 0x4c
mov byte [esp + 0x2e], 0x33
mov byte [esp + 0x2f], 0x32
mov byte [esp + 0x30], 0x2e
mov byte [esp + 0x31], 0x64
mov byte [esp + 0x32], 0x6c
mov byte [esp + 0x33], 0x6c
mov byte [esp + 0x34], 0
mov cx, word [eax + 0x14]
lea edx, [esp + 0x1c]
mov bl, 0x74
lea esi, [ecx + eax + 0x18]
lea eax, [esp + 0x28]
push edx
push eax
mov byte [esp + 0x24], 0x56
mov byte [esp + 0x25], 0x69
mov byte [esp + 0x26], 0x72
mov byte [esp + 0x27], bl
mov byte [esp + 0x28], 0x75
mov byte [esp + 0x29], 0x61
mov byte [esp + 0x2a], 0x6c
mov byte [esp + 0x2b], 0x46
mov byte [esp + 0x2c], 0x72
mov byte [esp + 0x2d], 0x65
mov byte [esp + 0x2e], 0x65
mov byte [esp + 0x2f], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, dword [edi]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
cmp word [ebp + 6], 0
jbe 0x4018b0
add esi, 0x24
mov eax, dword [esi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov edi, eax
and ecx, 1
and edx, 1
shr edi, 0x1f
test eax, 0x2000000
je 0x4017ec
mov ecx, dword [esi - 0x14]
mov edx, dword [esi - 0x1c]
push 0x4000
push ecx
push edx
call dword [esp + 0x20]
jmp 0x401890
lea ecx, [edx + ecx*2]
test eax, 0x4000000
lea edx, [edi + ecx*2]
mov edi, dword [edx*4 + 0x420630]
je 0x401806
or edi, 0x200
mov ecx, dword [esi - 0x14]
test ecx, ecx
jne 0x40181f
test al, 0x40
je 0x401816
mov ecx, dword [ebp + 0x20]
jmp 0x40181d
test al, 0x80
je 0x401890
mov ecx, dword [ebp + 0x24]
test ecx, ecx
jbe 0x401890
lea eax, [esp + 0x38]
lea ecx, [esp + 0x28]
push eax
push ecx
mov byte [esp + 0x40], 0x56
mov byte [esp + 0x41], 0x69
mov byte [esp + 0x42], 0x72
mov byte [esp + 0x43], bl
mov byte [esp + 0x44], 0x75
mov byte [esp + 0x45], 0x61
mov byte [esp + 0x46], 0x6c
mov byte [esp + 0x47], 0x50
mov byte [esp + 0x48], 0x72
mov byte [esp + 0x49], 0x6f
mov byte [esp + 0x4a], bl
mov byte [esp + 0x4b], 0x65
mov byte [esp + 0x4c], 0x63
mov byte [esp + 0x4d], bl
mov byte [esp + 0x4e], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esi - 0x14]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esi - 0x1c]
push edi
push ecx
push edx
call eax
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x10]
xor edx, edx
inc eax
mov ebp, dword [ecx]
add esi, 0x28
mov dword [esp + 0x10], eax
mov dx, word [ebp + 6]
cmp eax, edx
jl 0x4017b8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
Function at 0x401da0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, 0x5ab
and eax, 0xff
push esi
cdq
idiv ecx
mov esi, dword [esp + 0xc]
add dl, 0x3d
test esi, esi
jbe 0x401dcd
mov eax, dword [esp + 8]
mov cl, byte [eax]
xor cl, dl
add cl, dl
mov byte [eax], cl
inc eax
dec esi
jne 0x401dc1
pop esi
ret

Function at 0x401dd0
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push 0x400
push 0x19600
push 0x407030
call fcn.00401da0
push 0x407030
call fcn.004012f0
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x401e15
mov eax, dword [esp + 0x10]
push eax
push ebx
call fcn.00401af0
add esp, 8
test eax, eax
jne 0x401e19
push ebx
call fcn.00401b80
add esp, 4
pop edi
pop esi
pop ebx
ret
sub esp, 0x2a8
mov ecx, 0xaa
mov esi, str._._________
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call eax
push ebx
call fcn.00401b80
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10184f0
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
mov esi, ecx
call fcn.0101a5ff
cmp eax, edi
mov dword [esi + 0x38], eax
je 0x1018550
lea eax, [esi + 0x3c]
push eax
push edi
push esi
push 0x10184d4
push edi
push edi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
cmp eax, edi
mov dword [esi + 4], eax
je 0x101853f
cmp dword [ebp + 8], edi
jne 0x101853f
push 0x32
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x101852d
mov eax, dword [esi + 0x38]
cmp eax, edi
je 0x1018550
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x38], edi
pop edi
pop esi
pop ebp
ret 4
Function at 0x101884a
Capabilities:
Parse pe header

Disassembly:
push 0x70
push 0x1003210
call fcn.01018ac0
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x1018887
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1018887
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x101889f
cmp eax, 0x20b
je 0x101888c
mov dword [ebp - 0x1c], ebx
jmp 0x10188b3
cmp dword [ecx + 0x84], 0xe
jbe 0x1018887
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x10188ad
cmp dword [ecx + 0x74], 0xe
jbe 0x1018887
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x104af40], 0xffffffff
or dword [0x104af44], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x104945c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1049458]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x104af3c], eax
call fcn.01018ab8
cmp dword [0x1048630], ebx
jne 0x101890e
push fcn.01018ab8
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01018aa1
push 0x1048030
push 0x104802c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1049454]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1049450]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x1048028
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x10189a4
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x1018978
cmp al, 0x22
jne 0x101896a
cmp byte [esi], 0x22
jne 0x1018981
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x101898b
cmp al, 0x20
jbe 0x101897d
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
jmp 0x1047b5f
cmp byte [esi], 0x20
jbe 0x1018981
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10189a4
not edx
nop
nop
adc ch, 0xea
sub ecx, 0x16c04302
sub eax, 2
not ch
lea edx, [edi]
mov cl, 0x4a
jmp 0x104797e
cld
lea edx, [esi]
jmp 0x104737a
add ecx, ecx
dec ecx
dec edx
mov ecx, 0xaed966e3
not ecx
sub word [eax + 0x10beffe], 0x6df9
jmp 0x1047697
mov cl, 0xef
jg 0x1047856
add ecx, 8
not eax
xor cl, bh
jmp 0x10c3ca7
and edx, esp
mov ecx, 0x27ff316e
mov ecx, ecx
inc edx
mov eax, 0x4e94
mov cl, cl
dec ecx
dec edx
inc ecx
xor cl, ah
jmp 0x1047856
Function at 0x101a591
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
call fcn.0101a42a
test al, al
je 0x101a5af
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x101a5f1
cmp dword [ebp + 8], 0
jne 0x101a5b9
xor eax, eax
jmp 0x101a5f1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.01044e40
mov edi, esp
push 0xffffffffffffffff
push esi
push dword [ebp + 8]
push edi
call fcn.01018b35
neg eax
sbb eax, eax
and eax, edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret 8

Function at 0x101a89d
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
call fcn.0101a42a
test al, al
je 0x101a8b8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x101a8f5
xor eax, eax
cmp dword [ebp + 8], eax
je 0x101a8ee
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.01044e40
mov edi, esp
push 0xffffffffffffffff
push esi
push dword [ebp + 8]
push edi
call fcn.01018b35
neg eax
sbb eax, eax
and eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret 4

Function at 0x101aa07
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
call fcn.0101a42a
test al, al
je 0x101aa2c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x101aabd
cmp dword [ebp + 8], 0
jne 0x101aa39
xor eax, eax
jmp 0x101aabd
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.01044e40
mov edi, esp
push 0xffffffffffffffff
push esi
push dword [ebp + 8]
push edi
call fcn.01018b35
mov ebx, dword [ebp + 0x10]
mov esi, eax
neg esi
sbb esi, esi
and esi, edi
lea edi, [ebx + ebx]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.01044e40
mov dword [ebp + 8], esp
push edi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov esi, eax
test esi, esi
je 0x101aaac
cmp esi, edi
jae 0x101aa97
mov edi, esi
push edi
push ebx
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.01018b5b
cmp esi, eax
jae 0x101aabb
mov esi, eax
jmp 0x101aabb
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x101aabb
test ebx, ebx
jbe 0x101aabb
and word [eax], 0
mov eax, esi
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x101adb2
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
call fcn.0101a42a
test al, al
je 0x101add1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
jmp 0x101ae15
mov edi, dword [ebp + 8]
lea esi, [edi + edi]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.01044e40
mov ebx, esp
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x101ae04
cmp edi, eax
jb 0x101ae15
push 0xffffffffffffffff
push edi
push ebx
push dword [ebp + 0xc]
call fcn.01018b5b
jmp 0x101ae15
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x101ae13
test edi, edi
jbe 0x101ae13
and word [eax], 0
xor eax, eax
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x101ae24
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
call fcn.0101a42a
test al, al
je 0x101ae3f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x101ae80
cmp dword [ebp + 8], 0
jne 0x101ae4a
or eax, 0xffffffff
jmp 0x101ae80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.01044e40
mov edi, esp
push 0xffffffffffffffff
push esi
push dword [ebp + 8]
push edi
call fcn.01018b35
neg eax
sbb eax, eax
and eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret 4

Function at 0x101ae8e
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
call fcn.0101a42a
test al, al
je 0x101aeb1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
jmp 0x101aef9
cmp dword [ebp + 8], 0
jne 0x101aebb
xor eax, eax
jmp 0x101aef9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.01044e40
mov edi, esp
push 0xffffffffffffffff
push esi
push dword [ebp + 8]
push edi
call fcn.01018b35
push dword [ebp + 0x14]
neg eax
push dword [ebp + 0x10]
sbb eax, eax
push dword [ebp + 0xc]
and eax, edi
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret 0x10