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

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x135000]
push edi
jmp 0x65490a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x654911
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x654900
mov eax, 1
add ebx, ebx
jne 0x654923
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x654934
jne 0x654953
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x654953
dec eax
add ebx, ebx
jne 0x654940
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x654918
add ebx, ebx
jne 0x65494f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6549a5
xor ecx, ecx
sub eax, 3
jb 0x65496b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6549da
sar eax, 1
mov ebp, eax
jmp 0x654976
add ebx, ebx
jne 0x654976
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x654944
inc ecx
add ebx, ebx
jne 0x654984
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x654944
add ebx, ebx
jne 0x654991
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x654986
jne 0x6549a2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x654986
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6549c4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6549b6
jmp 0x654906
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6549c4
add edi, ecx
jmp 0x654906
pop esi
mov edi, esi
mov ecx, 0x42fa
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6549e2
cmp byte [edi], 0x24
jne 0x6549e2
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 0x6549e7
lea edi, [esi + 0x251000]
mov eax, dword [edi]
or eax, eax
je 0x654a5f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x25b7b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x25b8c8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x654a14
mov ecx, edi
jns 0x654a43
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 + 0x25b8cc]
or eax, eax
je 0x654a59
mov dword [ebx], eax
add ebx, 4
jmp 0x654a31
call dword [esi + 0x25b8dc]
mov ebp, dword [esi + 0x25b8d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x654a93
sub esp, 0xffffff80
jmp 0x496ed1
Function at 0x401c00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, eax
sub esp, 0x18
push 2
push eax
call fcn.004043e0
add esp, 0x10
test eax, eax
je 0x401c20
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
lea esi, [ebp - 0xc]
push eax
push esi
push 1
push ebx
call fcn.00403d80
add esp, 0x10
test eax, eax
je 0x401c52
mov eax, ebx
call fcn.00401700
sub esp, 0xc
push 0x4a6374
call fcn.004015c0
add esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
call fcn.00404560
cmp eax, 0xd
je 0x401cc3
push ecx
push esi
push 3
push ebx
call fcn.00403d80
add esp, 0x10
test eax, eax
je 0x401cf4
mov eax, ebx
call fcn.00401700
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push eax
push 0xb
push 1
push str.__core_file
call sub.msvcrt.dll_fwrite
mov dword [esp], ebx
call fcn.004044a0
add esp, 0x10
test eax, eax
je 0x401cae
push edx
push edx
push eax
push str._invoked_as__s
call fcn.004015c0
add esp, 0x10
sub esp, 0xc
push 0x4a6453
call sub.msvcrt.dll_puts
add esp, 0x10
jmp 0x401c19
sub esp, 0xc
mov eax, dword [ebx]
push eax
call fcn.00402950
pop eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.004027f0
pop esi
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.004a3a08
add esp, 0x10
mov dword [0x4d5078], 3
jmp 0x401c19
sub esp, 0xc
mov eax, dword [ebx]
push eax
call fcn.00402950
call fcn.00404560
add esp, 0x10
cmp eax, 0xd
je 0x401d1b
mov dword [0x4d5078], 3
jmp 0x401c19
sub esp, 0xc
mov eax, dword [ebp - 0xc]
push eax
call fcn.004027f0
pop eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.004a3a08
add esp, 0x10
jmp 0x401d0c
Function at 0x403630
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, 0x10
mov dword [eax + 0x10], edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp + 0xc], edx
add eax, 0x40
mov dword [ebp + 8], eax
pop ebp
jmp 0x40c680
push ebp
xor edx, edx
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov edi, dword [eax + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 8]
div edi
mov eax, dword [ebp - 0x10]
lea edx, [eax + edx*4]
mov eax, dword [edx]
test eax, eax
jne 0x40c6b8
jmp 0x40c721
mov edx, eax
mov eax, dword [eax]
test eax, eax
je 0x40c721
cmp esi, eax
jne 0x40c6b0
mov eax, dword [esi]
xor ebx, ebx
mov dword [edx], eax
mov edx, dword [ebp + 0xc]
mov dword [esi + 4], edx
mov ecx, edx
mov al, byte [edx]
inc ecx
test al, al
je 0x40c6ef
xor edx, edx
mov dl, al
lea eax, [edx + ebx]
shl edx, 0x11
add eax, edx
xor edx, edx
mov ebx, eax
shr ebx, 2
xor ebx, eax
mov al, byte [ecx]
mov dl, al
inc ecx
test al, al
jne 0x40c6d5
mov eax, dword [ebp + 0xc]
sub ecx, eax
lea eax, [ecx - 1]
lea edx, [eax + ebx]
shl eax, 0x11
add edx, eax
mov eax, edx
shr eax, 2
xor eax, edx
xor edx, edx
mov dword [esi + 8], eax
div edi
mov eax, dword [ebp - 0x10]
lea edx, [eax + edx*4]
mov eax, dword [edx]
mov dword [esi], eax
mov dword [edx], esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
push eax
push str.bfd_hash_rename
push 0x243
push str._usr_local_google_buildbot_src_android_gcc_toolchain_build_.._binutils_binutils_2.25_bfd_hash.c
call fcn.00404e20
lea esi, [esi]
lea edi, [edi]

