joyce8/EMBER2024-capa huggingface dataset:
Function at 0x463cef
Capabilities:
Encrypt data using rc4 prga

Disassembly:
je 0x463cef
jne 0x463cef
mov dword [esi], 0xb50990
mov dword [esi], 0x10256544
mov bx, word [ecx - 8]
mov byte [ebp - 0xdf], bl
mov eax, 0xf68f3c
push 0x44c3a8
mov byte [0xdf26db], 4
paddw mm2, qword [0x69809130]
mov esi, dword [0xe2b134]
mov ecx, dword [0x11529918]
mov dword [ebp - 0x74], esi
push 0x1022c688
mov dword [esi], 0xad2018
mov dword [ebp - 0x89c], 0
mov dword [esi + 0xc], 0x1118e360
mov eax, 0x106ded78
sahf
fcomp qword [esi + 0x19]
pop eax
mov eax, 0x3cb63bee
loope 0x463a85
cmp al, 0xe1
jb 0x463a83
or byte [eax], 0
add byte [eax], al
mov eax, 4
pop esi
pop ebp
ret
movzx eax, al
cdq
mov ecx, 9
rcr byte [ecx + 0x9b9], 0
idiv ecx
mov ecx, 5
movzx eax, al
mov dword [esi], edx
cdq
je 0x463e17
jne 0x463e17
push 0x100dcc04
push 0x100c6164
cmp dword [0x52aa48], ebx
push 0x100f8c74
push 0x11396dc0
mov dword [esi], 0xa88d90
mov eax, dword [0x1033477c]
push 0xa89858
mov eax, 0x115993ec
add byte [ecx - 0x1dff6497], dh
mov esi, 0xd69730
jmp dword [eax*4 + 0x11394858]
cmp dword [ebp + 0x10], 5
jae 0x463b8d
mov eax, 4
pop ebp
ret
mov edx, dword [ebp + 0xc]
push esi
movzx ecx, byte [edx + 4]
movzx eax, byte [edx + 3]
mov esi, dword [ebp + 8]
shl ecx, 8
or ecx, eax
je 0x463d5d
jne 0x463d5d
call dword [0x4083b4]
imul eax, dword [eax], 0x1000201
push 0xb0c120
mov dword [esi], 0x697dd7a0
cmp ax, 0x5a
push 0x114627a8
push 0x114a0624
mov eax, dword [0x1153d27c]
push 0x100e863c
mov ecx, dword [0x1152a04c]
add byte [eax - 0x5bffbe12], ah
mov dword [0xd78674], ebx
xchg ebx, eax
cmp dword [edi], esi
fbstp tbyte [eax + 0x2c20ccd5]
jecxz 0x463c54
mov al, byte [edx]
jmp 0x463a73
cli
stosd dword es:[edi], eax
pop ecx
mov ebx, 0x685d5e45
fidivr word [0x8dc30046]
dec edx
int3
cmovb ecx, eax
mov dword [esi + 0xc], ecx
je 0x463bf9
jne 0x463bf9
mov dword [edi], 0x4a0978
push 0x4807cc
push 0x100ceb2c
mov eax, dword [0x101f7ce8]
mov eax, 0xfc5f94
fistp word [esi - 0x3333eec4]
cmp dl, byte [esi]
dec edi
sub dword [eax], edi
mov dword [0x4fb4754f], eax
push ebp
mov ebp, esp
jmp 0x463b44
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
mov eax, 0x1000
cmp ecx, eax
je 0x463cb3
jne 0x463cb3
mov edi, dword [esi + 0x77c]
mov ecx, dword [0xd41068]
push 0xee0870
push 0xa6f72c
cmp dword [ebp - 0x58], eax
call dword [0x10018050]
push 0x1142c8e8
push 0x1147e408
mov eax, 0x1159ad30
mov bl, byte [esi + 0x441220]
cmp ebx, dword [esi + 0x50]
push 0xa5dac8
mov byte [edi], 0xdd
mov cl, byte [esi + 0x1b]
push 0xabe8e8
cmp dword [esi + 0x4c], edx
cmp dword [eax + 0x28], 1
add byte [ebx - 0x42ff6aa6], bl
pop ebp
push cs
dec edi
dec esi
mov eax, 0xc7c3c61a
inc ebp
in al, dx
invalid
idiv ecx
mov dword [esi + 8], eax
mov dword [esi + 4], edx
push 0x463b08
ret
Function at 0x499310
Capabilities:
Delete file

