joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4299e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1a000]
push edi
or ebp, 0xffffffff
jmp 0x429a02
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x429a09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4299f8
mov eax, 1
add ebx, ebx
jne 0x429a1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x429a10
jne 0x429a2c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x429a10
xor ecx, ecx
sub eax, 3
jb 0x429a40
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x429ab2
mov ebp, eax
add ebx, ebx
jne 0x429a4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x429a58
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x429a7c
inc ecx
add ebx, ebx
jne 0x429a68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x429a5d
jne 0x429a79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x429a5d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x429a9c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x429a8d
jmp 0x4299fe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x429a9c
add edi, ecx
jmp 0x4299fe
pop esi
mov edi, esi
mov ecx, 0x40
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x429aba
cmp byte [edi], 0x19
jne 0x429aba
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 0x429abf
lea edi, [esi + 0x27000]
mov eax, dword [edi]
or eax, eax
je 0x429b2e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x291dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x292a8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x429aec
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x292b0]
or eax, eax
je 0x429b28
mov dword [ebx], eax
add ebx, 4
jmp 0x429b09
call dword [esi + 0x292ac]
mov ebp, dword [esi + 0x292b4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x429b62
sub esp, 0xffffff80
jmp 0x404af0
Function at 0x403770
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x420030]
xor eax, ebp
mov dword [ebp + 0x98], eax
mov eax, dword [ebp + 0xa4]
push ebx
push esi
push edi
mov edi, dword [sym.imp.advapi32.dll_RegEnumKeyA]
mov esi, 0x104
push esi
lea ecx, [ebp - 0x6c]
push ecx
xor ebx, ebx
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xa8]
push ebx
push eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], ebx
call edi
test eax, eax
jne 0x403813
mov eax, dword [ebp - 0x80]
push dword [eax + 8]
inc dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
call fcn.00411e6e
pop ecx
pop ecx
test eax, eax
je 0x4037fc
test ebx, ebx
je 0x4037f0
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.00411e6e
pop ecx
pop ecx
test eax, eax
jle 0x4037fc
push ebx
call fcn.00404730
pop ecx
lea eax, [ebp - 0x6c]
push eax
call fcn.0040470f
pop ecx
mov ebx, eax
push esi
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x74]
push dword [ebp - 0x78]
call edi
test eax, eax
je 0x4037bd
xor edi, edi
cmp ebx, edi
jne 0x403817
xor eax, eax
jmp 0x403883
lea eax, [ebp - 0x70]
push eax
push 0x20019
push edi
push ebx
push dword [ebp - 0x78]
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
push ebx
test eax, eax
je 0x403846
call fcn.00404730
pop ecx
cmp dword [ebp - 0x70], edi
je 0x403813
push dword [ebp - 0x70]
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x403813
call fcn.00404730
pop ecx
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x6c]
push eax
push edi
push edi
push str.JavaHome
push dword [ebp - 0x70]
mov dword [ebp - 0x7c], esi
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x403836
cmp dword [ebp - 0x70], edi
je 0x403879
push dword [ebp - 0x70]
call dword [sym.imp.advapi32.dll_RegCloseKey]
lea eax, [ebp - 0x6c]
push eax
call fcn.0040470f
pop ecx
mov ecx, dword [ebp + 0x98]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004085d9
add ebp, 0x9c
leave
ret
Function at 0x404925
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x214]
sub esp, 0x294
mov eax, dword [0x420030]
xor eax, ebp
mov dword [ebp + 0x210], eax
mov eax, dword [ebp + 0x21c]
push ebx
push esi
push edi
push 0x10
pop edi
mov dword [ebp - 0x78], eax
call fcn.00404792
push 8
mov esi, eax
call fcn.004046c8
mov ebx, eax
pop ecx
lea eax, [ebp + 0xd0]
push eax
push dword [ebp - 0x78]
mov dword [ebp - 0x80], ebx
call dword [sym.imp.kernel32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x404990
mov dword [ebx], eax
lea eax, [ebp + 0xfc]
mov dword [ebx + 4], eax
mov edi, dword [ebx + 4]
test edi, edi
je 0x404997
and dword [ebx + 4], 0
jmp 0x4049ac
xor eax, eax
jmp 0x404a77
lea eax, [ebp - 0x70]
push eax
push dword [ebx]
call dword [sym.imp.kernel32.dll_FindNextFileA]
neg eax
sbb edi, edi
lea eax, [ebp - 0x44]
and edi, eax
test edi, edi
je 0x404a5d
push edi
call fcn.00407d90
pop ecx
cmp eax, 4
jl 0x404983
add eax, edi
cmp byte [eax - 4], 0x2e
jne 0x404983
add eax, 0xfffffffd
push 0x4197ac
push eax
mov dword [ebp - 0x74], eax
call fcn.004085f0
pop ecx
pop ecx
test eax, eax
je 0x4049f2
push 0x4197a8
push dword [ebp - 0x74]
call fcn.004085f0
pop ecx
pop ecx
test eax, eax
jne 0x404983
push 0x3b
push edi
call fcn.00409780
pop ecx
pop ecx
test eax, eax
jne 0x404983
push dword [ebp - 0x78]
call fcn.00407d90
push edi
mov ebx, eax
call fcn.00407d90
mov dword [ebp - 0x74], eax
add eax, ebx
push eax
call fcn.004046c8
lea ecx, [ebx - 1]
push ecx
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], eax
push eax
call fcn.00411e6e
mov eax, dword [ebp - 0x74]
inc eax
push eax
push edi
mov edi, dword [ebp - 0x7c]
lea eax, [edi + ebx - 1]
push eax
call fcn.00411e6e
mov ecx, dword [esi + 4]
add esp, 0x24
inc ecx
call fcn.004047e8
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov ebx, dword [ebp - 0x80]
mov dword [ecx + eax*4], edi
inc dword [esi + 4]
jmp 0x404983
push dword [ebx]
call dword [sym.imp.kernel32.dll_FindClose]
push dword [ebx + 4]
call fcn.00404730
push ebx
call fcn.00404730
pop ecx
pop ecx
mov eax, esi
mov ecx, dword [ebp + 0x210]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004085d9
add ebp, 0x214
leave
ret
Function at 0x407d7a
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x41e210
call fcn.0040d880
xor esi, esi
cmp dword [0x422fe8], esi
jne 0x407c3a
push esi
push esi
push 1
push esi
call dword [sym.imp.kernel32.dll_HeapSetInformation]
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x407c4d
mov dword [ebp - 0x1c], esi
jmp 0x407c83
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x407c48
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x407c48
cmp dword [eax + 0x400074], 0xe
jbe 0x407c48
xor ecx, ecx
cmp dword [eax + 0x4000e8], esi
setne cl
mov dword [ebp - 0x1c], ecx
call fcn.0040d85e
test eax, eax
jne 0x407c94
push 0x1c
call fcn.00411e6e
pop ecx
call fcn.0040d6e3
test eax, eax
jne 0x407ca5
push 0x10
call fcn.00411e6e
pop ecx
call fcn.0040d2f3
mov dword [ebp - 4], esi
call fcn.00411e6e
test eax, eax
jns 0x407cbe
push 0x1b
call fcn.00411e6e
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x422fe4], eax
call fcn.00411e6e
mov dword [0x421270], eax
call fcn.0040105b
test eax, eax
jns 0x407ce4
push 8
call fcn.00411e6e
pop ecx
call fcn.0040cf3b
test eax, eax
jns 0x407cf5
push 9
call fcn.00411e6e
pop ecx
push 1
call fcn.00411e6e
pop ecx
cmp eax, esi
je 0x407d08
push eax
call fcn.00411e6e
pop ecx
mov eax, dword [0x421294]
mov dword [0x421298], eax
push eax
push dword [0x42128c]
push dword [0x421288]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], esi
jne 0x407d35
push eax
call fcn.00411e6e
call fcn.00408d12
jmp 0x407d6a
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.0040d8c5
ret
call fcn.00411e6e
jmp 0x407c19