Function at 0x4091b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov ebx, ecx
mov edx, dword [ebp + 8]
add ebx, eax
xor edx, 0xffffffff
cmp ecx, ebx
jae 0x4091e0
mov al, byte [ecx]
inc ecx
xor eax, edx
shr edx, 8
and eax, 0xff
xor edx, dword [eax*4 + 0x4a7480]
cmp ecx, ebx
jne 0x4091c8
xor edx, 0xffffffff
pop ebx
mov eax, edx
pop ebp
ret

Function at 0x40a7d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40a814
cld
mov edi, str.default
mov ecx, 8
mov esi, dword [ebp - 0x14]
repe cmpsb byte [esi], byte es:[edi]
jne 0x40a839
mov eax, dword [0x4a440c]
test eax, eax
je 0x40a830
test ebx, ebx
je 0x40a80c
or byte [ebx + 0x2a], 0x80
mov dword [ebx + 4], eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
sub esp, 0xc
push str.GNUTARGET
call sub.msvcrt.dll_getenv
add esp, 0x10
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x40a7e6
jmp 0x40a7f8
mov eax, dword [0x4a4408]
mov eax, dword [eax]
jmp 0x40a801
test ebx, ebx
je 0x40a841
and byte [ebx + 0x2a], 0x7f
mov eax, dword [ebp - 0x14]
call fcn.0040a720
test eax, eax
je 0x40a80c
test ebx, ebx
je 0x40a80c
mov dword [ebx + 4], eax
jmp 0x40a80c
Function at 0x40cae0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
xor ebx, ebx
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], eax
lea edx, [edi + 1]
mov al, byte [edi]
test al, al
je 0x40cb2a
xor ecx, ecx
mov cl, al
lea esi, [esi]
lea eax, [ecx + ebx]
shl ecx, 0x11
add eax, ecx
xor ecx, ecx
mov ebx, eax
shr ebx, 2
xor ebx, eax
mov al, byte [edx]
mov cl, al
inc edx
test al, al
jne 0x40cb10
sub edx, edi
mov ecx, dword [ebp - 0x18]
dec edx
mov eax, edx
mov dword [ebp - 0x14], edx
shl edx, 0x11
add eax, ebx
add eax, edx
xor edx, edx
mov esi, eax
shr esi, 2
xor esi, eax
mov eax, esi
div dword [ecx + 0xc]
mov eax, dword [ecx]
mov ebx, dword [eax + edx*4]
test ebx, ebx
jne 0x40cb5b
jmp 0x40cb7d
mov ebx, dword [ebx]
test ebx, ebx
je 0x40cb7d
cmp esi, dword [ebx + 8]
jne 0x40cb55
push eax
push eax
push edi
mov eax, dword [ebx + 4]
push eax
call sub.msvcrt.dll_strcmp
add esp, 0x10
test eax, eax
jne 0x40cb55
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x1c]
xor ebx, ebx
test eax, eax
je 0x40cb73
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x40cbc9
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x10], eax
jne 0x40cbe1
mov eax, 8
cmp dword [ecx + 4], eax
jae 0x40cbf1
push ebx
push ebx
push eax
push ecx
call fcn.0048f420
add esp, 0x10
mov ebx, eax
test ebx, ebx
je 0x40cc05
push edx
mov eax, dword [ebp - 0x10]
push eax
push edi
push ebx
mov edi, ebx
call sub.msvcrt.dll_memcpy
add esp, 0x10
mov ecx, dword [ebp - 0x18]
mov dword [ebp + 0x10], esi
mov dword [ebp + 0xc], edi
mov dword [ebp + 8], ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0040c740
mov eax, dword [ebp - 0x14]
add eax, 8
and eax, 0xfffffff8
je 0x40cba6
cmp dword [ecx + 4], eax
jb 0x40cba6
mov ebx, dword [ecx]
mov edx, dword [ecx + 4]
add ebx, eax
sub edx, eax
mov dword [ecx], ebx
mov dword [ecx + 4], edx
mov ebx, dword [ecx]
sub ebx, eax
jmp 0x40cbb4
sub esp, 0xc
push 6
call fcn.00404f10
add esp, 0x10
jmp 0x40cb73
Function at 0x421270
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov dword [ebp - 0x44], eax
mov eax, edx
mov dword [ebp - 0x48], edx
shr eax, 4
mov ebx, dword [ebp + 8]
and eax, 0xf
mov byte [ebp - 0x39], 0x3a
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [ebp - 0x38], al
mov eax, edx
and eax, 0xf
mov edx, ecx
shr edx, 8
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [ebp - 0x37], al
movzx eax, dl
shr eax, 4
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [ebp - 0x36], al
mov eax, edx
and eax, 0xf
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [ebp - 0x35], al
movzx eax, cl
shr eax, 4
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [ebp - 0x34], al
mov eax, ecx
and eax, 0xf
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [ebp - 0x33], al
mov eax, ebx
shr eax, 4
and eax, 0xf
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [ebp - 0x32], al
mov eax, ebx
and eax, 0xf
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [ebp - 0x31], al
mov eax, dword [ebp - 0x48]
add ecx, eax
mov eax, dword [ebp - 0x48]
add ecx, edx
test eax, eax
lea esi, [ecx + ebx]
je 0x4213b2
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
inc ebx
lea edi, [ebp - 0x30]
mov al, byte [ebx - 1]
xor edx, edx
shr al, 4
inc ecx
and eax, 0xf
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [edi], al
mov dl, byte [ebx - 1]
inc ebx
mov eax, edx
add esi, edx
and eax, 0xf
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [edi + 1], al
add edi, 2
cmp ecx, dword [ebp - 0x48]
jne 0x421321
lea edx, [edi + 1]
lea ebx, [edi + 2]
mov dword [ebp - 0x40], edx
lea ecx, [edi + 3]
mov edx, esi
xor esi, esi
neg edx
movzx eax, dl
shr eax, 4
and edx, 0xf
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [edi], al
mov al, byte [edx + str.0123456789ABCDEF]
mov edx, dword [ebp - 0x40]
mov byte [edx], al
mov byte [ebx], 0xd
mov byte [ecx], 0xa
mov eax, dword [ebp - 0x48]
mov edi, dword [ebp - 0x44]
push edi
push esi
lea ebx, [eax + eax + 0xd]
lea eax, [ebp - 0x39]
push ebx
push eax
call fcn.0040d920
add esp, 0x10
xor ebx, eax
or ebx, edx
sete al
and eax, 0xff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x2f]
lea edi, [ebp - 0x30]
lea ebx, [ebp - 0x2e]
lea ecx, [ebp - 0x2d]
mov dword [ebp - 0x40], eax
jmp 0x42135d
Function at 0x433350
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov edi, eax
mov eax, dword [eax + 0xa0]
mov esi, edx
mov eax, dword [eax + 0x2c]
and eax, 0xf0000000
cmp eax, 0x50000000
je 0x4334a0
jbe 0x4333d7
cmp eax, 0x80000000
je 0x433480
ja 0x433400
cmp eax, 0x60000000
je 0x43345f
cmp eax, 0x70000000
je 0x433448
nop
lea esi, [esi]
sub esp, 0xc
mov ebx, dword [0x4a4400]
push edi
call fcn.0040a9c0
add esp, 0xc
push eax
push edi
push str._B:_Unknown_architecture__s
call ebx
add esp, 0x10
nop
sub esp, 0xc
push edi
call fcn.00433210
add esp, 0x10
mov dword [esi + 8], eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 0x20000000
je 0x433490
jbe 0x433418
cmp eax, 0x30000000
je 0x43346c
cmp eax, 0x40000000
jne 0x4333a0
mov byte [edx + 2], 5
mov byte [edx + 3], 0
jmp 0x4333c0
cmp eax, 0x90000000
je 0x433431
cmp eax, 0xa0000000
jne 0x4333a0
mov byte [edx + 2], 0x40
mov byte [edx + 3], 6
jmp 0x4333c0
test eax, eax
je 0x43343b
cmp eax, 0x10000000
jne 0x4333a0
mov byte [edx + 2], 2
mov byte [edx + 3], 0
jmp 0x4333c0
mov byte [edx + 2], 0x20
mov byte [edx + 3], 6
jmp 0x4333c0
mov byte [edx + 2], 1
mov byte [edx + 3], 0
jmp 0x4333c0
mov byte [edx + 2], 0x20
cmp byte [edx + 3], 1
ja 0x4333c0
mov byte [esi + 3], 2
jmp 0x4333c0
mov byte [edx + 2], 0x40
mov byte [edx + 3], 1
jmp 0x4333c0
mov byte [edx + 2], 4
mov byte [edx + 3], 0
jmp 0x4333c0
mov byte [edx + 2], 0x40
cmp byte [edx + 3], 1
ja 0x4333c0
jmp 0x433456
mov byte [edx + 2], 3
mov byte [edx + 3], 0
jmp 0x4333c0
mov byte [edx + 2], 0x20
mov byte [edx + 3], 1
jmp 0x4333c0
Function at 0x44a330
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, 0x1505
mov eax, dword [ebp + 8]
mov dl, byte [eax]
test dl, dl
je 0x44a35b
mov ecx, eax
mov eax, ebx
and edx, 0xff
shl eax, 5
add eax, edx
mov dl, byte [ecx + 1]
add ebx, eax
inc ecx
test dl, dl
jne 0x44a344
mov eax, ebx
pop ebx
pop ebp
ret
Function at 0x4842c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 4
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x24]
mov esi, dword [eax + 0x20]
cmp edi, 0
ja 0x4842dc
cmp esi, 1
jbe 0x484316
mov eax, dword [eax + 0x38]
mov ecx, 1
mov dword [ebp - 0x10], eax
xor ebx, ebx
lea esi, [esi]
lea eax, [ecx*4]
mov edx, dword [ebp - 0x10]
add ecx, 1
adc ebx, 0
mov eax, dword [eax + edx]
mov edx, ebx
mov dword [eax + 0x10], 0
mov eax, ecx
xor edx, edi
xor eax, esi
or edx, eax
jne 0x4842f0
pop eax
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4847e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov eax, dword [edi + 0x20]
mov edx, dword [edi + 0x24]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0x30]
mov dword [ebp - 0x14], edx
or eax, dword [edi + 0x34]
jne 0x484872
cmp dword [ebp - 0x14], esi
ja 0x484821
jae 0x48486b
push eax
push eax
push 0xe2
push str._usr_local_google_buildbot_src_android_gcc_toolchain_build_.._binutils_binutils_2.25_bfd_elf_strtab.c
call fcn.00404610
add esp, 0x10
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], esi
cmp dword [ebp - 0x14], esi
jb 0x484856
jbe 0x48485e
mov ecx, dword [edi + 0x38]
mov eax, dword [ecx + ebx*4]
add ebx, 1
adc esi, 0
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x10], 0
mov dword [eax + 0xc], 0
mov eax, dword [ebp - 0x18]
xor edx, esi
xor eax, ebx
or edx, eax
jne 0x484831
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [ebp - 0x18], ebx
ja 0x48482e
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [ebp - 0x18], ebx
jae 0x484821
jmp 0x48480d
push eax
push eax
push 0xe1
push str._usr_local_google_buildbot_src_android_gcc_toolchain_build_.._binutils_binutils_2.25_bfd_elf_strtab.c
call fcn.00404610
add esp, 0x10
jmp 0x484806
Function at 0x488750
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 4
mov ebx, dword [0x4d9d70]
test ebx, ebx
je 0x488770
mov eax, dword [0x4d9d70]
mov ebx, dword [ebp - 4]
leave
ret
push ecx
push ecx
push 0
push 0
call sub.KERNEL32.dll_GetTempPathA
mov ebx, eax
pop eax
test ebx, ebx
pop edx
jne 0x4887a4
mov ecx, dword [0x4d9d70]
test ecx, ecx
jne 0x488761
sub esp, 0xc
push 0x4d0650
call fcn.0048f150
add esp, 0x10
mov dword [0x4d9d70], eax
jmp 0x488761
sub esp, 0xc
push ebx
call fcn.00488030
pop edx
pop ecx
push eax
mov dword [0x4d9d70], eax
push ebx
call sub.KERNEL32.dll_GetTempPathA
pop edx
test eax, eax
pop ecx
jne 0x488783
sub esp, 0xc
mov ebx, dword [0x4d9d70]
push ebx
call fcn.004a3a08
add esp, 0x10
mov dword [0x4d9d70], 0
jmp 0x48878d
Function at 0x490120
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 8], 1
pop ebp
jmp fcn.0048fce0
Function at 0x49bf90
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [sym.imp.msvcrt.dll__osver]
cmp word [eax], 0
jns 0x49bfab
mov eax, dword [0x4d9ff0]
test eax, eax
jne 0x49bfd0
mov ebx, dword [esp + 0x4c]
push ebx
mov ecx, dword [esp + 0x4c]
push ecx
mov edx, dword [esp + 0x4c]
push edx
mov eax, dword [esp + 0x4c]
push eax
call sub.msvcrt.dll_fwrite
add esp, 0x10
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
sub esp, 0xc
mov dword [0x4d9ff0], 0
mov eax, dword [esp + 0x58]
push eax
call sub.msvcrt.dll_fflush
pop ebp
mov eax, dword [esp + 0x58]
mov edi, dword [eax + 0x10]
push edi
call sub.msvcrt.dll__get_osfhandle
pop ebx
pop esi
lea edx, [esp + 0x24]
push edx
push eax
call sub.KERNEL32.dll_GetFileSize
mov dword [esp + 0x20], eax
pop edx
inc eax
pop ecx
jne 0x49c028
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x49c135
mov ebx, dword [esp + 0x10]
sub esp, 0xc
mov edx, dword [esp + 0x58]
mov eax, dword [edx + 0x10]
push eax
call sub.msvcrt.dll__get_osfhandle
push 1
lea edx, [esp + 0x28]
push edx
push ebx
push eax
call sub.KERNEL32.dll_SetFilePointer
mov dword [esp + 0x20], eax
add esp, 0x10
inc eax
jne 0x49c061
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x49c135
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp edx, dword [esp + 0x1c]
jb 0x49bfab
jbe 0x49c140
sub esp, 0xc
mov eax, dword [esp + 0x58]
mov eax, dword [eax + 0x10]
push eax
call sub.msvcrt.dll__get_osfhandle
push 2
push 0
push 0
push eax
call sub.KERNEL32.dll_SetFilePointer
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
sub edi, dword [esp + 0x28]
sbb ebp, dword [esp + 0x2c]
add esp, 0x10
cmp ebp, 0
jl 0x49c115
jle 0x49c110
nop
mov ebx, edi
cmp ebp, 0
jl 0x49c0c2
jle 0x49c14f
mov ebx, 0x200
mov dword [esp + 4], ebx
sub esp, 0xc
mov edx, dword [esp + 0x58]
mov eax, dword [edx + 0x10]
push eax
call sub.msvcrt.dll__get_osfhandle
lea edx, [esp + 0x34]
mov dword [esp], 0
push edx
push ebx
push 0x4d9df0
push eax
call sub.KERNEL32.dll_WriteFile
add esp, 0xc
test eax, eax
je 0x49c160
mov eax, dword [esp + 0x24]
cmp dword [esp + 4], eax
ja 0x49c187
xor edx, edx
sub edi, eax
sbb ebp, edx
cmp ebp, 0
jg 0x49c0b0
jl 0x49c115
cmp edi, 0
ja 0x49c0b0
sub esp, 0xc
mov eax, dword [esp + 0x58]
mov esi, dword [eax + 0x10]
push esi
call sub.msvcrt.dll__get_osfhandle
mov dword [esp], eax
call sub.KERNEL32.dll_FlushFileBuffers
add esp, 0xc
jmp 0x49bfab
add esp, 0x2c
or eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, dword [esp + 0x18]
jbe 0x49bfab
jmp 0x49c079
cmp edi, 0x200
jbe 0x49c0c2
jmp 0x49c0bd
sub esp, 0xc
mov eax, dword [esp + 0x58]
mov ebp, dword [eax + 0x10]
push ebp
call sub.msvcrt.dll__get_osfhandle
push 0
push 0
push 0
push eax
call sub.KERNEL32.dll_SetFilePointer
or eax, 0xffffffff
add esp, 0x10
jmp 0x49bfc7
sub esp, 0xc
mov edx, dword [esp + 0x58]
mov edi, dword [edx + 0x10]
push edi
jmp 0x49c16b
Function at 0x49c480
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x11c
mov ebx, dword [esp + 0x130]
call sub.msvcrt.dll__errno
test ebx, ebx
mov dword [eax], 0
je 0x49c63e
cmp byte [ebx], 0
je 0x49c600
sub esp, 0xc
push ebx
call sub.KERNEL32.dll_GetFileAttributesA
add esp, 0xc
cmp eax, 0xffffffff
je 0x49c62c
test al, 0x10
je 0x49c600
push eax
push 0x104
push ebx
lea edi, [esp + 0x24]
push edi
call sub.msvcrt.dll__fullpath
pop eax
mov ecx, edi
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
xor eax, 0xffffffff
and edx, eax
and edx, 0x80808080
je 0x49c4de
test edx, 0x8080
je 0x49c5f2
add dl, dl
sbb ecx, 3
sub ecx, edi
lea eax, [ecx + 0x233]
push eax
call sub.msvcrt.dll_malloc
add esp, 0x10
mov ebx, eax
test eax, eax
je 0x49c61a
lea esi, [eax + 0x22c]
mov ebp, eax
push eax
push eax
push edi
push esi
call sub.msvcrt.dll_strcpy
add esp, 0x10
cmp byte [ebx + 0x22c], 0
jne 0x49c5a4
sub esp, 0xc
push esi
call sub.msvcrt.dll_strlen
add esp, 0xc
mov word [eax + esi], 0x2a
lea eax, [ebx + 0x120]
mov dword [ebx + 0x224], 0xffffffff
mov dword [ebx + 0x228], 0
mov dword [ebx + 0x118], 0
mov word [ebx + 0x11c], 0
mov word [ebx + 0x11e], 0
push 0x104
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0x10
add esp, 0x11c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
sub esp, 0xc
push esi
call sub.msvcrt.dll_strlen
pop edx
pop ecx
push 0x2f
lea edi, [esi + eax - 1]
push esi
call sub.msvcrt.dll_strrchr
add esp, 0x10
cmp eax, edi
je 0x49c53f
push eax
push eax
push 0x5c
push esi
call sub.msvcrt.dll_strrchr
add esp, 0x10
cmp edi, eax
je 0x49c53f
sub esp, 0xc
push esi
call sub.msvcrt.dll_strlen
add esp, 0x10
mov word [eax + esi], 0x5c
jmp 0x49c53f
shr edx, 0x10
add ecx, 2
jmp 0x49c502
call sub.msvcrt.dll__errno
xor ebp, ebp
mov dword [eax], 0x14
add esp, 0x11c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.msvcrt.dll__errno
xor ebp, ebp
mov dword [eax], 0xc
jmp 0x49c597
call sub.msvcrt.dll__errno
xor ebp, ebp
mov dword [eax], 2
jmp 0x49c597
call sub.msvcrt.dll__errno
xor ebp, ebp
mov dword [eax], 0xe
jmp 0x49c597