Disassembly:
je 0x499e9e
jne 0x499e9e
and dword [eax + 8], 0xff000000
mov eax, dword [eax + 0xe60]
mov edx, dword [0xd05eb0]
lea edx, [ebp + eax*2 - 0xcc]
push 0x9fb248
mov ecx, dword [eax + 6]
cmp ecx, dword [0x415c10]
mov byte [0x52c59c], bl
cmp ax, dx
lea edi, [ecx + 0x389a957a]
dec eax
mov ecx, dword [edi]
test byte [ecx], ch
add al, 0
add byte [eax - 0x2c], ch
lodsd eax, dword [esi]
dec ecx
add bl, al
push 0xd62beb
cmp dword [0x10009100], edi
lea ecx, [edi + 0x718]
mov edi, dword [0xd2b280]
or edi, edx
call dword [0x100360f8]
mov dword [ecx + 0x30], edx
push 0xa07c20
cmp byte [ecx + 0x29], 0
mov eax, 0xb0b50c
push 0x14d
or byte [edx], cl
add byte [ebx - 0x1affb65e], bh
imul eax, dword [ebx + 0x50]
mov dword [esi], 0x697db61c
push 0xa0e624
mov eax, dword [0xbf13d0bd]
mov word [esi], fs
or dword [esi], edi
aaa
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 1
jmp 0x499cf9
ret
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
push 0x49944a
ret
push ebp
mov ebp, esp
push 0xffffffffffffffff
jmp 0x49a382
push esi
push 0x499f96
ret
push 0x4ae988
je 0x49a81a
jne 0x49a81a
lea eax, [ebp - 0x644]
mov dword [0xeaf640], eax
mov eax, 0xbbd
push 0x6978fdb0
push 0x697bc094
push 0xa8c068
fmul dword [esp + 0x1c]
push 0xcf24e0
push 0xec895c
push 0x112f8ce0
push 0x42d300
and esp, ebp
movsb byte es:[edi], byte [esi]
and esi, ebp
daa
dec esp
pop ebp
fnsave dword [esi + 0xd6190cd]
pop esp
push 0xffffffffffffff80
out dx, al
pop ebp
je 0x4999eb
jne 0x4999eb
or edi, dword [edx + 4]
push 0xbd838c
movzx edx, byte [edx + 0x4ba5fc]
mov dword [ebp - 0x584], eax
push 0xcd405a
mov byte [ebp - 0x2f], 0xcc
lea edx, [ebp - 0x1ec]
cmp dword [edx + 0x1000000], 0x20000
push 0x697dfaac
adc eax, 0x38100059
push 0xd99c78
push 0x9b928c
jmp dword [0x4851f4]
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
jmp 0x499f32
Function at 0x4ab76e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5b82f8]
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
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004a4b02
mov dword [ebp - 0x14], eax
cmp dword [0x5ba238], edi
jne 0x4ab85f
push 0x800
push edi
push 0x402d48
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4ab7ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4ab93f
push 0x402d48
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4ab93f
push 0x402d60
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4ab93f
push eax
call ebx
push 0x402d6c
push esi
mov dword [0x5ba238], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x402d7c
push esi
mov dword [0x5ba23c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x402d90
push esi
mov dword [0x5ba240], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5ba248], eax
test eax, eax
je 0x4ab85c
push 0x402dac
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5ba244], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4ab884
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4ab877
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4ab899
push 4
pop eax
jmp 0x4ab941
cmp dword [ebp - 0x14], edi
je 0x4ab899
push dword [0x5ba238]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4ab87e
mov eax, dword [0x5ba244]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x4ab8f7
cmp dword [0x5ba248], esi
je 0x4ab8f7
push eax
call ebx
push dword [0x5ba248]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4ab8f7
test eax, eax
je 0x4ab8f7
call ecx
test eax, eax
je 0x4ab8ec
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 0x4ab8ec
test byte [ebp - 8], 1
jne 0x4ab8f7
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4ab927
mov eax, dword [0x5ba23c]
cmp eax, esi
je 0x4ab924
push eax
call ebx
test eax, eax
je 0x4ab924
call eax
mov edi, eax
test edi, edi
je 0x4ab924
mov eax, dword [0x5ba240]
cmp eax, esi
je 0x4ab924
push eax
call ebx
test eax, eax
je 0x4ab924
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x5ba238]
call ebx
test eax, eax
je 0x4ab93f
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4ab941
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a0ac0
leave
ret
Function at 0x1068d058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1068d1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1068d07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1068d06a
add dl, dl
jne 0x1068d089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1068d0dc
xor eax, eax
add dl, dl
jne 0x1068d096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1068d17d
add dl, dl
jne 0x1068d0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1068d0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1068d0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1068d0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1068d0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1068d075
mov eax, 1
add dl, dl
jne 0x1068d0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1068d0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1068d0e1
sub eax, ebx
mov ebx, 1
jne 0x1068d128
mov ecx, 1
add dl, dl
jne 0x1068d10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1068d119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1068d105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1068d075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1068d13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1068d14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1068d136
cmp eax, 0x7d00
jae 0x1068d16d
cmp eax, 0x500
jb 0x1068d168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1068d075
cmp eax, 0x7f
ja 0x1068d170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1068d075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1068d19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1068d075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401120
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push 0
push 0
mov dword [esp + 0xc], 0
push dword [esi]
call fcn.00409d88
push dword [esi]
lea eax, [esp + 0x1c]
push 2
push 1
push eax
call fcn.00409a1e
mov ax, word [esp + 0x28]
add esp, 0x1c
cmp al, 0x4d
jne 0x4011f2
cmp ah, 0x5a
jne 0x4011f2
push 0
push 0x3c
push dword [esi]
call fcn.00409d88
push dword [esi]
lea eax, [esp + 0x14]
push 1
push 4
push eax
call fcn.00409a1e
mov eax, dword [esp + 0x20]
push 0
add eax, 0x18
push eax
push dword [esi]
call fcn.00409d88
push dword [esi]
lea eax, [esp + 0x38]
push 1
push 2
push eax
call fcn.00409a1e
mov ax, word [esp + 0x44]
add esp, 0x38
cmp al, 0xb
jne 0x4011f2
cmp ah, 1
jne 0x4011b6
mov ecx, 0x98
jmp 0x4011c0
cmp ah, 2
jne 0x4011f2
mov ecx, 0xa8
mov eax, dword [esp + 4]
push 0
add eax, ecx
push eax
push dword [esi]
call fcn.00409d88
push dword [esi]
lea eax, [esp + 0x14]
push 1
push 4
push eax
call fcn.00409a1e
mov eax, dword [esp + 0x20]
add esp, 0x1c
or ecx, 0xffffffff
test eax, eax
cmove eax, ecx
pop esi
pop ecx
ret
or eax, 0xffffffff
pop esi
pop ecx
ret

