joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a6650
Capabilities:
Hash data with md5

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5a6717
sub esp, 0x20
lea eax, [0x5fc320]
mov dword [esp], eax
call fcn.00409a30
mov eax, dword [esp + 4]
mov dword [esp + 0x1c], eax
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x50], 0
mov dword [eax + 0x54], 0
mov dword [eax + 0x58], 0
lea ecx, [0x661060]
test byte [ecx], al
mov ecx, dword [esp + 0x24]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xc], ecx
mov dword [esp], eax
call fcn.005a4cc0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.005a4e90
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
add esp, 0x20
ret
call fcn.00449f20
jmp fcn.005a6650

Function at 0x5a6730
Capabilities:
Hash data with md5

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5a67f7
sub esp, 0x20
lea eax, [0x5fbca0]
mov dword [esp], eax
call fcn.00409a30
mov eax, dword [esp + 4]
mov dword [esp + 0x1c], eax
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x50], 0
mov dword [eax + 0x54], 0
mov dword [eax + 0x58], 0
lea ecx, [0x660f20]
test byte [ecx], al
mov ecx, dword [esp + 0x24]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xc], ecx
mov dword [esp], eax
call fcn.00511f40
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.00512150
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
add esp, 0x20
ret
call fcn.00449f20
jmp fcn.005a6730
Function at 0x5a6f30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0xc]
cmp eax, dword [ecx + 8]
jbe 0x5a7122
sub esp, 0x8c
mov eax, dword [esp + 0x90]
test eax, 0x80000
je 0x5a7117
mov eax, dword [esp + 0xa4]
cmp eax, 6
jne 0x5a6f8d
mov eax, dword [esp + 0xa0]
mov ecx, dword [eax]
cmp ecx, 0x65696c43
jne 0x5a6f8d
movzx eax, word [eax + 4]
cmp ax, 0x746e
je 0x5a7062
lea eax, [esp + 0x1c]
mov dword [esp], eax
lea eax, [0x62bfab]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x3b
call fcn.0043b0b0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x14]
lea edi, [esp + 0x74]
mov ebx, eax
xor eax, eax
call fcn.0044b77a
mov eax, dword [esp + 0x94]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ebx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], edx
lea eax, [esp + 0x74]
mov dword [esp], eax
mov dword [esp + 4], 2
mov dword [esp + 8], 2
call fcn.005a6b90
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.005a6730
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], edx
add esp, 0x8c
ret
lea eax, [esp + 0x3c]
mov dword [esp], eax
lea eax, [0x62bf35]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x3b
call fcn.0043b0b0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0xc]
lea edi, [esp + 0x5c]
mov ebx, eax
xor eax, eax
call fcn.0044b77a
mov eax, dword [esp + 0x94]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], edx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ebx
lea eax, [esp + 0x5c]
mov dword [esp], eax
mov dword [esp + 4], 2
mov dword [esp + 8], 2
call fcn.005a6b90
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.005a6730
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
jmp 0x5a7046
xor ecx, ecx
xor eax, eax
xor edx, edx
jmp 0x5a7046
call fcn.00449f20
jmp fcn.005a6f30
Function at 0x401020
Capabilities:
Get common file path

Disassembly:
push edi
sub esp, 0x200
mov edi, esp
push 0x7c
push edi
call sub.KERNEL32.dll_GetSystemDirectoryA
lea ecx, [edi + 0x7c]
xor edx, edx
push edx
push edx
push edx
push ecx
push edx
push edi
add edi, eax
mov eax, 0x69636d5c
stosd dword es:[edi], eax
mov eax, 0x337a7471
stosd dword es:[edi], eax
mov eax, 0x6c642e32
stosd dword es:[edi], eax
mov eax, 0x6c
stosd dword es:[edi], eax
call sub.KERNEL32.dll_FindFirstFileExA
add esp, 0x200
pop edi
cmp eax, 0
jg 0x401068
ret
pushal
jmp fcn.00401334

Function at 0x401180
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
push eax
call sub.KERNEL32.dll_GetLogicalDrives
pop eax
push eax
push esi
push edx
call fcn.00401000
pop eax
push eax
push 0x1c
call sub.KERNEL32.dll_Sleep
pop eax
pop ebp
ret 0xc

Function at 0x4011c8
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
push eax
push edx
push ecx
call fcn.00401448
pop eax
push eax
call sub.KERNEL32.dll_GetCommandLineA
pop eax
push eax
push 0x17
call sub.KERNEL32.dll_Sleep
pop eax
pop ebp
ret 0xc