Function at 0x4085d9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x420030]
jne 0x4085e3
repz ret
jmp fcn.004101ab
Function at 0x411e6e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x411e7d
pop dword [ebp - 0x28]
mov eax, 0x66d05e84
sub eax, 0x668f4007
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x12c5f374
sub dword [ebp - 0x38], 0xc473ae29
mov dword [ebp - 0x34], 0xa22895b1
sub dword [ebp - 0x34], 0x6ff5496c
mov dword [ebp - 0x30], 0xb29f6034
sub dword [ebp - 0x30], 0x66531c06
mov dword [ebp - 0x2c], 0x69027aaf
sub dword [ebp - 0x2c], 0x69027aaf
lea eax, [ebp - 0x38]
push eax
mov eax, 0xf97f9992
add eax, 0x6c1e6be
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0xcf1fdedf
add dword [ebp - 0x38], 0xa5528a77
mov dword [ebp - 0x34], 0xfaaadeee
add dword [ebp - 0x34], 0x46c18287
mov dword [ebp - 0x30], 0xe27b2994
sub dword [ebp - 0x30], 0x7f0bbd28
mov dword [ebp - 0x2c], 0xbefd9ee6
add dword [ebp - 0x2c], 0x4102611a
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0xd48eeb46
sub eax, 0xd44d6afa
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x3e69a
push 0
call eax
mov ecx, 0xfd25839b
add ecx, 0x2dad06a
xor esi, esi
add esi, eax
mov edi, 0x39ad78b4
sub edi, 0x396aa0b4
add edi, dword [ebp - 0x28]
mov ebx, 0x8600e0a4
sub ebx, 0xdce327b3
xor dword [ebp - 0x1c], 0xe9cf67b9
mov edx, dword [edi]
add dword [ebp - 0x18], edi
sub edx, ebx
mov dword [esi], edx
mov dword [ebp - 0xc], 0xb8f6da6f
add esi, 0xc17e77ee
add esi, 0x3e818816
add edi, 0xf61317a4
add edi, 0x9ece860
loop 0x411fa1
add eax, 0x142e7
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x1b5c54f6
sub ecx, 0x1b1c54f6
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x406492
Capabilities:
Encode data using base64