Function at 0x401220
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [edi], 0
jne 0x401252
lea eax, [edi + 0x68]
push 0x4211f0
push eax
call fcn.004026a0
add esp, 8
mov dword [edi], eax
test eax, eax
jne 0x401252
push str.Cannot_open_archive_file_n
call fcn.00401860
add esp, 4
xor eax, eax
pop edi
ret
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push 0
push dword [ebp + 4]
call sub.WS2_32.dll_ntohl
add eax, dword [edi + 4]
push eax
push dword [edi]
call fcn.00409d88
add esp, 0xc
push dword [ebp + 8]
call sub.WS2_32.dll_ntohl
push eax
call fcn.004096fb
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40129a
push str.Could_not_allocate_read_buffer_n
call fcn.00401860
add esp, 4
xor eax, eax
pop ebp
pop ebx
pop edi
ret
push dword [edi]
push 1
push dword [ebp + 8]
call sub.WS2_32.dll_ntohl
push eax
push ebx
call fcn.00409a1e
add esp, 0x10
cmp eax, 1
jae 0x4012ce
push str.Could_not_read_from_file_n
call fcn.00401860
push ebx
call fcn.004096f6
add esp, 8
xor eax, eax
pop ebp
pop ebx
pop edi
ret
cmp byte [ebp + 0x10], 1
jne 0x401305
push esi
push ebp
push ebx
call fcn.00401030
push ebx
mov esi, eax
call fcn.004096f6
add esp, 0xc
mov ebx, esi
test esi, esi
pop esi
jne 0x401305
lea eax, [ebp + 0x12]
push eax
push str.Error_decompressing__s_n
call fcn.00401860
add esp, 8
xor eax, eax
pop ebp
pop ebx
pop edi
ret
mov eax, dword [edi]
test eax, eax
je 0x40131a
push eax
call fcn.0040977c
add esp, 4
mov dword [edi], 0
pop ebp
mov eax, ebx
pop ebx
pop edi
ret
Function at 0x401320
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push ebp
push esi
call fcn.00401220
push esi
mov ebx, eax
call fcn.00403920
add esp, 0xc
cmp eax, 0xffffffff
jne 0x401348
pop esi
pop ebp
or eax, eax
pop ebx
ret
push edi
lea edi, [ebp + 0x12]
lea eax, [esi + 0x2068]
push edi
push eax
call fcn.00403c10
add esp, 8
mov esi, eax
push dword [ebp + 0xc]
call sub.WS2_32.dll_ntohl
mov ebp, eax
test esi, esi
jne 0x401387
push edi
push str._s_could_not_be_extracted__n
push str.fopen
call fcn.00401840
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push 1
push ebp
push ebx
call fcn.0040a53d
add esp, 0x10
cmp eax, 1
je 0x4013b8
test ebp, ebp
je 0x4013b8
push edi
push str.Failed_to_write_all_bytes_for__s_n
push str.fwrite
call fcn.00401840
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.0040977c
push ebx
call fcn.004096f6
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4013d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x64
mov eax, dword [0x42d008]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
mov ebx, dword [esp + 0x70]
push esi
push edi
mov edi, dword [esp + 0x74]
lea esi, [esp + 0x14]
push 0
add ebx, 0xffffffa0
push ebx
push dword [edi]
call fcn.00409d88
add esp, 0xc
test eax, eax
jne 0x40143d
push dword [edi]
lea eax, [esp + 0x10]
push 1
push 0x60
push eax
call fcn.00409a1e
add esp, 0x10
cmp eax, 1
jb 0x40143d
nop dword [eax]
push 8
push esi
push str.MEI_f_v_n_v
call fcn.004093a0
add esp, 0xc
test eax, eax
je 0x401452
dec esi
lea eax, [esp + 0xc]
cmp esi, eax
jae 0x401420
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00407520
add esp, 0x64
ret
movups xmm0, xmmword [esi]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [edi + 0x20], xmm0
movups xmm0, xmmword [esi + 0x20]
movups xmmword [edi + 0x30], xmm0
movups xmm0, xmmword [esi + 0x30]
movups xmmword [edi + 0x40], xmm0
movups xmm0, xmmword [esi + 0x40]
movups xmmword [edi + 0x50], xmm0
movq xmm0, qword [esi + 0x50]
movq qword [edi + 0x60], xmm0
push dword [edi + 0x18]
call sub.WS2_32.dll_ntohl
lea ecx, [esp + 0xc]
sub esi, ecx
mov ecx, dword [esp + 0x6c]
add esi, ebx
sub esi, eax
xor eax, eax
add esi, 0x58
mov dword [edi + 4], esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00407520
add esp, 0x64
ret
Function at 0x401560
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi], 0
jne 0x401585
lea eax, [esi + 0x68]
push 0x4211f0
push eax
call fcn.004026a0
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x401610
push esi
call fcn.00401120
add esp, 4
cmp eax, 1
jge 0x4015a8
push 2
push 0
push dword [esi]
call fcn.00409d88
push dword [esi]
call fcn.0040a2fa
add esp, 0x10
push eax
push esi
call fcn.004013d0
add esp, 8
cmp eax, 0xffffffff
je 0x401610
push dword [esi + 0x24]
mov dword [esi + 0x406c], 0
call sub.WS2_32.dll_ntohl
push 0
mov dword [0x42d954], eax
push dword [esi + 0x1c]
call sub.WS2_32.dll_ntohl
add eax, dword [esi + 4]
push eax
push dword [esi]
call fcn.00409d88
add esp, 0xc
push dword [esi + 0x20]
call sub.WS2_32.dll_ntohl
push eax
call fcn.004096fb
add esp, 4
mov dword [esi + 8], eax
test eax, eax
jne 0x401615
push str.Could_not_allocate_buffer_for_TOC.
push str.malloc
call fcn.00401840
add esp, 8
or eax, 0xffffffff
pop esi
ret
push dword [esi]
push 1
push dword [esi + 0x20]
call sub.WS2_32.dll_ntohl
push eax
push dword [esi + 8]
call fcn.00409a1e
add esp, 0x10
cmp eax, 1
jae 0x401649
push str.Could_not_read_from_file.
push str.fread
call fcn.00401840
add esp, 8
or eax, 0xffffffff
pop esi
ret
push dword [esi + 0x20]
call sub.WS2_32.dll_ntohl
add eax, dword [esi + 8]
push dword [esi]
mov dword [esi + 0xc], eax
call fcn.00409827
add esp, 4
test eax, eax
je 0x401677
push str.Error_on_file_n.
call fcn.00401860
add esp, 4
or eax, 0xffffffff
pop esi
ret
push esi
call fcn.00401200
add esp, 4
xor eax, eax
pop esi
ret
Function at 0x4037f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x1004
call fcn.00407540
mov eax, dword [0x42d008]
xor eax, esp
mov dword [esp + 0x1000], eax
mov eax, dword [esp + 0x1008]
push ebx
push esi
mov esi, dword [esp + 0x1018]
push edi
mov edi, dword [esp + 0x1018]
push 0x4211f0
push eax
call fcn.004026a0
push esi
push edi
mov ebx, eax
call fcn.00403c10
add esp, 0x10
xor edi, edi
mov esi, eax
test ebx, ebx
je 0x4038ec
push ebx
test esi, esi
je 0x4038f1
call fcn.004097fc
add esp, 4
test eax, eax
jne 0x4038c3
push ebx
push 1
lea eax, [esp + 0x14]
push 0x1000
push eax
call fcn.00409a1e
add esp, 0x10
cmp eax, 0xffffffff
jne 0x403882
push ebx
call fcn.00409827
add esp, 4
test eax, eax
je 0x4038a8
push ebx
jmp 0x4038b8
push esi
push 1
lea eax, [esp + 0x14]
push 0x1000
push eax
call fcn.0040a53d
add esp, 0x10
test eax, eax
jle 0x4038b7
push esi
call fcn.00409827
add esp, 4
test eax, eax
jne 0x4038b7
push ebx
call fcn.004097fc
add esp, 4
test eax, eax
je 0x403858
jmp 0x4038c3
push esi
call fcn.0040fa96
add esp, 4
or edi, 0xffffffff
push ebx
call fcn.0040977c
push esi
call fcn.0040977c
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.00407520
add esp, 0x1004
ret
test esi, esi
je 0x4038f9
push esi
call fcn.0040977c
add esp, 4
mov ecx, dword [esp + 0x100c]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00407520
add esp, 0x1004
ret
Function at 0x403970
Capabilities:
Create directory
Get common file path
Set environment variable

