joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405e67
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x405e95
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x405e9c
cmp ebx, dword [eax + 4]
jae 0x405e9c
xor eax, eax
jmp 0x40608c
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x405ead
xor eax, eax
inc eax
jmp 0x40608b
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x405ec3
cmp ecx, edx
jae 0x406008
cmp dword [eax + 4], 0
je 0x405ecc
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x405eb4
cmp dword [ebp + 8], 0
je 0x405eee
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x406008
cmp eax, esi
jae 0x406008
mov eax, dword [0x41f930]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x405f13
cmp dword [esi*4 + 0x41f938], edi
je 0x40600c
inc esi
cmp esi, eax
jl 0x405f01
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x4160a0]
test eax, eax
je 0x406088
cmp dword [ebp - 8], 0x1000000
jne 0x406088
test byte [ebp - 0xc], 0xcc
je 0x405f91
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x406088
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x406088
cmp word [eax + 0x18], 0x10b
jne 0x406088
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x406088
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x405f91
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x405f91
test byte [ecx + 0x27], 0x80
jne 0x406008
push 1
push 0x41f978
call dword [0x41624c]
test eax, eax
jne 0x405ea5
mov ecx, dword [0x41f930]
test ecx, ecx
mov edx, ecx
jle 0x405fc5
lea eax, [ecx*4 + 0x41f934]
cmp dword [eax], edi
je 0x405fc5
dec edx
sub eax, 4
test edx, edx
jg 0x405fb9
test edx, edx
jne 0x405ff6
push 0xf
pop ebx
cmp ecx, ebx
jg 0x405fd2
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x405fea
lea eax, [edx*4 + 0x41f938]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x405fd8
cmp ecx, 0x10
jge 0x405ff6
inc ecx
mov dword [0x41f930], ecx
push 0
push 0x41f978
call dword [0x41624c]
jmp 0x405ea5
xor eax, eax
jmp 0x40608b
test esi, esi
jle 0x405ea5
mov ebx, dword [0x41624c]
push 1
push 0x41f978
call ebx
test eax, eax
jne 0x405ea5
cmp dword [esi*4 + 0x41f938], edi
je 0x406062
mov eax, dword [0x41f930]
lea esi, [eax - 1]
test esi, esi
jl 0x406050
cmp dword [esi*4 + 0x41f938], edi
je 0x40604c
dec esi
jns 0x406040
test esi, esi
jge 0x406060
cmp eax, 0x10
jge 0x40605b
inc eax
mov dword [0x41f930], eax
lea esi, [eax - 1]
jmp 0x406062
je 0x40607a
xor ecx, ecx
test esi, esi
jl 0x40607a
lea eax, [ecx*4 + 0x41f938]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x406068
push 0
push 0x41f978
call ebx
jmp 0x405ea5
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413dc0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40d015
lea edi, [esi - 0xc015]
push edi
or ebp, 0xffffffff
jmp 0x413de2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x413de9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x413dd8
mov eax, 1
add ebx, ebx
jne 0x413dfb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x413df0
jne 0x413e0c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x413df0
xor ecx, ecx
sub eax, 3
jb 0x413e20
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x413e92
mov ebp, eax
add ebx, ebx
jne 0x413e2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x413e38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x413e5c
inc ecx
add ebx, ebx
jne 0x413e48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x413e3d
jne 0x413e59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x413e3d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x413e7c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x413e6d
jmp 0x413dde
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x413e7c
add edi, ecx
jmp 0x413dde
pop esi
mov edi, esi
mov ecx, 0x210
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x413e9a
cmp byte [edi], 5
jne 0x413e9a
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 0x413e9f
lea edi, [esi + 0x11000]
mov eax, dword [edi]
or eax, eax
je 0x413f0e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x14454]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x14508]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x413ecc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1450c]
or eax, eax
je 0x413f08
mov dword [ebx], eax
add ebx, 4
jmp 0x413ee9
call dword [esi + 0x1451c]
mov ebp, dword [esi + 0x14510]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x413f42
sub esp, 0xffffff80
jmp section.UPX0