Disassembly:
push 0x10
mov eax, 0x57745c
call fcn.00550d9d
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
mov edi, dword [ebp + 8]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
mov byte [edi], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], 1
mov edi, ebx
test eax, eax
je 0x406620
push 3
pop esi
mov ecx, dword [ebp + 0xc]
dec eax
mov dword [ebp + 0x10], eax
mov al, byte [ecx]
mov byte [ebp + edi - 0x14], al
mov dl, byte [ebp - 0x13]
inc edi
inc ecx
mov dword [ebp + 0xc], ecx
mov ch, byte [ebp - 0x12]
mov cl, byte [ebp - 0x14]
mov byte [ebp - 0xf], ch
mov byte [ebp - 0xd], dl
mov byte [ebp - 0xe], cl
cmp edi, esi
jne 0x406567
mov esi, dword [ebp + 8]
mov al, cl
shr al, 2
mov byte [ebp - 0x18], al
and cl, 3
shl cl, 4
mov al, dl
shr al, 4
add cl, al
mov byte [ebp - 0x17], cl
mov cl, dl
and cl, 0xf
mov al, ch
shr al, 6
shl cl, 2
add cl, al
mov al, ch
and al, 0x3f
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], al
mov edi, ebx
cmp dword [0x5f84e0], 0x10
movzx eax, byte [ebp + edi - 0x18]
mov ecx, 0x5f84cc
cmovae ecx, dword [0x5f84cc]
movzx eax, byte [eax + ecx]
push eax
push 1
mov ecx, esi
call fcn.004044c4
inc edi
cmp edi, 4
jl 0x40652d
mov dl, byte [ebp - 0xd]
mov cl, byte [ebp - 0xe]
mov ch, byte [ebp - 0xf]
push 3
mov edi, ebx
pop esi
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4064cf
mov dword [ebp + 0x10], edi
test edi, edi
je 0x406620
mov eax, edi
cmp edi, esi
jge 0x40659d
cmp eax, esi
jae 0x406629
mov byte [ebp + eax - 0x14], bl
inc eax
cmp eax, esi
jl 0x406585
mov ch, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov al, cl
shr al, 2
mov byte [ebp - 0x18], al
mov al, dl
and cl, 3
shr al, 4
shl cl, 4
add cl, al
and dl, 0xf
mov al, ch
shr al, 6
shl dl, 2
add dl, al
lea eax, [edi + 1]
and ch, 0x3f
mov byte [ebp - 0x17], cl
mov byte [ebp - 0x16], dl
mov byte [ebp - 0x15], ch
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x40660b
mov esi, dword [ebp + 8]
mov edi, eax
cmp dword [0x5f84e0], 0x10
movzx eax, byte [ebp + ebx - 0x18]
mov ecx, 0x5f84cc
cmovae ecx, dword [0x5f84cc]
movzx eax, byte [eax + ecx]
push eax
push 1
mov ecx, esi
call fcn.004044c4
inc ebx
cmp ebx, edi
jl 0x4065da
mov edi, dword [ebp + 0x10]
push 3
pop esi
cmp edi, esi
jge 0x406620
sub esi, edi
mov ecx, dword [ebp + 8]
push 0x3d
push 1
call fcn.004044c4
dec esi
jne 0x406611
mov eax, dword [ebp + 8]
call fcn.00550d6b
ret
call fcn.00551450
int3
Function at 0x407df7
Capabilities:
Create process memory minidump
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x577978
mov eax, dword fs:[0]
push eax
mov eax, 0x10c0
call fcn.005538e0
mov eax, dword [0x5fdc04]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov esi, 0x7fe
push esi
push eax
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push eax
call fcn.0054fea0
xor eax, eax
push esi
push eax
mov word [ebp - 0x1010], ax
lea eax, [ebp - 0x100e]
push eax
call fcn.0054fea0
xor eax, eax
mov word [ebp - 0x1020], ax
lea edi, [ebp - 0x101e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0x18
stosw word es:[edi], ax
lea eax, [ebp - 0x1020]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x1010]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.make_minidump:
call fcn.0041cd88
movzx eax, word [ebp - 0x1014]
push eax
movzx eax, word [ebp - 0x1016]
push eax
movzx eax, word [ebp - 0x1018]
push eax
movzx eax, word [ebp - 0x101a]
push eax
movzx eax, word [ebp - 0x101e]
push eax
movzx eax, word [ebp - 0x1020]
push eax
push str.CrashDump
lea eax, [ebp - 0x1010]
push eax
push str._s_s___4d_02d_02d__02d_02d_02d.dmp
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.004075c9
add esp, 0x30
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x10c0]
call fcn.004014cd
and dword [ebp - 4], 0
push 3
push dword [ebp - 0x10c0]
lea eax, [ebp - 0x10b8]
lea ecx, [ebp - 0x10bc]
mov dword [ebp - 0x10bc], eax
call fcn.004029c2
mov byte [ebp - 4], 1
push dword [ebp - 0x10bc]
lea ecx, [ebp - 0x1038]
call fcn.004016bb
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 0x10
jb 0x407f4b
mov eax, dword [eax]
push eax
call fcn.0041cd88
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1038]
call fcn.00401d18
mov byte [ebp - 4], 0
lea eax, [ebp - 0x10b8]
cmp dword [ebp - 0x10bc], eax
je 0x407f7f
push dword [ebp - 0x10bc]
call fcn.00550ad6
pop ecx
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x407ff0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x10cc], eax
xor eax, eax
push eax
push eax
mov dword [ebp - 0x10c4], eax
xor ecx, ecx
lea eax, [ebp - 0x10cc]
test ebx, ebx
cmove eax, ecx
push eax
push 0x52
push esi
mov dword [ebp - 0x10c8], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.dbghelp.dll_MiniDumpWriteDump
test esi, esi
je 0x407ff0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10c0]
lea ecx, [ecx - 0x10]
call fcn.004032e4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00550d01
leave
ret
Function at 0x4144bd
Capabilities:
Create process on windows