Disassembly:
mov eax, 0x302c
call fcn.00407540
mov eax, dword [0x42d008]
xor eax, esp
mov dword [esp + 0x3028], eax
mov eax, dword [esp + 0x3030]
push ebx
push ebp
mov ebp, dword [esp + 0x303c]
mov dword [esp + 8], eax
push esi
push edi
test ebp, ebp
je 0x4039f6
push 0x42252c
call fcn.00403b60
push ebp
mov ebx, eax
lea eax, [esp + 0x3c]
push 0x1000
push eax
call fcn.00402710
push 0
push 0x42252c
push 0
call fcn.00404980
mov edi, eax
lea eax, [esp + 0x50]
push 0
push eax
push 0
call fcn.00404980
mov esi, eax
push esi
push edi
call fcn.0040e905
push edi
call fcn.004096f6
push esi
call fcn.004096f6
add esp, 0x38
jmp 0x4039fa
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x1038]
push eax
push 0x1000
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
push 0x422530
lea eax, [esp + 0x1c]
push 0x10
push eax
call fcn.00404430
add esp, 0x10
xor esi, esi
nop dword [eax]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x103c]
push eax
call fcn.0040fa7b
mov edi, eax
push edi
call fcn.0040e941
add esp, 0xc
test eax, eax
je 0x403ac2
push edi
call fcn.004096f6
inc esi
add esp, 4
cmp esi, 5
jl 0x403a30
test ebp, ebp
je 0x403abe
push 0
push 0x42252c
push 0
call fcn.00404980
test ebx, ebx
je 0x403aa7
push 0
push ebx
push 0
mov edi, eax
call fcn.00404980
mov esi, eax
push esi
push edi
call fcn.0040e905
push edi
call fcn.004096f6
push esi
call fcn.004096f6
push ebx
call fcn.004096f6
add esp, 0x2c
xor eax, eax
jmp 0x403b38
add esp, 0xc
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.004096f6
add esp, 4
xor eax, eax
jmp 0x403b38
push 0x1000
push edi
push dword [esp + 0x18]
call fcn.00404a10
push edi
call fcn.004096f6
add esp, 0x10
test ebp, ebp
je 0x403b33
push 0
push 0x42252c
push 0
call fcn.00404980
test ebx, ebx
je 0x403b1c
push 0
push ebx
push 0
mov edi, eax
call fcn.00404980
mov esi, eax
push esi
push edi
call fcn.0040e905
push edi
call fcn.004096f6
push esi
call fcn.004096f6
push ebx
call fcn.004096f6
add esp, 0x2c
jmp 0x403b33
add esp, 0xc
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.004096f6
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x3038]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00407520
add esp, 0x302c
ret
Function at 0x403b60
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4004
call fcn.00407540
mov eax, dword [0x42d008]
xor eax, esp
mov dword [esp + 0x4000], eax
mov eax, dword [esp + 0x4008]
push 0
push eax
push 0
call fcn.00404980
add esp, 0xc
lea ecx, [esp]
push 0x2000
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x403bf0
push 0x2000
lea eax, [esp + 0x2004]
push eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
lea eax, [esp + 4]
push eax
push 0
call fcn.00404a10
add esp, 0xc
test eax, eax
je 0x403bf0
cmp byte [eax], 0
je 0x403bf0
push eax
call fcn.0040dff4
add esp, 4
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.00407520
add esp, 0x4004
ret
mov ecx, dword [esp + 0x4000]
xor eax, eax
xor ecx, esp
call fcn.00407520
add esp, 0x4004
ret
Function at 0x403c10
Capabilities:
Create directory