Function at 0x401698
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
push eax
push 0x15
call sub.KERNEL32.dll_Sleep
pop eax
push eax
push ecx
push esi
push ecx
call fcn.00401240
pop eax
push eax
call sub.KERNEL32.dll_GetLogicalDrives
pop eax
pop ebp
ret 0x10
Function at 0x407010
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 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x29a078a7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x29a078b6
pop dword [ebp - 0x14]
mov eax, 0x29a078b6
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0xd40677a6
add dword [ebp - 0x24], 0x7a4bcda5
mov dword [ebp - 0x20], 0x82c7ea9
add dword [ebp - 0x20], 0x2a06cd9c
mov dword [ebp - 0x1c], 0xd284f4e4
add dword [ebp - 0x1c], 0x79c74f4a
mov dword [ebp - 0x18], 0x8cecb28e
add dword [ebp - 0x18], 0x73134d72
lea eax, [ebp - 0x24]
push eax
mov eax, 0x34aaf7d
add eax, 0x2656910f
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0xcb76d20d
sub dword [ebp - 0x24], 0x570468b7
mov dword [ebp - 0x20], 0xd68adcf7
sub dword [ebp - 0x20], 0x951e7b82
mov dword [ebp - 0x1c], 0x20cb3226
add dword [ebp - 0x1c], 0x42a43a46
mov dword [ebp - 0x18], 0xc86407a0
sub dword [ebp - 0x18], 0xc86407a0
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0xb45037c9
add eax, 0x7551087b
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x373c3
push 0
call eax
mov ecx, 0x5a17cd86
add ecx, 0xa5e86e5b
xor edi, edi
add edi, eax
mov ebx, 0x68efde9b
add ebx, 0xc0b24165
add ebx, dword [ebp - 0x14]
mov edx, 0xd44dfda3
sub dword [ebp - 0xc], esi
mov esi, dword [ebx]
sub dword [ebp - 0x10], 0x35f1958f
xor esi, edx
sub dword [ebp - 0x10], 0xbb121b5d
mov dword [edi], esi
xor dword [ebp - 8], 0x2a2185f8
add edi, 0x673b2830
sub edi, 0x673b282c
add ebx, 0x88d0018b
add ebx, 0x772ffe79
loop 0x29a079cf
add eax, 0x30a2d3f6
sub eax, 0x30a1f19f
mov ebx, eax
add eax, 5
mov ecx, 0x7cd610ff
add ecx, 0xacc9ef01
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x402307
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402346
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402346
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402346
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402346
cmp dword [ecx + 0x74], 0xe
jbe 0x402346
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10006089
Capabilities:
Resume thread

Disassembly:
push 0x10
mov eax, 0x10011324
call fcn.10010dbc
mov ebx, ecx
mov dword [ebp - 0x18], ebx
cmp byte [ebx + 4], 0
jne 0x100061ed
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp eax, dword [ebx]
jne 0x100061ed
push 0x1000334a
push 0xd008
call fcn.100062eb
mov edi, eax
mov dword [ebp - 0x1c], edi
pop ecx
pop ecx
test edi, edi
je 0x100061e6
push 0xc000
xor ebx, ebx
push ebx
push edi
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xc000], ebx
lea eax, [edi + 0xc004]
push 0x1000
push ebx
push eax
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xd004], ebx
test edi, edi
je 0x100061e6
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
lea ecx, [ebp - 0x1c]
call fcn.100062eb
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.100062eb
mov esi, eax
push esi
push 0x10003028
mov dword [ebp - 0x10], esi
call fcn.100062eb
pop ecx
pop ecx
test esi, esi
jne 0x1000619a
mov ecx, edi
call fcn.100062eb
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100061fa
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10014250]
mov ecx, dword [ebp - 0x14]
call esi
call fcn.100062eb
test eax, eax
je 0x10006190
jg 0x10006175
mov esi, eax
mov dword [ebp - 0x10], eax
jmp 0x10006181
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x10], esi
push esi
push 0x10003050
call fcn.100062eb
pop ecx
pop ecx
jmp 0x1000619a
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov byte [eax + 4], 1
lea ecx, [ebp - 0x1c]
call fcn.1000704c
lea eax, [edi + 0xc000]
mov dword [ebp - 0x1c], eax
cmp dword [eax], ebx
jbe 0x100061ce
lea esi, [edi + 8]
test byte [esi - 4], 1
je 0x100061c3
push dword [esi]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov eax, dword [ebp - 0x1c]
inc ebx
add esi, 0xc
cmp ebx, dword [eax]
jb 0x100061b2
mov esi, dword [ebp - 0x10]
mov ecx, edi
call fcn.100062eb
push 0xd008
push edi
call fcn.100062eb
pop ecx
pop ecx
mov eax, esi
jmp 0x100061f2
mov eax, 0x8007000e
jmp 0x100061f2
mov eax, 0x800710dd
call fcn.10010d85
ret 4
call fcn.100062eb
int3