Disassembly:
push 0x2b0
mov eax, 0x57ade0
call fcn.00550e3c
xor esi, esi
mov dword [ebp - 4], esi
push 0x59548c
mov ecx, 0x5ff524
call fcn.0040332b
mov byte [ebp - 4], 1
push 1
push esi
push esi
push dword [ebp + 8]
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 4], esi
jmp 0x4145fc
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.004032e4
call fcn.00550d8e
ret 4
Function at 0x41d505
Capabilities:
Parse credit card information

Disassembly:
push ebx
push esi
mov esi, ecx
xor cl, cl
mov bl, 1
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x41d662
mov edx, 0x10000000
cmp eax, 0x7c
je 0x41d662
cmp eax, 0x29
jne 0x41d53f
cmp dword [esi + 0x10], 0
jne 0x41d662
test dword [esi + 0x50], edx
je 0x41d667
cmp eax, 0x2e
jne 0x41d55a
push 5
lea ecx, [esi + 0x24]
call fcn.0041f6d5
mov ecx, esi
call fcn.0041f724
jmp 0x41d64a
cmp eax, 0x5c
jne 0x41d5b5
mov ecx, esi
call fcn.0041f724
mov eax, dword [esi + 0x50]
and eax, 0x80
je 0x41d58c
cmp byte [esi + 0x48], 0x62
jne 0x41d58c
push 4
lea ecx, [esi + 0x24]
call fcn.0041f6d5
mov ecx, esi
call fcn.0041f724
jmp 0x41d651
test eax, eax
je 0x41d5a9
cmp byte [esi + 0x48], 0x42
jne 0x41d5a9
push 4
lea ecx, [esi + 0x24]
call fcn.0041f6d5
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x41d580
mov ecx, esi
call fcn.0041d66f
jmp 0x41d64a
cmp eax, 0x5b
jne 0x41d5d5
mov ecx, esi
call fcn.0041f724
mov ecx, esi
call fcn.0041db0d
cmp dword [esi + 0x4c], 0x5d
je 0x41d54e
push 4
jmp 0x41d669
cmp eax, 0x28
jne 0x41d5f2
mov ecx, esi
call fcn.0041f724
mov ecx, esi
call fcn.0041fe23
cmp dword [esi + 0x4c], 0x29
mov bl, al
je 0x41d63f
jmp 0x41d667
cmp eax, 0x5e
jne 0x41d5fe
push 2
jmp 0x41d578
cmp eax, 0x24
jne 0x41d60a
push 3
jmp 0x41d578
cmp eax, 0x2a
je 0x41d65e
cmp eax, 0x2b
je 0x41d65e
cmp eax, 0x3f
je 0x41d65e
cmp eax, 0x7b
je 0x41d65e
cmp eax, 0x7d
jne 0x41d628
test dword [esi + 0x50], edx
je 0x41d65a
cmp eax, 0x5d
jne 0x41d632
test dword [esi + 0x50], edx
je 0x41d5ce
movzx eax, byte [esi + 0x48]
push eax
lea ecx, [esi + 0x24]
call fcn.0041cf4f
mov ecx, esi
call fcn.0041f724
test bl, bl
je 0x41d651
mov ecx, esi
call fcn.0041f74d
mov cl, 1
mov bl, cl
jmp 0x41d50d
push 6
jmp 0x41d669
push 0xa
jmp 0x41d669
pop esi
mov al, cl
pop ebx
ret
push 5
call fcn.0057229b
int3
Function at 0x41e920
Capabilities:
Write file on windows