Function at 0x4f80b9
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, 0x401000
call 0x4f80ca
lcall 0x5de5, 0x8b10c483
jmp int.00ba7f60

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, 0x401000
call 0x4f80ca
lcall 0x5de5, 0x8b10c483
jmp int.00ba7f60
Function at 0x10032b5
Capabilities:
Get common file path
Query or enumerate registry value
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x100a078]
or dword [ebp - 0x410], 0xffffffff
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], eax
push 0x7f
xor eax, eax
cmp dword [0x100a6bc], ebx
mov word [ebp - 0x204], bx
pop ecx
lea edi, [ebp - 0x202]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x418], ebx
mov dword [ebp - 0x414], ebx
jne 0x100338a
xor eax, eax
mov word [ebp - 0x40c], bx
mov ecx, 0x81
lea edi, [ebp - 0x40a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, 0x104
push esi
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp eax, ebx
je 0x1003380
cmp eax, 0xef
jae 0x1003380
sub esi, eax
push esi
lea eax, [ebp - 0x40c]
push 0x1001710
push eax
call fcn.0100552a
add esp, 0xc
lea eax, [ebp - 0x40c]
push eax
push 0x100
lea eax, [ebp - 0x204]
push eax
push 0x100170c
push 0x10016f4
push 0x10016e8
mov word [ebp - 0x206], bx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
jmp 0x1003382
xor eax, eax
cmp eax, ebx
jne 0x100341f
lea eax, [ebp - 0x410]
push eax
push 0x20019
push ebx
push 0x1001688
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10033df
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x418]
push eax
push ebx
lea eax, [ebp - 0x414]
push eax
push ebx
mov edi, 0x1001670
push edi
push dword [ebp - 0x410]
call esi
test eax, eax
je 0x10033ee
push dword [ebp - 0x410]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100514a
leave
ret
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x414]
push eax
push ebx
push edi
push dword [ebp - 0x410]
call esi
push dword [ebp - 0x410]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x10033df
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x100150c
lea eax, [ebp - 0x204]
push eax
call esi
xor edi, edi
inc edi
test eax, eax
jne 0x1003442
mov dword [0x100a028], ebx
jmp 0x100347c
push 0x10014e4
lea eax, [ebp - 0x204]
push eax
call esi
test eax, eax
jne 0x100345c
mov dword [0x100a028], edi
jmp 0x100347c
push 0x10014f8
lea eax, [ebp - 0x204]
push eax
call esi
test eax, eax
jne 0x10033df
mov dword [0x100a028], 2
mov eax, edi
jmp 0x10033e1
Function at 0x1003488
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x63c
mov eax, dword [0x100a078]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov dword [ebp - 0x638], eax
xor ebx, ebx
mov byte [ebp - 0x418], bl
xor eax, eax
mov ecx, 0xff
lea edi, [ebp - 0x417]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x100174c
mov dword [ebp - 0x624], ebx
stosb byte es:[edi], al
mov dword [ebp - 0x62c], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [ebp - 0x634], eax
je 0x1003673
push 0x100173c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [ebp - 0x630], eax
je 0x1003667
call fcn.010032b5
cmp dword [0x100a6bc], ebx
mov eax, 0x1001530
jne 0x1003516
mov eax, 0x1001594
push esi
lea ecx, [ebp - 0x628]
push ecx
push 0x20019
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov esi, str.00000
jne 0x10035fa
cmp dword [0x100a6bc], ebx
mov dword [ebp - 0x62c], 0x208
mov word [0x100a6b8], bx
mov eax, 0x1001518
jne 0x1003560
mov eax, 0x100158c
lea ecx, [ebp - 0x62c]
push ecx
mov edi, 0x100a4b0
push edi
lea ecx, [ebp - 0x63c]
push ecx
push ebx
push eax
push dword [ebp - 0x628]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x628]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 5
push edi
push esi
call fcn.0100556e
add esp, 0xc
cmp dword [0x100a6bc], ebx
mov word [0x100a01a], bx
mov eax, 0x100a4bc
jne 0x10035b3
mov eax, 0x100a4ba
push 4
push eax
mov edi, 0x100a6c8
push edi
call fcn.0100556e
push dword [0x100a020]
mov word [0x100a6ce], bx
push edi
call fcn.0100547c
add esp, 0x14
test eax, eax
jne 0x10035e0
push 2
pop eax
jmp 0x10035f3
push dword [0x100a024]
push edi
call fcn.0100547c
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
mov dword [0x100a6d4], eax
jmp 0x10035ff
mov eax, dword [0x100a6d4]
push eax
push dword [0x100a028]
push esi
call fcn.01003101
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x620]
push eax
xor eax, eax
xor edi, edi
inc edi
cmp dword [0x100a6d4], edi
mov dword [ebp - 0x418], 0x400
sete al
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebp - 0x638]
call dword [ebp - 0x630]
test eax, eax
pop esi
je 0x1003667
movzx eax, byte [ebp - 0x3f8]
mov dword [0x100a6d0], eax
mov dword [ebp - 0x624], edi
push dword [ebp - 0x634]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x624]
pop edi
pop ebx
call fcn.0100514a
leave
ret 4
Function at 0x1004f0f
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor ebx, ebx
push 0x100a200
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
stosd dword es:[edi], eax
call fcn.0100399f
test eax, eax
je 0x1004f93
push 0x100a6c4
call fcn.01002ba8
test eax, eax
je 0x1004f9f
xor edi, edi
cmp dword [ebp + 8], ebx
jbe 0x1004f84
mov esi, 0x1001c7c
push esi
call fcn.0100550b
push eax
mov eax, dword [ebp + 0xc]
push esi
push dword [eax + edi*4]
call fcn.01005731
add esp, 0x10
test eax, eax
jne 0x1004f7e
mov dword [0x100a6bc], 1
inc edi
cmp edi, dword [ebp + 8]
jb 0x1004f5a
push ebx
lea eax, [ebp + 8]
push eax
push ebx
call fcn.01003dd9
test eax, eax
je 0x1004f9a
xor esi, esi
jmp 0x100507d
cmp dword [ebp + 8], ebx
jne 0x1004fa7
xor esi, esi
inc esi
jmp 0x100507d
mov eax, dword [0x100a6c4]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 0x20], eax
call esi
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 0x1c], eax
call esi
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 0x28], eax
call esi
cmp dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], eax
je 0x100505f
cmp dword [ebp - 0x28], ebx
je 0x100505f
cmp eax, ebx
je 0x100505f
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x20]
push eax
push 0x1004ee4
push ebx
push ebx
call esi
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100505f
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x2c]
push eax
push 0x100372a
push ebx
push ebx
call esi
mov edi, eax
cmp edi, ebx
je 0x1005062
mov eax, dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x28]
push 0xffffffffffffffff
mov dword [ebp - 0x10], eax
push ebx
lea eax, [ebp - 0x14]
push eax
push 2
call esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebp - 4]
push 0xffffffffffffffff
mov dword [ebp - 0x14], eax
push 1
lea eax, [ebp - 0x14]
push eax
push 2
mov dword [ebp - 0x10], edi
call esi
xor esi, esi
inc esi
jmp 0x1005064
mov edi, dword [ebp - 8]
xor esi, esi
cmp dword [ebp - 4], ebx
je 0x1005072
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x100507d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], ebx
je 0x100508b
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x28], ebx
je 0x1005099
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], ebx
je 0x10050a7
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x100a6c4]
cmp ecx, ebx
je 0x10050b8
mov eax, dword [ecx]
push 1
call dword [eax + 8]
cmp dword [0x100a6c0], ebx
jne 0x10050c9
cmp esi, ebx
je 0x10050c9
xor eax, eax
inc eax
jmp 0x10050cb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x100514a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100a078]
jne 0x100515b
test ecx, 0xffff0000
jne 0x100515b
ret
jmp fcn.01005165