Function at 0x100062eb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x100062fa
pop dword [ebp - 0x10]
mov eax, 0x784d9277
sub eax, 0x684d2f7d
sub dword [ebp - 0x10], eax
push 0x40
push 0x1000
push 0x38164
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x10]
call dword [eax]
mov ecx, 0xfc7034a3
add ecx, 0x3900f9f
xor edi, edi
add edi, eax
mov esi, 0xfd461690
add esi, 0x12bb6f70
add esi, dword [ebp - 0x10]
mov ebx, 0x3a1dfd97
add ebx, 0x523557
xor dword [ebp - 4], 0xc6e7d36c
mov edx, dword [esi]
mov dword [ebp - 4], 0x95371564
sub edx, ebx
mov dword [edi], edx
xor dword [ebp - 8], 0x53fb110f
add edi, 4
add esi, 0x9f08cba6
sub esi, 0x9f08cba2
loop 0x10006356
add eax, 0x7cbfd8a6
sub eax, 0x7cbed4cb
mov ebx, eax
add eax, 0x75cc8b26
sub eax, 0x75cc8b21
mov ecx, 0x362abc9b
add ecx, 0xd9d54365
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x6c5415c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test byte [0x6c543470], 1
jne 0x6c5415d0
xor eax, eax
ret 4
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x20
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], str.__ld_:_stub._n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.OleRevertServerDoc16
mov dword [esp + 4], 0x6c543470
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
xor eax, eax
leave
ret 4

Function at 0x6c541610
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test byte [0x6c543470], 1
jne 0x6c541620
xor eax, eax
ret 4
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x20
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], str.__ld_:_stub._n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.OleSavedServerDoc16
mov dword [esp + 4], 0x6c543470
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
xor eax, eax
leave
ret 4

Function at 0x6c5416f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x6c54174b
cmp byte [esi + ebx - 1], 0xa
je 0x6c54171f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x6c5470c4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x40f060
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x697470], eax
xor eax, eax
nop
add eax, 1
mov ecx, dword [eax*4 + 0x69746c]
mov edx, ecx
shr edx, 0x1e
xor edx, ecx
imul edx, edx, 0x6c078965
add edx, eax
mov dword [eax*4 + 0x697470], edx
cmp eax, 0x26f
jl 0x40f068
mov dword [0x5f3040], 0x270
ret

Function at 0x40f0a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov eax, 0xffffffff
mov esi, esi
add eax, 1
mov ecx, dword [eax*4 + 0x697474]
mov ebx, dword [eax*4 + 0x697470]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
shr ebx, 1
xor edx, ebx
xor edx, dword [eax*4 + 0x697aa4]
mov dword [eax*4 + 0x697470], edx
cmp eax, 0xe2
jl 0x40f0a8
mov eax, 0xe2
lea esi, [esi]
add eax, 1
mov ecx, dword [eax*4 + 0x697474]
mov ebx, dword [eax*4 + 0x697470]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
shr ebx, 1
xor edx, ebx
xor edx, dword [eax*4 + 0x6970e4]
mov dword [eax*4 + 0x697470], edx
cmp eax, 0x26e
jl 0x40f0f8
mov edx, dword [0x697470]
mov ecx, dword [0x697e2c]
mov eax, edx
and eax, 1
neg eax
and eax, 0x9908b0df
and ecx, 0x80000000
and edx, 0x7fffffff
or ecx, edx
shr ecx, 1
xor eax, ecx
xor eax, dword [0x697aa0]
mov dword [0x697e2c], eax
mov dword [0x5f3040], 0
pop ebx
ret

