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

Disassembly:
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
test edx, edx
je 0x840fe9
jmp fcn.008409d1
xor eax, eax
ret

Function at 0x842631
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov ebx, dword [esp + 0x78]
mov edi, dword [esp + 0x7c]
mov esi, dword [esp + 0x80]
cmp ebx, 0x17
ja 0x84265c
mov eax, 1
mov ecx, ebx
shl eax, cl
test eax, 0x800005
jne 0x842681
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 5
mov dword [esp], esi
call edi
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x74]
mov dword [esp], eax
call fcn.00843071
test eax, eax
je 0x8426b9
mov dword [esp], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 4
call edi
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, ebx
mov dword [esp + 0x20], 0
and ecx, 0xfffffffd
mov dword [esp + 0x1c], ecx
jne 0x8427b1
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x74]
movzx eax, byte [eax]
test al, al
jne 0x8426fb
jmp 0x842709
cmp al, 0x2e
sete al
add edx, 1
movzx eax, al
add dword [esp + 0x1c], eax
movzx eax, byte [edx]
test al, al
je 0x842851
lea ebp, [eax - 0x30]
mov ecx, ebp
cmp cl, 9
jbe 0x8426e1
cmp al, 0x2e
je 0x8426e1
mov eax, dword [esp + 0x74]
lea ebp, [esp + 0x40]
mov dword [esp], 0x17
mov dword [esp + 8], ebp
mov dword [esp + 4], eax
call fcn.0084ab81
test eax, eax
jle 0x8427ba
mov eax, 0x10
mov dword [esp + 0x28], ebp
mov ebx, 0x17
mov word [esp + 0x3a], ax
mov eax, dword [esp + 0x74]
mov dword [esp], eax
call fcn.00849d41
mov dword [esp + 0x30], eax
test eax, eax
je 0x84282a
mov dword [esp], ebx
lea eax, [esp + 0x20]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x34], eax
call fcn.00846101
mov dword [esp + 8], 0
mov word [esp + 0x38], ax
lea eax, [esp + 0x28]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x30]
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], esi
call edi
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call dword [fcn.00966ce4]
jmp 0x842679
cmp ebx, 0x17
je 0x842709
mov dword [esp], 0x20
call dword [fcn.00966cec]
mov ebp, eax
test eax, eax
je 0x84282a
mov eax, dword [esp + 0x70]
mov dword [ebp], eax
mov eax, dword [esp + 0x74]
mov dword [esp], eax
call fcn.00849d41
mov dword [ebp + 0x14], ebx
mov dword [ebp + 4], eax
mov dword [ebp + 0x10], 0xffffffff
test eax, eax
je 0x842821
mov eax, dword [esp + 0x70]
mov dword [ebp + 8], edi
mov edx, 0xb
mov dword [ebp + 0xc], esi
mov eax, dword [eax + 0x34]
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x18], eax
mov eax, ebp
call fcn.008420a1
jmp 0x842679
mov dword [esp], ebp
call dword [fcn.00966ce4]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xf
mov dword [esp], esi
call edi
jmp 0x842679
cmp dword [esp + 0x1c], 3
jne 0x842709
mov eax, dword [esp + 0x74]
lea ebp, [esp + 0x24]
mov dword [esp], 2
mov dword [esp + 8], ebp
mov dword [esp + 4], eax
call fcn.0084ab81
test eax, eax
jle 0x842709
mov edx, 4
mov dword [esp + 0x28], ebp
mov ebx, 2
mov word [esp + 0x3a], dx
jmp 0x842740
Function at 0x8490d1
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, edx
push edi
push esi
xor esi, esi
push ebx
sub esp, 4
movzx edx, byte [eax + 0x100]
mov byte [esp + 3], dl
movzx edx, byte [eax + 0x101]
mov byte [esp + 2], dl
jmp 0x8490fe
mov esi, 1
movzx edx, byte [esp + 3]
lea ebx, [edx + esi + 1]
movzx ebx, bl
add ebx, eax
movzx ecx, byte [ebx]
add byte [esp + 2], cl
movzx edi, byte [esp + 2]
add edi, eax
movzx edx, byte [edi]
mov byte [ebx], dl
mov byte [edi], cl
add cl, byte [ebx]
movzx ecx, cl
movzx ecx, byte [eax + ecx]
xor byte [ebp + esi], cl
cmp esi, 1
jne 0x8490f9
movzx ecx, byte [esp + 3]
movzx edx, byte [esp + 2]
add ecx, 2
mov byte [eax + 0x101], dl
mov byte [eax + 0x100], cl
add esp, 4
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x952fa1
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push edi
push esi
push ebx
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
xor eax, esi
cmp esi, 3
jbe 0x953031
lea edx, [esi - 4]
shr edx, 2
lea ebx, [ecx + edx*4 + 4]
imul edi, dword [ecx], 0x5bd1e995
add ecx, 4
mov edx, edi
shr edx, 0x18
xor edx, edi
imul edi, eax, 0x5bd1e995
imul eax, edx, 0x5bd1e995
xor eax, edi
cmp ecx, ebx
jne 0x952fc1
and esi, 3
cmp esi, 2
je 0x95301a
cmp esi, 3
je 0x953011
cmp esi, 1
je 0x953023
mov edx, eax
pop ebx
pop esi
shr edx, 0xd
pop edi
xor eax, edx
imul eax, eax, 0x5bd1e995
mov edx, eax
shr edx, 0xf
xor eax, edx
ret
movzx edx, byte [ebx + 2]
shl edx, 0x10
xor eax, edx
movzx edx, byte [ebx + 1]
shl edx, 8
xor eax, edx
movzx edx, byte [ebx]
xor eax, edx
imul eax, eax, 0x5bd1e995
jmp 0x952ff5
mov ebx, ecx
jmp 0x952fe6
Function at 0x40f93d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
push edi
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.004311a0
add esp, 0xc
mov dword [ebp - 0x40], esi
mov esi, dword [ebp + 8]
mov edi, 0x44a350
push 0x401998
mov ecx, edi
mov dword [ebp - 0x3c], pe_nt_image_headers32
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x24], 1
call fcn.00427798
push esi
mov ecx, edi
call fcn.00427798
push 0x401288
mov ecx, edi
call fcn.00427798
push 0x401284
mov ecx, edi
call fcn.00427798
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
pop edi
pop esi
test eax, eax
jne 0x40f9d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 4]
call fcn.0040ec48
mov eax, dword [eax]
mov dword [ebp + 8], eax
push 0x442bbc
lea eax, [ebp + 8]
push eax
call fcn.00430478
leave
ret 4

Function at 0x40ffca
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
push edi
push 1
push edi
push edi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x410008
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 8]
call fcn.0040ec48
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
push 0x442bbc
lea eax, [ebp + 0xc]
push eax
call fcn.00430478
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x8003
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x410035
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push esi
jmp 0x40ffed
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x41005c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x410028
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0xc], 0x10
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x410049
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
leave
ret 0xc
Function at 0x410092
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor esi, esi
push esi
push 0x8000000
push 3
push esi
push esi
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4100da
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 0xc]
call fcn.0040ec48
mov eax, dword [eax]
mov dword [ebp + 8], eax
push 0x442bbc
lea eax, [ebp + 8]
push eax
call fcn.00430478
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x4100fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
jmp 0x4100bf
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
ret 8

Function at 0x411050
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x44a7f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x10c]
push 0x104
push eax
call fcn.0043131a
lea ecx, [ebp - 0x10c]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x411086
sub ecx, edx
inc ecx
cmp ecx, 0x105
jae 0x41110c
push edi
mov byte [ebp + ecx - 0x10c], al
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x134]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x12c], eax
mov eax, 0x414
mov word [ebp - 0x124], ax
lea eax, [ebp - 0x134]
push eax
mov dword [ebp - 0x130], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
pop edi
test eax, eax
je 0x411111
push 0x3e3
lea ecx, [ebp - 0x114]
call fcn.0040ec48
mov eax, dword [eax]
mov dword [ebp - 0x110], eax
push 0x442bbc
lea eax, [ebp - 0x110]
push eax
call fcn.00430478
call fcn.0043121a
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043046a
leave
ret 4
Function at 0x41a816
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ecx, ecx
mov dword [ebp - 4], ecx
cmp dword [edi], ecx
jne 0x41a843
lea ecx, [ebp + 0x13]
call fcn.0041a453
mov al, byte [eax]
mov byte [ebp + 0xf], al
push 0x444288
lea eax, [ebp + 0xf]
push eax
call fcn.00430478
mov eax, dword [ebp + 0x10]
sub eax, ecx
je 0x41a88f
dec eax
je 0x41a878
dec eax
je 0x41a864
lea ecx, [ebp + 0x13]
call fcn.0040fd5d
mov al, byte [eax]
mov byte [ebp + 0xf], al
push 0x443194
jmp 0x41a83a
mov edx, dword [ebp + 0xc]
push 2
mov ecx, edx
pop esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41a86f
jmp 0x41a88a
mov edx, dword [ebp + 0xc]
xor esi, esi
mov ecx, edx
inc esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41a883
sub ecx, ebx
inc ecx
jmp 0x41a8a3
push dword [ebp + 0xc]
call fcn.004319e4
pop ecx
push 4
pop esi
mov dword [ebp - 4], eax
lea edx, [ebp - 4]
mov ecx, esi
push ecx
push edx
push esi
push 0
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
test eax, eax
je 0x41a8d5
push eax
lea ecx, [ebp + 0x10]
call fcn.0040ec48
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
push 0x442bbc
lea eax, [ebp + 0xc]
jmp 0x41a83d
leave
ret 0xc

Function at 0x41b6c5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 8], edi
je 0x41b6f1
lea ecx, [ebp - 1]
call fcn.0041a479
mov al, byte [eax]
mov byte [ebp + 0xb], al
push 0x444250
lea eax, [ebp + 0xb]
push eax
call fcn.00430478
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x41b721
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040ec48
mov eax, dword [eax]
mov dword [ebp + 8], eax
push 0x442bbc
lea eax, [ebp + 8]
jmp 0x41b6eb
mov al, byte [ebp + 8]
mov byte [esi + 0x10], al
lea eax, [ebp - 8]
push eax
push edi
push esi
push 0x41b65f
push edi
push edi
mov dword [ebp - 8], edi
call fcn.00433003
add esp, 0x18
push 0xffffffffffffffff
push dword [esi + 0xc]
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], edi
pop edi
pop esi
leave
ret 4
Function at 0x41f219
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
push esi
xor esi, esi
mov dword [ebp - 4], esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x41f229
push esi
sub ecx, edx
lea eax, [ebp - 4]
push eax
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
test eax, eax
jne 0x41f274
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 8]
call fcn.0040ec48
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
push 0x442bbc
lea eax, [ebp + 0xc]
push eax
call fcn.00430478
leave
ret 8
Function at 0x4223dc
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c8
mov eax, dword [0x44a7f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x9c
push edi
lea eax, [ebp - 0x2c0]
push 0
push eax
mov esi, ecx
mov bl, 1
call fcn.004311a0
add esp, 0xc
lea eax, [ebp - 0x2c0]
mov dword [ebp - 0x2c0], edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call edi
test eax, eax
jne 0x42246a
lea eax, [ebp - 0x2c0]
push eax
mov dword [ebp - 0x2c0], 0x94
call edi
test eax, eax
jne 0x422468
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x2c8]
call fcn.0040ec48
mov eax, dword [eax]
mov dword [ebp - 0x2c4], eax
push 0x442bbc
lea eax, [ebp - 0x2c4]
push eax
call fcn.00430478
xor bl, bl
mov eax, dword [ebp - 0x2bc]
imul eax, eax, 0x64
add eax, dword [ebp - 0x2b8]
mov edi, 0x401964
push eax
push edi
mov dword [esi + 0x24], eax
lea eax, [ebp - 0x1c]
push 0xffffffffffffffff
push eax
call fcn.0040f921
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
push 0x40782c
mov ecx, esi
call fcn.00420dfc
mov eax, dword [ebp - 0x2b0]
mov ecx, esi
dec eax
je 0x4224bd
dec eax
je 0x4224b6
push 0x407880
jmp 0x4224c2
push 0x407844
jmp 0x4224c2
push 0x407874
push 0x407850
call fcn.00420dfc
test bl, bl
je 0x4224f9
movzx ecx, word [ebp - 0x22c]
movzx eax, word [ebp - 0x22a]
imul ecx, ecx, 0x64
add ecx, eax
push ecx
push edi
lea eax, [ebp - 0x1c]
push 0xffffffffffffffff
push eax
call fcn.0040f921
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
jmp 0x4224fe
push 0x4012f8
push 0x407890
mov ecx, esi
call fcn.00420dfc
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
push eax
push edi
lea eax, [ebp - 0x1c]
push 0xffffffffffffffff
push eax
call fcn.0040f921
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
push 0x4078b0
mov ecx, esi
call fcn.00420dfc
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push eax
push edi
lea eax, [ebp - 0x1c]
push 0xffffffffffffffff
push eax
call fcn.0040f921
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
push 0x4078d8
mov ecx, esi
call fcn.00420dfc
call dword [0x44a5dc]
test al, al
mov eax, 0x4014a4
jne 0x422570
mov eax, 0x401e44
push eax
push 0x4078fc
mov ecx, esi
call fcn.00420dfc
call dword [0x44a5e4]
sub eax, 0
je 0x4225b8
sub eax, 5
je 0x4225b1
dec eax
je 0x4225aa
sub eax, 3
je 0x4225a3
sub eax, 0xfff6
jne 0x4225c9
push 0x407880
jmp 0x4225bd
push 0x407954
jmp 0x4225bd
push 0x40795c
jmp 0x4225bd
push 0x407968
jmp 0x4225bd
push 0x407920
push 0x407928
mov ecx, esi
call fcn.00420dfc
mov edi, 0x104
push edi
lea eax, [ebp - 0x224]
push eax
push 0
call dword [0x44a5c0]
test eax, eax
je 0x42262a
cmp eax, edi
je 0x42262a
lea eax, [ebp - 0x224]
push eax
push 0x407970
mov ecx, esi
call fcn.00420dfc
push 0x407998
push 0x4079a0
mov ecx, esi
call fcn.0042264e
push 0x401c48
push 0x4079b8
mov ecx, esi
call fcn.0042264e
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043046a
leave
ret
mov esi, 0x44a350
push 0x405eb8
mov ecx, esi
call fcn.00427798
push 0x401284
mov ecx, esi
call fcn.00427798
push 0x7b
jmp 0x422444
Function at 0x42264e
Capabilities:
Get common file path

Disassembly:
push 0x250
mov eax, 0x4412b5
call fcn.00430563
mov edi, ecx
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push 0x103
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x250], eax
lea eax, [ebp - 0x117]
push ebx
push eax
mov dword [ebp - 0x25c], edi
mov byte [ebp - 0x118], bl
call fcn.004311a0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x4226d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x24c]
call fcn.0040ec48
mov eax, dword [eax]
mov dword [ebp - 0x254], eax
push 0x442bbc
lea eax, [ebp - 0x254]
push eax
call fcn.00430478
push 0xffffffffffffffff
push 0x4079dc
lea eax, [ebp - 0x118]
push 0x104
push eax
call fcn.004331e6
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x118]
push 0x104
push eax
call fcn.004331e6
add esp, 0x20
mov esi, 0x44a350
push 0x4079e0
mov ecx, esi
call fcn.00427798
lea eax, [ebp - 0x118]
push eax
mov ecx, esi
call fcn.00427798
push 0x401288
mov ecx, esi
call fcn.00427798
push 0x401284
mov ecx, esi
call fcn.00427798
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x144]
push eax
call fcn.00427b29
cmp dword [ebp - 0x120], 0x10
mov eax, dword [ebp - 0x134]
mov byte [ebp - 4], 1
jae 0x42276a
lea eax, [ebp - 0x134]
lea ecx, [ebp - 0x244]
push 3
mov dword [ebp - 0x248], ecx
push eax
lea ecx, [ebp - 0x248]
call fcn.00412281
push dword [ebp - 0x248]
mov ecx, edi
push dword [ebp - 0x24c]
mov byte [ebp - 4], 2
call fcn.00420dfc
lea eax, [ebp - 0x244]
cmp dword [ebp - 0x248], eax
je 0x4227b5
push dword [ebp - 0x248]
call fcn.0043027c
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x134]
call fcn.0040d887
call fcn.004305bc
ret 8
Function at 0x423624
Capabilities:
Query environment variable

Disassembly:
push 0xe0
mov eax, 0x4414b5
call fcn.0043052d
mov dword [ebp - 0xe4], ecx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push 7
mov dword [ebp - 0xe0], ebx
pop ecx
xor eax, eax
mov dword [esi + 0x14], ecx
mov dword [esi + 0x10], ebx
mov dword [ebp - 0xec], esi
mov word [esi], ax
xor edx, edx
inc edx
mov dword [ebp - 0xe0], edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
mov dword [ebp - 4], edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
push 2
pop eax
push 0x104
mov ecx, esi
mov byte [ebp - 4], al
call fcn.0041e9cb
jmp 0x42372e
movzx edx, word [edi]
cmp edx, 0x24
je 0x4236c3
cmp dword [esi + 0x14], 8
jb 0x4236a4
mov ecx, dword [esi]
jmp 0x4236a6
mov ecx, esi
mov eax, dword [esi + 0x10]
lea eax, [ecx + eax*2]
push edx
push eax
lea eax, [ebp - 0xe8]
push eax
mov ecx, esi
call fcn.00420093
push 2
pop eax
add edi, eax
jmp 0x42372e
push 2
pop eax
add edi, eax
cmp word [edi], bx
je 0x42373b
add edi, eax
cmp word [edi], bx
je 0x42373b
push 0x29
push edi
call fcn.004333db
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x423739
sub eax, edi
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x48]
call fcn.0040da21
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x4236fe
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0xe4]
push eax
call fcn.00421d29
test al, al
je 0x423729
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x42371e
lea eax, [ebp - 0x2c]
push eax
push dword [esi + 0x10]
mov ecx, esi
call fcn.0041ffbf
lea edi, [ebx + 2]
xor ebx, ebx
cmp word [edi], bx
jne 0x423692
jmp 0x42373b
xor ebx, ebx
cmp dword [esi + 0x14], 8
jb 0x423745
mov eax, dword [esi]
jmp 0x423747
mov eax, esi
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
test edi, edi
jne 0x42377b
push 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xdc]
call fcn.0040de6b
push 0x442998
lea eax, [ebp - 0xdc]
push eax
call fcn.00430478
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00431195
cmp dword [esi + 0x14], 8
pop ecx
mov ebx, eax
jb 0x42379e
mov eax, dword [esi]
jmp 0x4237a0
mov eax, esi
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push ebx
mov ecx, esi
call fcn.0040da9d
push ebx
call fcn.00430324
pop ecx
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040dd4b
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.0040dd4b
mov eax, esi
call fcn.004305b0
ret 8
Function at 0x425120
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor eax, eax
push eax
push eax
push 3
push eax
push eax
push SysReAllocString
push dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42516c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 8]
call fcn.0040ec48
mov eax, dword [eax]
mov dword [ebp + 8], eax
push 0x442bbc
lea eax, [ebp + 8]
push eax
call fcn.00430478
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x42514a
lea eax, [esi + 1]
push eax
call fcn.00431195
pop ecx
mov dword [ebx], eax
test eax, eax
jne 0x42519c
mov al, byte [ebp + 0xb]
mov byte [ebp + 0xb], al
push 0x44544c
lea eax, [ebp + 0xb]
jmp 0x425166
push 0
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42514a
mov eax, dword [ebx]
push edi
mov byte [esi + eax], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x42769d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x44a7f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x108]
push eax
xor ebx, ebx
push 0x103
mov esi, ecx
mov edi, ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x4276fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x110]
call fcn.0040ec48
mov eax, dword [eax]
mov dword [ebp - 0x10c], eax
push 0x442bbc
lea eax, [ebp - 0x10c]
push eax
call fcn.00430478
inc edi
push edi
lea eax, [ebp - 0x108]
push eax
push 0x408efc
push 0x103
push esi
call fcn.004277d1
add esp, 0x14
test eax, eax
js 0x42774e
push ebx
push ebx
push 1
push ebx
push ebx
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x42773e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x4276fa
jmp 0x42775d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.0042761d
jmp 0x42775d
push 0x408f18
mov ecx, 0x44a350
call fcn.00427798
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043046a
leave
ret