Function at 0x1005977
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp ecx, dword [esi*8 + 0x100a088]
je 0x1005999
inc esi
cmp esi, 0x13
mov dword [ebp - 4], esi
jb 0x1005987
cmp esi, 0x13
je 0x1005ad5
mov eax, dword [0x100aa0c]
cmp eax, 1
push ebx
je 0x1005aa4
test eax, eax
jne 0x10059c2
cmp dword [0x100a080], 1
je 0x1005aa4
cmp ecx, 0xfc
je 0x1005ad4
push edi
push 6
pop ecx
mov esi, 0x1002020
mov edi, 0x100aa60
rep movsd dword es:[edi], dword [esi]
push 0x104
mov ebx, 0x100aa7a
push ebx
movsw word es:[edi], word [esi]
push 0
mov byte [0x100ab7e], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1005a10
push 5
pop ecx
mov esi, 0x1002008
mov edi, 0x100aa7a
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005a15
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x1005a48
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005a29
sub eax, edx
push 3
lea eax, [eax + 0x100aa3f]
push 0x1002004
push eax
call fcn.01006f80
add esp, 0xc
mov edx, 0x100aa60
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1005a50
mov eax, dword [ebp - 4]
mov eax, dword [eax*8 + 0x100a08c]
mov esi, 0x1002000
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005a6c
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1005a78
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1001fd8
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.01006e77
add esp, 0xc
pop edi
jmp 0x1005ad4
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x1005ad4
mov edx, dword [esi*8 + 0x100a08c]
mov ecx, edx
lea esi, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x1005abc
push 0
sub ecx, esi
lea esi, [ebp - 8]
push esi
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
pop esi
leave
ret
Function at 0x1005f6c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100af8c]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
cmp eax, ebx
push 2
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
pop edi
jne 0x1005fbf
call esi
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1005fa6
mov dword [0x100af8c], 1
jmp 0x1005fc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1005fba
mov eax, edi
mov dword [0x100af8c], eax
jmp 0x1005fbf
mov eax, dword [0x100af8c]
cmp eax, 1
jne 0x100602b
cmp dword [ebp - 4], ebx
jne 0x1005fd9
call esi
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x1005fd9
xor eax, eax
jmp 0x10060e8
mov ecx, dword [ebp - 4]
cmp word [ecx], bx
mov eax, ecx
je 0x1005ff1
add eax, edi
cmp word [eax], bx
jne 0x1005fe3
add eax, edi
cmp word [eax], bx
jne 0x1005fe3
sub eax, ecx
add eax, edi
mov esi, eax
mov ecx, esi
call fcn.010070cd
cmp eax, ebx
jne 0x1006012
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
jmp 0x10060e8
mov ecx, esi
mov esi, dword [ebp - 4]
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 ebx, eax
jmp 0x1006002
cmp eax, edi
je 0x1006033
cmp eax, ebx
jne 0x1005fd2
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x1005fd2
cmp byte [esi], bl
je 0x1006078
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x1005fd2
add dword [ebp - 8], eax
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1006064
sub eax, edi
lea esi, [esi + eax + 1]
cmp byte [esi], bl
jne 0x1006046
mov esi, dword [ebp - 4]
inc dword [ebp - 8]
mov ecx, dword [ebp - 8]
add ecx, ecx
call fcn.010070cd
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x100608f
push esi
jmp 0x10060f9
mov edi, esi
mov esi, eax
mov eax, dword [ebp - 4]
cmp byte [eax], bl
je 0x10060d9
mov ecx, dword [ebp - 8]
mov eax, esi
sub eax, dword [ebp - 0xc]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x10060ed
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10060bd
sub eax, edx
push esi
lea edi, [edi + eax + 1]
call fcn.0100550b
cmp byte [edi], bl
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x100609a
push dword [ebp - 4]
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 0xc]
call fcn.010055b3
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x1005fd2
Function at 0x1006109
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x100af90]
test eax, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x100614d
call esi
test eax, eax
je 0x1006132
mov dword [0x100af90], 1
jmp 0x1006152
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1006149
mov dword [0x100af90], 2
jmp 0x100615b
xor eax, eax
jmp 0x10061af
cmp eax, 1
jne 0x1006156
call esi
jmp 0x10061af
cmp eax, 2
jne 0x1006149
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push eax
push 1
push 0
mov dword [ebp - 8], eax
call esi
mov edi, eax
test edi, edi
je 0x10061ac
lea ecx, [edi + edi]
call fcn.010070cd
test eax, eax
mov dword [ebp - 4], eax
je 0x10061ac
push edi
push eax
push 0xffffffffffffffff
push dword [ebp - 8]
push 1
push 0
call esi
test eax, eax
je 0x10061a3
mov eax, dword [ebp - 4]
jmp 0x10061ae
push dword [ebp - 4]
call fcn.010055b3
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x1006e77
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x100afbc], ebx
push esi
push edi
jne 0x1006ef9
push 0x10020b0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1006f34
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10020a4
push edi
call esi
test eax, eax
mov dword [0x100afbc], eax
je 0x1006f34
push 0x1002094
push edi
call esi
push 0x1002080
push edi
mov dword [0x100afc0], eax
call esi
cmp dword [0x100aa1c], 2
mov dword [0x100afc4], eax
jne 0x1006ef9
push 0x1002064
push edi
call esi
test eax, eax
mov dword [0x100afcc], eax
je 0x1006ef9
push 0x100204c
push edi
call esi
mov dword [0x100afc8], eax
mov eax, dword [0x100afc8]
test eax, eax
je 0x1006f3e
call eax
test eax, eax
je 0x1006f25
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x100afcc]
test eax, eax
je 0x1006f25
test byte [ebp - 8], 1
jne 0x1006f3e
cmp dword [0x100aa28], 4
jb 0x1006f38
or byte [ebp + 0x12], 0x20
jmp 0x1006f5d
xor eax, eax
jmp 0x1006f6d
or byte [ebp + 0x12], 4
jmp 0x1006f5d
mov eax, dword [0x100afc0]
test eax, eax
je 0x1006f5d
call eax
mov ebx, eax
test ebx, ebx
je 0x1006f5d
mov eax, dword [0x100afc4]
test eax, eax
je 0x1006f5d
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x100afbc]
pop edi
pop esi
pop ebx
leave
ret