Disassembly:
mov eax, 0x4034
call fcn.00407540
mov eax, dword [0x42d008]
xor eax, esp
mov dword [esp + 0x4030], eax
mov eax, dword [esp + 0x4038]
push esi
mov esi, dword [esp + 0x4040]
push 0x1000
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0040d1c0
push 0x1000
lea eax, [esp + 0x1044]
push esi
push eax
call fcn.0040d1c0
add esp, 0x18
cmp byte [esp + 0x1033], 0
jne 0x403dda
cmp byte [esp + 0x2033], 0
jne 0x403dda
push ebp
lea ebp, [esp + 0x38]
lea ecx, [ebp + 1]
mov al, byte [ebp]
inc ebp
test al, al
jne 0x403c81
push ebx
push edi
lea eax, [esp + 0x1040]
sub ebp, ecx
push 0x421404
push eax
call fcn.0040d2e4
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x403d84
nop dword [eax]
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403cb5
sub ecx, edx
inc ebp
add ebp, ecx
cmp ebp, 0xfff
jae 0x403d69
lea edi, [esp + 0x40]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x403cd2
mov ax, word [0x421404]
mov esi, ebx
mov word [edi], ax
mov al, byte [ebx]
inc ebx
test al, al
jne 0x403ce7
lea edi, [esp + 0x40]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403cf5
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
push 0x421404
rep movsb byte es:[edi], byte [esi]
push 0
call fcn.0040d2e4
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x403d84
push 0x1000
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x2048]
push eax
call fcn.00404980
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x2050]
push eax
call fcn.0040db4d
add esp, 0x14
test eax, eax
jns 0x403cb0
lea eax, [esp + 0x2040]
push eax
call fcn.0040e941
add esp, 4
jmp 0x403cb0
xor eax, eax
pop edi
pop ebx
pop ebp
pop esi
mov ecx, dword [esp + 0x4030]
xor ecx, esp
call fcn.00407520
add esp, 0x4034
ret
push 0x1000
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x2048]
push eax
call fcn.00404980
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x2050]
push eax
call fcn.0040db4d
add esp, 0x14
test eax, eax
jne 0x403dc6
lea eax, [esp + 0x40]
push eax
push str.WARNING:_file_already_exists_but_should_not:__s_n
call fcn.00401860
add esp, 8
lea eax, [esp + 0x40]
push 0x4225d0
push eax
call fcn.004026a0
add esp, 8
jmp 0x403d6b
mov ecx, dword [esp + 0x4034]
xor eax, eax
pop esi
xor ecx, esp
call fcn.00407520
add esp, 0x4034
ret

Function at 0x4040f0
Capabilities:
Set environment variable

Disassembly:
push esi
push edi
push 0
push dword [esp + 0x10]
push 0
call fcn.00404980
add esp, 0xc
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push edi
mov esi, eax
call fcn.004096f6
add esp, 4
mov eax, esi
pop edi
pop esi
ret