Function at 0x40f180
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov ebx, dword [0x5f3040]
add dword [0x5f3040], 1
mov eax, dword [0x696020]
cmp eax, dword [0x5f2790]
jne 0x40f1a3
cmp ebx, 0x271
jb 0x40f1c4
mov eax, dword [0x696020]
call fcn.0040f060
not dword [0x696020]
mov eax, dword [0x696020]
mov dword [0x5f2790], eax
mov ebx, 0x270
mov esi, esi
cmp ebx, 0x270
jne 0x40f1e0
call fcn.0040f0a0
xor ebx, ebx
mov dword [0x5f3040], 1
lea esi, [esi]
mov edx, dword [ebx*4 + 0x697470]
mov eax, edx
shr eax, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor edx, eax
mov ecx, edx
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, edx
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop ebx
ret
Function at 0x410d40
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x5f24d0]
cmp ax, 0xcb
je 0x410e4c
cmp ax, 0xcc
je 0x410e4c
lea esi, [esi]
mov edx, dword [0x698070]
test edx, edx
je 0x410d75
mov eax, dword [0x697f20]
call edx
mov ebx, eax
jmp 0x410d7a
mov ebx, 0x697f24
cmp word [0x697f10], 0
jle 0x410da0
mov eax, 0x697ef0
call fcn.00410fb0
mov eax, ebx
call fcn.00410900
mov eax, ebx
call fcn.00410970
lea esi, [esi]
mov edi, dword [ebx]
jmp 0x410dc2
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x410dbd
mov edx, edi
mov eax, ebx
call fcn.0040fd70
jmp 0x410dc0
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x410da8
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x697f10], 0
jle 0x410e4c
mov edx, 0x697e30
mov eax, ebx
call fcn.0040feb0
mov edi, eax
test edi, edi
je 0x410e1c
mov eax, dword [0x697ec4]
mov dword [edi + 0xc], eax
cmp dword [0x697ec4], 0
je 0x410e10
mov eax, dword [0x697ec4]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x697ec4], eax
nop
sub word [0x697f10], 1
cmp word [0x697f10], 0
sete bl
mov eax, 0x697ef0
call fcn.00410fd0
test bl, bl
je 0x410e4c
mov eax, 0x697ef0
call fcn.00410fa0
lea esi, [esi]
pop edi
pop esi
pop ebx
ret
Function at 0x413d70
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
push edi
mov esi, eax
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.00413d60
push ebp
push 0x4154e0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
push 0
push 0
mov eax, esi
test esi, esi
jne 0x413da9
mov eax, 0x6972f0
push eax
call sub.kernel32.dll_GetFullPathNameW
mov ebx, eax
lea edx, [ebx - 1]
lea eax, [ebp - 0xc]
call fcn.0040b840
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x413dcc
mov eax, 0x6972f0
push eax
push ebx
mov eax, esi
test esi, esi
jne 0x413dd9
mov eax, 0x6972f0
push eax
call sub.kernel32.dll_GetFullPathNameW
mov edx, eax
test edx, edx
je 0x413e9e
jmp 0x413df3
sub edx, 1
cmp edx, 3
jbe 0x413e04
mov eax, dword [ebp - 0xc]
cmp word [eax + edx*2 - 2], 0x5c
je 0x413df0
mov eax, ebx
mov edi, 0
sub eax, 1
sbb edi, 0
mov ecx, edx
xor ebx, ebx
cmp edi, ebx
jne 0x413e1d
cmp eax, ecx
je 0x413e28
lea eax, [ebp - 0xc]
call fcn.0040b840
lea esi, [esi]
mov eax, sub.kernel32.dll_SetCurrentDirectoryW
mov edx, dword [ebp - 0xc]
call fcn.00413ca0
mov edx, dword [0x698070]
test edx, edx
je 0x413e48
mov eax, dword [0x697160]
call edx
jmp 0x413e4d
mov eax, 0x697164
cmp word [eax], 0
jne 0x413eaa
mov eax, esi
test esi, esi
je 0x413e5d
mov eax, dword [eax - 4]
cmp eax, 2
jle 0x413eaa
cmp word [esi + 2], 0x3a
jne 0x413eaa
mov word [ebp - 8], 0x3d
mov ax, word [esi]
mov word [ebp - 6], ax
mov word [ebp - 4], 0x3a
mov word [ebp - 2], 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x413e8f
mov eax, 0x6972f0
push eax
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_SetEnvironmentVariableW
lea esi, [esi]
jmp 0x413eaa
mov eax, sub.kernel32.dll_SetCurrentDirectoryW
mov edx, esi
call fcn.00413ca0
mov edx, dword [0x698070]
test edx, edx
je 0x413ebd
mov eax, dword [0x697160]
call edx
jmp 0x413ec2
mov eax, 0x697164
cmp word [eax], 2
jne 0x413ee8
mov edx, dword [0x698070]
test edx, edx
je 0x413edc
mov eax, dword [0x697160]
call edx
jmp 0x413ee1
mov eax, 0x697164
mov word [eax], 3
mov esi, esi
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00413d60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413f20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x20]
push ebx
push esi
push edi
mov byte [ebp - 0x20], al
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.00413f00
push ebp
push 0x4154e0
push dword fs:[eax]
mov dword fs:[eax], esp
test byte [ebp - 0x20], 0xff
je 0x41404a
movzx eax, byte [ebp - 0x20]
sub eax, 0xffffffc0
mov word [ebp - 8], ax
mov word [ebp - 6], 0x3a
mov word [ebp - 4], 0
mov word [ebp - 2], 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov esi, eax
lea edx, [esi - 1]
mov eax, dword [ebp - 0x1c]
call fcn.0040b840
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
test edx, edx
jne 0x413faf
mov edx, 0x6972f0
push edx
push esi
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov ebx, eax
test ebx, ebx
jne 0x414001
call sub.kernel32.dll_GetLastError
call fcn.00404220
lea eax, [ebp - 0x10]
call fcn.0040a420
movzx eax, byte [ebp - 0x20]
sub eax, 0xffffffc0
lea edx, [ebp - 0x14]
call fcn.0040a8c0
mov edx, dword [ebp - 0x14]
mov ecx, 0x616334
lea eax, [ebp - 0x10]
call fcn.0040a750
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.0040b110
jmp 0x414098
mov eax, esi
mov edx, 0
sub eax, 1
sbb edx, 0
mov ecx, ebx
xor edi, edi
cmp edx, edi
jne 0x41401a
cmp eax, ecx
je 0x414024
mov eax, dword [ebp - 0x1c]
mov edx, ebx
call fcn.0040b840
cmp byte [0x5f2750], 0
jne 0x414098
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.0040bde0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.0040b1a0
lea esi, [esi]
jmp 0x414098
push 0
push 0
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
lea edx, [esi - 1]
mov eax, dword [ebp - 0x1c]
call fcn.0040b840
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
test eax, eax
jne 0x41406e
mov eax, 0x6972f0
push eax
push esi
call sub.kernel32.dll_GetCurrentDirectoryW
cmp byte [0x5f2750], 0
jne 0x414098
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.0040bde0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.0040b1a0
mov esi, esi
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.00413f00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414650
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x114]
push ebx
push esi
push edi
mov dword [ebp - 0x10c], 0
mov dword [0x697260], 0
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp + eax - 0x108], 0
mov dword [ebp - 0x110], eax
mov ecx, eax
xor edx, edx
mov eax, ebp
call fcn.00414830
mov eax, dword [ebp - 0x110]
lea ecx, [eax + 1]
mov eax, dword [0x697260]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.00403790
call sub.kernel32.dll_GetCommandLineA
mov dword [0x5f2550], eax
mov ebx, eax
jmp 0x4147f3
add ebx, 1
movzx eax, byte [ebx]
sub eax, 1
cmp eax, 0x20
jb 0x4146d8
cmp byte [ebx], 0
je 0x4147fc
nop
mov byte [ebp - 0x114], 0
mov edi, ebx
mov dword [ebp - 0x110], 0
jmp 0x414753
mov al, byte [ebx]
cmp al, 1
jb 0x414748
sub al, 0x20
jbe 0x414718
sub al, 2
je 0x41472c
jmp 0x414748
mov al, byte [ebp - 0x114]
test al, al
je 0x414758
add dword [ebp - 0x110], 1
jmp 0x414750
cmp byte [ebx + 1], 0x22
je 0x414743
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x414750
add ebx, 1
jmp 0x414750
add dword [ebp - 0x110], 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x414708
test dword [ebp - 0x10c], 0xffffffff
je 0x4147ec
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x10c]
mov eax, ebp
call fcn.00414830
mov byte [ebp - 0x114], 0
mov ebx, edi
mov eax, dword [0x697260]
mov edx, dword [ebp - 0x10c]
mov esi, dword [eax + edx*4]
jmp 0x4147e3
mov al, byte [ebx]
cmp al, 1
jb 0x4147d8
sub al, 0x20
jbe 0x4147a8
sub al, 2
je 0x4147bc
jmp 0x4147d8
mov al, byte [ebp - 0x114]
test al, al
je 0x4147e8
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
jmp 0x4147e0
cmp byte [ebx + 1], 0x22
je 0x4147d3
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x4147e0
add ebx, 1
jmp 0x4147e0
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x414798
mov byte [esi], 0
nop
add dword [ebp - 0x10c], 1
cmp byte [ebx], 0
jne 0x4146db
mov ebx, dword [ebp - 0x10c]
mov dword [0x697250], ebx
lea edx, [ebx + 1]
shl edx, 2
mov eax, 0x697260
call fcn.00410b80
mov eax, dword [0x697260]
mov dword [eax + ebx*4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret