joyce8/EMBER2024-capa huggingface dataset:
Function at 0x533ba9
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa0
call fcn.004b5aa0
mov eax, dword [0x60b1e0]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xa8]
test eax, eax
push ebp
mov ebp, dword [esp + 0xa8]
push esi
mov esi, ecx
jbe 0x533d3c
push ebx
add eax, 0xffffffff
push edi
lea edi, [ebp + 0xc]
shr eax, 3
add ebp, 0x14
add eax, 1
mov dword [esp + 0x18], eax
movzx ebx, byte [esi]
xor eax, eax
mov ah, byte [esi + 1]
add esi, 1
movzx ecx, byte [esi + 1]
add esi, 1
movzx edx, byte [esi + 1]
or ebx, eax
add esi, 1
movzx eax, byte [esi + 1]
shl ecx, 0x10
add esi, 1
or ebx, ecx
xor ecx, ecx
mov ch, byte [esi + 1]
add esi, 1
shl edx, 0x18
or ebx, edx
movzx edx, byte [esi + 1]
or eax, ecx
add esi, 1
movzx ecx, byte [esi + 1]
add esi, 1
shl edx, 0x10
or eax, edx
mov dl, byte [edi]
shl ecx, 0x18
or eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov al, byte [ebp]
and dl, 0xdf
and al, 0xbf
or dl, 0x40
or al, 0x20
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
add esi, 1
mov byte [edi], dl
mov byte [ebp], al
call fcn.004e24c0
lea ecx, [esp + 0x30]
push ecx
push edi
call fcn.004e2640
push 1
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.004fb240
push ebp
call fcn.004e24c0
lea ecx, [esp + 0x48]
push ecx
push ebp
call fcn.004e2640
push 1
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x48]
push eax
call fcn.004fb240
mov eax, dword [esp + 0x50]
xor eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x58]
xor dword [esp + 0x40], edx
xor ecx, ebx
xor ebx, dword [esp + 0x54]
mov dword [esp + 0x44], eax
mov eax, edi
mov byte [eax], bl
mov edx, ebx
add eax, 1
shr edx, 8
add esp, 0x30
mov byte [eax], dl
add eax, 1
add eax, 1
mov edx, ebx
shr edx, 0x10
mov byte [eax - 1], dl
mov edx, dword [esp + 0x14]
add eax, 1
shr ebx, 0x18
mov byte [eax - 1], bl
mov byte [eax], dl
mov ebx, edx
add eax, 1
add eax, 1
shr ebx, 8
mov byte [eax - 1], bl
mov ebx, edx
shr edx, 0x18
shr ebx, 0x10
mov byte [eax], bl
mov byte [eax + 1], dl
mov edx, ecx
shr edx, 8
mov eax, ebp
mov byte [eax], cl
mov byte [eax + 1], dl
add eax, 1
add eax, 1
mov edx, ecx
shr edx, 0x10
mov byte [eax], dl
add eax, 1
shr ecx, 0x18
mov byte [eax], cl
mov ecx, dword [esp + 0x10]
add eax, 1
mov byte [eax], cl
mov edx, ecx
shr edx, 8
add eax, 1
mov byte [eax], dl
mov edx, ecx
add eax, 1
shr edx, 0x10
shr ecx, 0x18
sub dword [esp + 0x18], 1
mov byte [eax], dl
mov byte [eax + 1], cl
jne 0x533bc7
pop edi
pop ebx
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
xor ecx, esp
call fcn.004a4df3
add esp, 0xa0
ret
Function at 0x54b8c0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x88
call fcn.004b5aa0
mov eax, dword [0x60b1e0]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x9c]
push ebx
mov ebx, dword [esp + 0x9c]
push esi
mov esi, dword [esp + 0x94]
mov dword [esp + 8], eax
xor eax, eax
test ebx, ebx
push edi
mov edi, dword [esp + 0x9c]
je 0x54b935
cmp ebx, dword [esi]
je 0x54b92c
test edi, edi
je 0x54b912
cmp dword [esp + 0xa0], eax
jge 0x54b92c
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004a4df3
add esp, 0x88
ret
mov eax, 1
mov dword [esi], ebx
jmp 0x54b93b
mov ebx, dword [esi]
test ebx, ebx
je 0x54b912
test edi, edi
push ebp
je 0x54ba0d
push ebx
call fcn.004e9bc0
mov ebp, eax
add esp, 4
cmp ebp, 0x80
jle 0x54b96b
push str.j____int_sizeof_ctx__key_
push 0x74
push str..cryptohmachmac.c
call fcn.004e7e10
add esp, 0xc
mov eax, dword [esp + 0xa4]
cmp ebp, eax
jge 0x54b9c5
mov ecx, dword [esp + 0x10]
push ecx
lea ebp, [esi + 4]
push ebx
push ebp
call fcn.004e7f90
add esp, 0xc
test eax, eax
je 0x54bac8
mov edx, dword [esp + 0xa4]
push edx
push edi
push ebp
call fcn.004e8140
add esp, 0xc
test eax, eax
je 0x54bac8
lea edi, [esi + 0x4c]
push edi
lea eax, [esi + 0x50]
push eax
push ebp
call fcn.004e8150
add esp, 0xc
test eax, eax
je 0x54bac8
jmp 0x54b9ea
cmp eax, 0x80
ja 0x54bac8
push eax
lea ecx, [esi + 0x50]
push edi
push ecx
call fcn.0049e700
mov edx, dword [esp + 0xb0]
lea edi, [esi + 0x4c]
add esp, 0xc
mov dword [edi], edx
mov edi, dword [edi]
cmp edi, 0x80
je 0x54ba15
mov eax, 0x80
sub eax, edi
push eax
lea ecx, [edi + esi + 0x50]
push 0
push ecx
call fcn.0049bec0
add esp, 0xc
jmp 0x54ba15
test eax, eax
je 0x54bab4
xor eax, eax
jmp 0x54ba20
mov dl, byte [esi + eax + 0x50]
xor dl, 0x36
mov byte [esp + eax + 0x14], dl
add eax, 1
cmp eax, 0x80
jl 0x54ba20
mov eax, dword [esp + 0x10]
push eax
lea ebp, [esi + 0x1c]
push ebx
push ebp
call fcn.004e7f90
add esp, 0xc
test eax, eax
je 0x54bac8
push ebx
call fcn.004e9bc0
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebp
call fcn.004e8140
add esp, 0x10
test eax, eax
je 0x54bac8
xor eax, eax
jmp 0x54ba70
mov dl, byte [esi + eax + 0x50]
xor dl, 0x5c
mov byte [esp + eax + 0x14], dl
add eax, 1
cmp eax, 0x80
jl 0x54ba70
mov eax, dword [esp + 0x10]
push eax
lea ebp, [esi + 0x34]
push ebx
push ebp
call fcn.004e7f90
add esp, 0xc
test eax, eax
je 0x54bac8
push ebx
call fcn.004e9bc0
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebp
call fcn.004e8140
add esp, 0x10
test eax, eax
je 0x54bac8
lea edx, [esi + 0x1c]
push edx
add esi, 4
push esi
call fcn.004e82e0
add esp, 8
test eax, eax
jne 0x54bacc
xor eax, eax
jmp 0x54bad1
mov eax, 1
mov ecx, dword [esp + 0x94]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a4df3
add esp, 0x88
ret
Function at 0x55d850
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp ecx, dword [edi + 4]
jge 0x55d869
mov esi, edi
mov edi, eax
jmp 0x55d86b
mov esi, eax
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jg 0x55d87b
mov eax, ebx
jmp 0x55d885
push eax
push ebx
call fcn.004e0660
add esp, 8
test eax, eax
jne 0x55d88d
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [edi + 4], eax
jle 0x55d8ab
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, dword [edi + 4]
jl 0x55d894
cmp eax, dword [esi + 4]
jge 0x55d8c2
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, dword [esi + 4]
jl 0x55d8b0
mov eax, dword [esi + 4]
test eax, eax
mov dword [ebx + 4], eax
jle 0x55d8e5
mov ecx, dword [ebx]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x55d8e2
sub eax, 1
test eax, eax
jg 0x55d8d2
mov dword [ebx + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret
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.00409f09
push dword [esi]
lea eax, [esp + 0x1c]
push 2
push 1
push eax
call fcn.00409b1e
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.00409f09
push dword [esi]
lea eax, [esp + 0x14]
push 1
push 4
push eax
call fcn.00409b1e
mov eax, dword [esp + 0x20]
push 0
add eax, 0x18
push eax
push dword [esi]
call fcn.00409f09
push dword [esi]
lea eax, [esp + 0x38]
push 1
push 2
push eax
call fcn.00409b1e
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.00409f09
push dword [esi]
lea eax, [esp + 0x14]
push 1
push 4
push eax
call fcn.00409b1e
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 0x420200
push eax
call fcn.00402820
add esp, 8
mov dword [edi], eax
test eax, eax
jne 0x401252
push str.Cannot_open_archive_file_n
call fcn.00401a70
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.00409f09
add esp, 0xc
push dword [ebp + 8]
call sub.WS2_32.dll_ntohl
push eax
call fcn.004097fb
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40129a
push str.Could_not_allocate_read_buffer_n
call fcn.00401a70
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.00409b1e
add esp, 0x10
cmp eax, 1
jae 0x4012ce
push str.Could_not_read_from_file_n
call fcn.00401a70
push ebx
call fcn.004097f6
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.004097f6
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.00401a70
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.0040987c
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.00403a70
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.00403d60
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.004017e0
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.0040a6be
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.004017e0
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.0040987c
push ebx
call fcn.004097f6
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 [0x42c008]
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.00409f09
add esp, 0xc
test eax, eax
jne 0x40143d
push dword [edi]
lea eax, [esp + 0x10]
push 1
push 0x60
push eax
call fcn.00409b1e
add esp, 0x10
cmp eax, 1
jb 0x40143d
nop dword [eax]
push 8
push esi
push str.MEI_f_v_n_v
call fcn.004094a0
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.00407600
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.00407600
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 0x401581
lea eax, [esi + 0x68]
push 0x420200
push eax
call fcn.00402820
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x4015ff
push esi
call fcn.00401120
add esp, 4
cmp eax, 1
jge 0x4015a4
push 2
push 0
push dword [esi]
call fcn.00409f09
push dword [esi]
call fcn.0040a47b
add esp, 0x10
push eax
push esi
call fcn.004013d0
add esp, 8
cmp eax, 0xffffffff
je 0x4015ff
push 0
push dword [esi + 0x1c]
mov dword [esi + 0x406c], 0
call sub.WS2_32.dll_ntohl
add eax, dword [esi + 4]
push eax
push dword [esi]
call fcn.00409f09
add esp, 0xc
push dword [esi + 0x20]
call sub.WS2_32.dll_ntohl
push eax
call fcn.004097fb
add esp, 4
mov dword [esi + 8], eax
test eax, eax
jne 0x401604
push str.Could_not_allocate_buffer_for_TOC.
push str.malloc
call fcn.004017e0
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.00409b1e
add esp, 0x10
cmp eax, 1
jae 0x401638
push str.Could_not_read_from_file.
push str.fread
call fcn.004017e0
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.00409927
add esp, 4
test eax, eax
je 0x401666
push str.Error_on_file_n.
call fcn.00401a00
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 0x403940
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x1004
call fcn.00407620
mov eax, dword [0x42c008]
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 0x420200
push eax
call fcn.00402820
push esi
push edi
mov ebx, eax
call fcn.00403d60
add esp, 0x10
xor edi, edi
mov esi, eax
test ebx, ebx
je 0x403a3c
push ebx
test esi, esi
je 0x403a41
call fcn.004098fc
add esp, 4
test eax, eax
jne 0x403a13
push ebx
push 1
lea eax, [esp + 0x14]
push 0x1000
push eax
call fcn.00409b1e
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4039d2
push ebx
call fcn.00409927
add esp, 4
test eax, eax
je 0x4039f8
push ebx
jmp 0x403a08
push esi
push 1
lea eax, [esp + 0x14]
push 0x1000
push eax
call fcn.0040a6be
add esp, 0x10
test eax, eax
jle 0x403a07
push esi
call fcn.00409927
add esp, 4
test eax, eax
jne 0x403a07
push ebx
call fcn.004098fc
add esp, 4
test eax, eax
je 0x4039a8
jmp 0x403a13
push esi
call fcn.0040f346
add esp, 4
or edi, 0xffffffff
push ebx
call fcn.0040987c
push esi
call fcn.0040987c
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.00407600
add esp, 0x1004
ret
test esi, esi
je 0x403a49
push esi
call fcn.0040987c
add esp, 4
mov ecx, dword [esp + 0x100c]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00407600
add esp, 0x1004
ret
Function at 0x403ac0
Capabilities:
Create directory
Get common file path
Set environment variable

Disassembly:
mov eax, 0x302c
call fcn.00407620
mov eax, dword [0x42c008]
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 0x403b46
push 0x421544
call fcn.00403cb0
push ebp
mov ebx, eax
lea eax, [esp + 0x3c]
push 0x1000
push eax
call fcn.00402890
push 0
push 0x421544
push 0
call fcn.00404a40
mov edi, eax
lea eax, [esp + 0x50]
push 0
push eax
push 0
call fcn.00404a40
mov esi, eax
push esi
push edi
call fcn.0040e1b5
push edi
call fcn.004097f6
push esi
call fcn.004097f6
add esp, 0x38
jmp 0x403b4a
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 0x421548
lea eax, [esp + 0x1c]
push 0x10
push eax
call fcn.00404580
add esp, 0x10
xor esi, esi
nop dword [eax]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x103c]
push eax
call fcn.0040f32b
mov edi, eax
push edi
call fcn.0040e1f1
add esp, 0xc
test eax, eax
je 0x403c12
push edi
call fcn.004097f6
inc esi
add esp, 4
cmp esi, 5
jl 0x403b80
test ebp, ebp
je 0x403c0e
push 0
push 0x421544
push 0
call fcn.00404a40
test ebx, ebx
je 0x403bf7
push 0
push ebx
push 0
mov edi, eax
call fcn.00404a40
mov esi, eax
push esi
push edi
call fcn.0040e1b5
push edi
call fcn.004097f6
push esi
call fcn.004097f6
push ebx
call fcn.004097f6
add esp, 0x2c
xor eax, eax
jmp 0x403c88
add esp, 0xc
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.004097f6
add esp, 4
xor eax, eax
jmp 0x403c88
push 0x1000
push edi
push dword [esp + 0x18]
call fcn.00404ad0
push edi
call fcn.004097f6
add esp, 0x10
test ebp, ebp
je 0x403c83
push 0
push 0x421544
push 0
call fcn.00404a40
test ebx, ebx
je 0x403c6c
push 0
push ebx
push 0
mov edi, eax
call fcn.00404a40
mov esi, eax
push esi
push edi
call fcn.0040e1b5
push edi
call fcn.004097f6
push esi
call fcn.004097f6
push ebx
call fcn.004097f6
add esp, 0x2c
jmp 0x403c83
add esp, 0xc
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.004097f6
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x3038]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00407600
add esp, 0x302c
ret
Function at 0x403cb0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4004
call fcn.00407620
mov eax, dword [0x42c008]
xor eax, esp
mov dword [esp + 0x4000], eax
mov eax, dword [esp + 0x4008]
push 0
push eax
push 0
call fcn.00404a40
add esp, 0xc
lea ecx, [esp]
push 0x2000
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x403d40
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.00404ad0
add esp, 0xc
test eax, eax
je 0x403d40
cmp byte [eax], 0
je 0x403d40
push eax
call fcn.0040d8a4
add esp, 4
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.00407600
add esp, 0x4004
ret
mov ecx, dword [esp + 0x4000]
xor eax, eax
xor ecx, esp
call fcn.00407600
add esp, 0x4004
ret
Function at 0x403d60
Capabilities:
Create directory

Disassembly:
mov eax, 0x4034
call fcn.00407620
mov eax, dword [0x42c008]
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.0040ca60
push 0x1000
lea eax, [esp + 0x1044]
push esi
push eax
call fcn.0040ca60
add esp, 0x18
cmp byte [esp + 0x1033], 0
jne 0x403f2a
cmp byte [esp + 0x2033], 0
jne 0x403f2a
push ebp
lea ebp, [esp + 0x38]
lea ecx, [ebp + 1]
mov al, byte [ebp]
inc ebp
test al, al
jne 0x403dd1
push ebx
push edi
lea eax, [esp + 0x1040]
sub ebp, ecx
push 0x42041c
push eax
call fcn.0040cb8a
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x403ed4
nop dword [eax]
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403e05
sub ecx, edx
inc ebp
add ebp, ecx
cmp ebp, 0xfff
jae 0x403eb9
lea edi, [esp + 0x40]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x403e22
mov ax, word [0x42041c]
mov esi, ebx
mov word [edi], ax
mov al, byte [ebx]
inc ebx
test al, al
jne 0x403e37
lea edi, [esp + 0x40]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403e45
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
push 0x42041c
rep movsb byte es:[edi], byte [esi]
push 0
call fcn.0040cb8a
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x403ed4
push 0x1000
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x2048]
push eax
call fcn.00404a40
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x2050]
push eax
call fcn.0040d3f3
add esp, 0x14
test eax, eax
jns 0x403e00
lea eax, [esp + 0x2040]
push eax
call fcn.0040e1f1
add esp, 4
jmp 0x403e00
xor eax, eax
pop edi
pop ebx
pop ebp
pop esi
mov ecx, dword [esp + 0x4030]
xor ecx, esp
call fcn.00407600
add esp, 0x4034
ret
push 0x1000
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x2048]
push eax
call fcn.00404a40
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x2050]
push eax
call fcn.0040d3f3
add esp, 0x14
test eax, eax
jne 0x403f16
lea eax, [esp + 0x40]
push eax
push str.WARNING:_file_already_exists_but_should_not:__s_n
call fcn.00401a70
add esp, 8
lea eax, [esp + 0x40]
push 0x4215e8
push eax
call fcn.00402820
add esp, 8
jmp 0x403ebb
mov ecx, dword [esp + 0x4034]
xor eax, eax
pop esi
xor ecx, esp
call fcn.00407600
add esp, 0x4034
ret