Disassembly:
push 0x28
mov eax, 0x57d3dc
call fcn.00550dd0
mov esi, ecx
mov dword [ebp - 0x2c], esi
xor ebx, ebx
cmp dword [esi + 0x40], ebx
je 0x41ea2e
cmp byte [esi + 0x45], bl
je 0x41ea2e
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x41e958
xor al, al
jmp 0x41ea30
push ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
call fcn.004045b9
mov dword [ebp - 4], ebx
lea eax, [esi + 0x48]
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x34]
mov ecx, dword [ecx + 0x40]
push eax
mov eax, dword [ebp - 0x18]
lea edi, [ebp - 0x28]
cmovae edi, edx
lea esi, [ebp - 0x28]
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
push dword [ebp - 0x30]
call dword [edx + 0x20]
sub eax, ebx
je 0x41e9b9
dec eax
jne 0x41ea11
mov esi, dword [ebp - 0x2c]
jmp 0x41e9bf
mov esi, dword [ebp - 0x2c]
mov byte [esi + 0x45], bl
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x34]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, edx
sub edi, eax
je 0x41e9f7
push dword [esi + 0x50]
cmp ecx, 0x10
push edi
lea eax, [ebp - 0x28]
cmovae eax, edx
push 1
push eax
call fcn.00555c11
add esp, 0x10
cmp edi, eax
jne 0x41ea1a
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp byte [esi + 0x45], 0
je 0x41ea18
test edi, edi
jne 0x41e985
push ebx
push 8
lea ecx, [ebp - 0x28]
call fcn.004044c4
jmp 0x41e97f
dec eax
dec eax
jne 0x41ea1e
inc eax
jmp 0x41ea1c
mov bl, 1
mov al, bl
mov bl, al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401d18
mov al, bl
jmp 0x41ea30
mov al, 1
call fcn.00550d7f
ret
Function at 0x4201d8
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push 0x250
mov eax, 0x57d6bb
call fcn.00550e3c
xor edi, edi
mov dword [ebp - 4], edi
push 0x595544
mov ecx, 0x5ff524
call fcn.0040332b
mov byte [ebp - 4], 1
push ecx
mov ecx, esp
mov dword [ebp - 0x254], esp
lea eax, [ebp + 8]
push eax
call fcn.00401452
mov byte [ebp - 4], 2
lea eax, [ebp - 0x250]
push eax
mov byte [ebp - 4], 1
call fcn.0041c98a
pop ecx
pop ecx
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp + 8]
call fcn.004070db
mov byte [ebp - 4], 4
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x250]
lea ecx, [ecx - 0x10]
call fcn.004032e4
push 0x104
lea eax, [ebp - 0x21c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x234]
call fcn.00405d6e
mov byte [ebp - 4], 5
lea esi, [ebp - 0x234]
cmp dword [ebp - 0x220], 8
cmovae esi, dword [ebp - 0x234]
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x234]
call fcn.00420611
push edi
push dword [eax]
push esi
lea ecx, [ebp - 0x24c]
call fcn.00419dc6
mov byte [ebp - 4], 6
lea eax, [ebp - 0x24c]
cmp dword [ebp - 0x238], 0x10
cmovae eax, dword [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4202fb
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x24c]
call fcn.00401d18
mov byte [ebp - 4], 1
push edi
push 1
lea ecx, [ebp - 0x234]
call fcn.004062e5
mov dword [ebp - 4], 7
jmp 0x4203dd
test al, 0x10
je 0x42033d
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x24c]
call fcn.00401d18
mov byte [ebp - 4], 1
push edi
push 1
lea ecx, [ebp - 0x234]
call fcn.004062e5
mov dword [ebp - 4], 8
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004032e4
mov al, 1
jmp 0x4203ee
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x24c]
call fcn.00401d18
mov byte [ebp - 4], 1
push edi
push 1
lea ecx, [ebp - 0x234]
call fcn.004062e5
mov dword [ebp - 4], edi
jmp 0x4203dd
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x10]
call fcn.004032e4
xor al, al
call fcn.00550d8e
ret

Function at 0x421139
Capabilities:
Get common file path

Disassembly:
push 0x430
mov eax, 0x57d7ad
call fcn.00550e3c
mov esi, dword [ebp + 8]
mov dword [ebp - 0x430], esi
and dword [ebp - 0x42c], 0
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
push str.getTempFilename
mov ecx, 0x5ff524
call fcn.0040332b
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x424]
push eax
push 0
mov edi, 0x593270
push edi
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x428]
call fcn.004014cd
mov byte [ebp - 4], 2
push edi
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x428]
call fcn.00407438
push edi
push 0x595190
lea ecx, [ebp - 0x428]
call fcn.00407438
lea eax, [ebp - 0x428]
push eax
mov ecx, esi
call fcn.00401452
mov dword [ebp - 0x42c], ebx
mov byte [ebp - 4], 3
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x428]
add ecx, 0xfffffff0
call fcn.004032e4
mov eax, esi
jmp 0x4212a0
call fcn.00550d8e
ret