Function at 0x404240
Capabilities:
Set environment variable

Disassembly:
push esi
push edi
push 0
push dword [esp + 0x10]
push 0
call fcn.00404a40
add esp, 0xc
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push edi
mov esi, eax
call fcn.004097f6
add esp, 4
mov eax, esi
pop edi
pop esi
ret
Function at 0x404270
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x2068
call fcn.00407620
mov eax, dword [0x42c008]
xor eax, esp
mov dword [esp + 0x2064], eax
mov eax, dword [esp + 0x206c]
push 0x1000
push eax
lea eax, [esp + 0x6c]
mov dword [esp + 8], 0
push eax
call fcn.00404a40
push 1
push 0x16
call fcn.0040edc0
push 1
push 2
call fcn.0040edc0
push 1
push 0xf
call fcn.0040edc0
push 1
push 0x15
call fcn.0040edc0
add esp, 0x2c
mov dword [esp + 4], 0xc
lea eax, [esp + 0x20]
mov dword [esp + 8], 0
mov dword [esp + 0xc], 1
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, 1
mov dword [esp + 0x24], 0
push 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x50], 0x101
mov word [esp + 0x54], ax
call fcn.0040a7de
push eax
call fcn.0040decc
push eax
call fcn.0040e909
push 1
mov dword [esp + 0x68], eax
call fcn.0040a7de
push eax
call fcn.0040decc
push eax
call fcn.0040e909
push 2
mov dword [esp + 0x78], eax
call fcn.0040a7de
push eax
call fcn.0040decc
push eax
call fcn.0040e909
add esp, 0x24
mov dword [esp + 0x60], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0
push 1
push 0
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4043c7
push 0xffffffffffffffff
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp]
mov ecx, dword [esp + 0x2064]
xor ecx, esp
call fcn.00407600
add esp, 0x2068
ret
push str.Error_creating_child_process__n
push 0x42160c
call fcn.004018f0
mov ecx, dword [esp + 0x206c]
add esp, 8
xor ecx, esp
or eax, 0xffffffff
call fcn.00407600
add esp, 0x2068
ret
Function at 0x41244f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004122ce

Function at 0x41682b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416199

Function at 0x416836
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004163d4