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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
call fcn.00405118
mov ecx, 2
cmp ecx, eax
jae 0x40590c
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [ebp - 0x18], eax
call fcn.00402754
movzx eax, word [eax]
cmp eax, 0x2f
je 0x4057eb
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [ebp - 0x1c], eax
call fcn.00402754
movzx eax, word [eax]
cmp eax, 0x5c
jne 0x40590c
mov eax, 1
mov ecx, dword [ebp - 0x14]
mov dword [esp], ecx
mov dword [esp + 4], 1
mov dword [ebp - 0x20], eax
call fcn.00402754
movzx eax, word [eax]
cmp eax, 0x2f
je 0x405835
mov eax, 1
mov ecx, dword [ebp - 0x14]
mov dword [esp], ecx
mov dword [esp + 4], 1
mov dword [ebp - 0x24], eax
call fcn.00402754
movzx eax, word [eax]
cmp eax, 0x5c
jne 0x40590c
mov eax, 2
mov ecx, dword [ebp - 0x14]
mov dword [esp], ecx
mov dword [esp + 4], 2
mov dword [ebp - 0x28], eax
call fcn.00402754
movzx eax, word [eax]
cmp eax, 0x2f
je 0x40590c
mov eax, 2
mov ecx, dword [ebp - 0x14]
mov dword [esp], ecx
mov dword [esp + 4], 2
mov dword [ebp - 0x2c], eax
call fcn.00402754
movzx eax, word [eax]
cmp eax, 0x5c
je 0x40590c
mov dword [ebp - 8], 3
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov dword [esp], ecx
mov dword [ebp - 0x30], eax
call fcn.00405118
xor ecx, ecx
mov dl, cl
mov ecx, dword [ebp - 0x30]
cmp ecx, eax
mov byte [ebp - 0x31], dl
jae 0x4058ee
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00402754
mov dl, 1
movzx eax, word [eax]
cmp eax, 0x2f
mov byte [ebp - 0x32], dl
je 0x4058e6
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00402754
movzx eax, word [eax]
cmp eax, 0x5c
sete dl
mov byte [ebp - 0x32], dl
mov al, byte [ebp - 0x32]
xor al, 0xff
mov byte [ebp - 0x31], al
mov al, byte [ebp - 0x31]
test al, 1
jne 0x4058f7
jmp 0x405904
jmp 0x4058f9
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
jmp 0x40588a
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x405955
mov eax, 0x3a
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov dword [esp], edx
mov dword [esp + 4], 0x3a
mov dword [esp + 8], 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ecx
call fcn.00405c80
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x405946
mov dword [ebp - 0xc], 0
jmp 0x40594f
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add esp, 0x48
pop ebp
ret
Function at 0x42c640
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xc
mov al, byte [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov byte [ebp - 5], al
mov al, byte [edx]
mov bl, al
xor bl, byte [ebp + 0xc]
lock cmpxchg byte [edx], bl
jne 0x42c655
mov byte [ebp + 0xc], al
mov al, byte [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov byte [ebp - 0xd], al
mov al, byte [ebp - 0xd]
movzx eax, al
add esp, 0xc
pop ebx
pop ebp
ret

Function at 0x42cbd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xc
mov ax, word [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov word [ebp - 6], ax
mov ax, word [edx]
mov bx, ax
xor bx, word [ebp + 0xc]
lock cmpxchg word [edx], bx
jne 0x42cbe8
mov word [ebp + 0xc], ax
mov ax, word [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov word [ebp - 0xe], ax
mov ax, word [ebp - 0xe]
movzx eax, ax
add esp, 0xc
pop ebx
pop ebp
ret

Function at 0x42d130
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [edx]
mov ebx, eax
xor ebx, dword [ebp + 0xc]
lock cmpxchg dword [edx], ebx
jne 0x42d145
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add esp, 0xc
pop ebx
pop ebp
ret

Function at 0x42e3f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edx
mov edi, dword [ebp - 0x1c]
mov edx, dword [edi + 4]
mov eax, dword [edi]
mov ecx, edx
mov ebx, eax
xor ebx, dword [ebp - 0x18]
xor ecx, dword [ebp - 0x14]
lock cmpxchg8b qword [edi]
jne 0x42e419
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x42edc4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, dword [esp + 0x20]
test edi, edi
je 0x42eef6
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x42eef6
cmp dword [esp + 0x28], 0
je 0x42eef6
mov dword [esp], str.borlndmm
call sub.KERNEL32.DLL_GetModuleHandleA
sub esp, 4
mov esi, eax
test esi, esi
je 0x42eef6
mov ebp, dword [esp + 0x2c]
mov dword [esp], esi
mov dword [esp + 4], str._Borlndmm_SysGetMem_qqri
call sub.KERNEL32.DLL_GetProcAddress
sub esp, 8
mov dword [edi], eax
mov dword [esp], esi
mov dword [esp + 4], str._Borlndmm_SysFreeMem_qqrpv
call sub.KERNEL32.DLL_GetProcAddress
sub esp, 8
mov dword [ebx], eax
mov dword [esp], esi
mov dword [esp + 4], str._Borlndmm_SysReallocMem_qqrpvi
call sub.KERNEL32.DLL_GetProcAddress
sub esp, 8
mov ecx, dword [esp + 0x28]
mov dword [ecx], eax
mov dword [esp], esi
mov dword [esp + 4], str._Borlndmm_SysAllocMem_qqri
call sub.KERNEL32.DLL_GetProcAddress
sub esp, 8
mov dword [ebp], eax
mov dword [esp], esi
mov dword [esp + 4], str._Borlndmm_SysRegisterExpectedMemoryLeak_qqrpi
call sub.KERNEL32.DLL_GetProcAddress
sub esp, 8
mov ecx, dword [esp + 0x30]
mov dword [ecx], eax
mov dword [esp], esi
mov esi, dword [esp + 0x34]
mov dword [esp + 4], str._Borlndmm_SysUnregisterExpectedMemoryLeak_qqrpi
call sub.KERNEL32.DLL_GetProcAddress
sub esp, 8
mov dword [esi], eax
mov eax, dword [edi]
mov dword [0x44a734], eax
cmp dword [ebp], 0
jne 0x42eeaa
mov dword [ebp], 0x42ed94
mov eax, dword [esp + 0x30]
cmp dword [eax], 0
jne 0x42eeb9
mov dword [eax], 0x42ed84
mov ecx, dword [esi]
test ecx, ecx
je 0x42eee6
cmp dword [edi], 0
je 0x42eef6
cmp dword [ebx], 0
je 0x42eef6
mov esi, dword [esp + 0x28]
cmp dword [esi], 0
je 0x42eef6
cmp dword [ebp], 0
je 0x42eef6
cmp dword [eax], 0
je 0x42eef6
xor eax, eax
test ecx, ecx
setne al
jmp 0x42eef8
mov dword [esi], 0x42ed84
mov ecx, 0x42ed84
cmp dword [edi], 0
jne 0x42eec4
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x430478
Capabilities:
Read file via mapping

Disassembly:
push edi
push esi
push eax
call sub.KERNEL32.DLL_GetCurrentProcessId
mov ecx, eax
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [0x447cd6], cl
mov ecx, eax
shr ecx, 4
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [0x447cd5], cl
mov ecx, eax
shr ecx, 8
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [0x447cd4], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [0x447cd3], cl
mov ecx, eax
shr ecx, 0x10
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [0x447cd2], cl
mov ecx, eax
shr ecx, 0x14
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [0x447cd1], cl
mov ecx, eax
shr ecx, 0x18
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [0x447cd0], cl
shr eax, 0x1c
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [0x447ccf], al
sub esp, 4
push str.LocalFastMM_PID________
push 0
push 4
call sub.KERNEL32.DLL_OpenFileMappingA
add esp, 4
mov esi, eax
test esi, esi
je 0x43055b
sub esp, 0xc
push 0
push 0
push 0
push 4
push esi
call sub.KERNEL32.DLL_MapViewOfFile
add esp, 0xc
mov edi, dword [eax]
sub esp, 0xc
push eax
call sub.KERNEL32.DLL_UnmapViewOfFile
push esi
call sub.KERNEL32.DLL_CloseHandle
add esp, 0xc
jmp 0x43055d
xor edi, edi
mov eax, edi
add esp, 4
pop esi
pop edi
ret

Function at 0x430568
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0xc
xor eax, eax
cmp dword [0x44756c], 0x430e3e
jne 0x4305cc
cmp dword [0x447570], fcn.004311c2
jne 0x4305cc
cmp dword [0x447574], fcn.004313ba
jne 0x4305cc
cmp dword [0x447578], fcn.004316d4
jne 0x4305cc
cmp dword [0x44757c], 0x42f508
jne 0x4305cc
cmp dword [0x447580], 0x42f518
jne 0x4305cc
mov ecx, dword [0x44a794]
test ecx, ecx
jne 0x4305cc
call fcn.00430478
mov ecx, eax
xor eax, eax
test ecx, ecx
je 0x4305d0
add esp, 0xc
ret
sub esp, 8
push str.LocalFastMM_PID________
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.KERNEL32.DLL_CreateFileMappingA
add esp, 8
mov dword [0x44a794], eax
sub esp, 0xc
push 0
push 0
push 0
push 2
push eax
call sub.KERNEL32.DLL_MapViewOfFile
add esp, 0xc
mov dword [eax], fcn.00430e3e
sub esp, 0xc
push eax
call sub.KERNEL32.DLL_UnmapViewOfFile
add esp, 0xc
mov eax, 1
add esp, 0xc
ret
Function at 0x4326ac
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov ebx, dword [esp + 0x44]
call fcn.004335f8
test bh, 0xc0
jne 0x4326cf
mov eax, dword [0x4483a0]
mov ecx, 0xc000
and ecx, dword [eax]
or ebx, ecx
mov eax, ebx
and eax, 0x700
add eax, 0xffffff00
mov ecx, eax
shr ecx, 8
mov esi, 3
cmp ecx, 6
ja 0x4326f3
sar eax, 6
mov esi, dword [eax + 0x447d34]
mov edi, dword [esp + 0x40]
test bh, 1
je 0x43271c
lea eax, [esp + 0x4c]
mov dword [esp + 0x20], eax
mov al, byte [0x447d54]
and al, byte [esp + 0x48]
mov eax, 0x80
mov ecx, 1
cmovs ecx, eax
jmp 0x43272f
mov dword [esp], edi
call sub.KERNEL32.DLL_GetFileAttributesW
sub esp, 4
xor ecx, ecx
cmp eax, 0xffffffff
cmovne ecx, eax
mov eax, ebx
and al, 3
je 0x432748
cmp al, 2
je 0x43274f
cmp al, 1
jne 0x432847
mov eax, 0x40000000
jmp 0x432754
mov eax, SysReAllocString
jmp 0x432754
mov eax, 0xc0000000
mov edx, ebx
and edx, 0x70
add edx, 0xfffffff0
shr edx, 4
cmp edx, 3
mov ebp, 3
cmovb ebp, edx
xor edx, edx
cmp eax, 0x80000000
sete dl
test bl, 4
cmove edx, ebp
mov dword [esp + 0x20], 0xc
mov dword [esp + 0x24], 0
mov ebp, ebx
shr ebp, 7
not ebp
and ebp, 1
mov dword [esp + 0x28], ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], edi
mov dword [esp + 0x18], 0
call sub.KERNEL32.DLL_CreateFileW
sub esp, 0x1c
mov esi, eax
cmp esi, 0xffffffff
je 0x432824
mov edi, ebx
shr edi, 1
not edi
and edi, 0x4000
or edi, ebx
mov dword [esp], esi
call fcn.00432270
mov ecx, edi
or ecx, 0x2000
test eax, eax
cmove ecx, edi
and ecx, 0xfffff8ff
mov dword [esp], esi
mov dword [esp + 4], ecx
call fcn.004337b8
mov edi, eax
cmp edi, 0xffffffff
jne 0x432855
mov dword [esp], 4
call fcn.00433b94
mov dword [esp], esi
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
mov edi, 0xffffffff
jmp 0x432855
call sub.KERNEL32.DLL_GetLastError
movzx eax, ax
test bh, 1
mov ecx, 0x50
mov edx, 2
cmovne edx, ecx
cmp eax, 0x6e
cmovne edx, eax
mov dword [esp], edx
jmp 0x43284e
mov dword [esp], 1
call fcn.00433b94
mov edi, eax
call fcn.00433648
mov eax, edi
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x432bf4
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
cmp dword [0x4482d0], eax
jbe 0x432c31
sub esp, 0xc
lea ecx, [esp + 0x14]
push 0
push ecx
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [eax*4 + 0x44ca3c]
call sub.KERNEL32.DLL_ReadFile
add esp, 0xc
cmp eax, 1
jne 0x432c38
mov eax, dword [esp + 8]
add esp, 0xc
ret
sub esp, 0xc
push 6
jmp 0x432c4e
call sub.KERNEL32.DLL_GetLastError
mov ecx, eax
xor eax, eax
cmp ecx, 0x6d
jne 0x432c4a
add esp, 0xc
ret
sub esp, 0xc
push ecx
call fcn.00433b94
add esp, 0x10
add esp, 0xc
ret
Function at 0x432c6c
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
cmp dword [0x4482d0], eax
jbe 0x432ca9
sub esp, 0xc
lea ecx, [esp + 0x14]
push 0
push ecx
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [eax*4 + 0x44ca3c]
call sub.KERNEL32.DLL_WriteFile
add esp, 0xc
cmp eax, 1
jne 0x432cba
mov eax, dword [esp + 8]
add esp, 0xc
ret
sub esp, 0xc
push 6
call fcn.00433b94
add esp, 0x10
add esp, 0xc
ret
call fcn.00433c34
add esp, 0xc
ret

Function at 0x434b14
Capabilities:
Delete file

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
mov dword [esp], eax
call sub.KERNEL32.DLL_DeleteFileA
sub esp, 4
cmp eax, 1
jne 0x434b31
xor eax, eax
add esp, 0xc
ret
add esp, 0xc
jmp fcn.00433c34
Function at 0x438ab0
Capabilities:
Get geographical location

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x21c
mov dword [esp + 0x18], edx
mov esi, ecx
mov eax, dword [esi + 4]
lea ebp, [esp + 0x1c]
mov dword [esp + 8], ebp
mov dword [esp], eax
mov dword [esp + 0xc], pe_nt_image_headers32
mov dword [esp + 4], 0x1001
call sub.KERNEL32.DLL_GetLocaleInfoA
sub esp, 0x10
mov dword [esp], ebp
call fcn.00431df8
mov word [esp + eax + 0x1c], 0x5f
mov edi, dword [esi + 4]
mov dword [esp], ebp
call fcn.00431df8
lea ecx, [esp + eax + 0x1c]
mov edx, pe_nt_image_headers32
sub edx, eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp], edi
mov dword [esp + 4], 0x1002
call sub.KERNEL32.DLL_GetLocaleInfoA
sub esp, 0x10
mov dword [esp], ebp
call fcn.00431df8
mov word [esp + eax + 0x1c], 0x2e
mov edi, dword [esi]
mov dword [esp], ebp
call fcn.00431df8
lea eax, [esp + eax + 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edi
mov dword [esp + 8], 0xa
call fcn.0043bfac
mov edi, dword [esi + 0x24]
test edi, edi
je 0x438ba4
mov dword [esp], edi
call fcn.00431df8
mov ebx, eax
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.00431df8
mov ecx, ebp
mov ebp, eax
mov dword [esp], ecx
call fcn.00431df8
add ebp, ebx
lea eax, [eax + ebp + 3]
lea ebp, [esp + 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.0042f190
mov ebx, eax
mov dword [esi + 0x24], ebx
test ebx, ebx
jne 0x438bf9
jmp 0x438c41
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.00431df8
mov ebx, eax
mov edi, ebp
mov dword [esp], ebp
call fcn.00431df8
mov ebp, eax
lea eax, [ebx + ebp + 3]
mov dword [esp], eax
call fcn.0042f178
mov ebx, eax
mov dword [esi + 0x24], ebx
test ebx, ebx
je 0x438c41
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.00431df8
lea eax, [ebp + eax + 3]
mov dword [esp + 8], eax
mov dword [esp], ebx
mov dword [esp + 4], 0
call fcn.00431c93
mov ebp, edi
mov eax, dword [esp + 0x18]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00431cac
mov edi, dword [esi + 0x24]
mov dword [esp], edi
call fcn.00431df8
mov word [edi + eax], 0x3d
mov eax, dword [esi + 0x24]
mov dword [esp + 4], ebp
mov dword [esp], eax
call fcn.00431cac
mov esi, dword [esi + 0x24]
mov dword [esp], esi
call fcn.00431df8
mov word [esi + eax], 0xa
mov eax, 1
jmp 0x438c43
xor eax, eax
add esp, 0x21c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43a69c
Capabilities:
Get geographical location

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
push 0
push dword [edi + 4]
push 0xe
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.0042f178
add esp, 0x10
mov dword [edi + 4], eax
push esi
push eax
push 0xe
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
xor ebx, ebx
test eax, eax
setne bl
push 0
push dword [edi]
push 0xf
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.0042f178
add esp, 0x10
mov dword [edi], eax
test edi, edi
je 0x43a70f
push esi
push eax
push 0xf
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
xor ecx, ecx
test eax, eax
setne cl
jmp 0x43a71e
sub esp, 0xc
push 0xe
call sub.KERNEL32.DLL_SetLastError
add esp, 0xc
xor ecx, ecx
and ecx, ebx
mov dword [esp + 8], ecx
push 0
push dword [edi + 8]
push 0x10
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.0042f178
add esp, 0x10
mov dword [edi + 8], eax
push esi
push eax
push 0x10
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
xor ebx, ebx
test eax, eax
setne bl
push 0
push dword [edi + 0xc]
push 0x50
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.0042f178
add esp, 0x10
mov dword [edi + 0xc], eax
push esi
push eax
push 0x50
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
xor ecx, ecx
test eax, eax
setne cl
and ecx, ebx
mov ebx, ebp
mov ebp, ecx
push 0
push dword [edi + 0x10]
push 0x51
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.0042f178
add esp, 0x10
mov dword [edi + 0x10], eax
push esi
push eax
push 0x51
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoA
xor ebx, ebx
test eax, eax
setne bl
and ebx, ebp
and ebx, dword [esp + 8]
sub esp, 0xc
push 4
call fcn.0042f178
add esp, 0x10
mov esi, eax
test esi, esi
je 0x43a808
push 4
push esi
push 0x11
push dword [esp + 0x2c]
call sub.KERNEL32.DLL_GetLocaleInfoA
sub esp, 0xc
test eax, eax
je 0x43a817
push esi
call fcn.0043b830
add esp, 0x10
mov word [edi + 0x14], ax
sub esp, 0xc
push esi
call fcn.0042f188
add esp, 0x10
mov eax, 1
jmp 0x43a822
sub esp, 0xc
push 0xe
call sub.KERNEL32.DLL_SetLastError
add esp, 0xc
jmp 0x43a820
push esi
call fcn.0042f188
add esp, 0x10
xor eax, eax
and ebx, eax
mov eax, ebx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43df44
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push dword [esp + 0x4c]
call sub.KERNEL32.DLL_CreateFileA
add esp, 4
mov edi, eax
test edi, edi
je 0x43e00a
sub esp, 0xc
lea eax, [esp + 0x14]
push eax
call sub.KERNEL32.DLL_GetLocalTime
add esp, 0xc
movzx eax, word [esp + 0xa]
mov dword [esp + 0x18], eax
movzx ecx, word [esp + 0xe]
movzx edx, word [esp + 8]
movzx ebp, word [esp + 0x10]
movzx eax, word [esp + 0x12]
movzx esi, word [esp + 0x14]
movzx ebx, word [esp + 0x16]
sub esp, 0xc
push ebx
push esi
push eax
push ebp
push edx
push ecx
push dword [esp + 0x3c]
push str._02d__02d__04d__02d:_02d:_02d._03d
push 0x44cd38
call sub.USER32.DLL_wsprintfA
add esp, 0x24
push 0x44cd38
call fcn.00431df8
add esp, 4
push 0
lea ebx, [esp + 0x18]
push ebx
push eax
push 0x44cd38
push edi
call sub.KERNEL32.DLL_WriteFile
mov esi, dword [esp + 0x40]
push esi
call fcn.00431df8
add esp, 4
push 0
push ebx
push eax
push esi
push edi
call sub.KERNEL32.DLL_WriteFile
push edi
call sub.KERNEL32.DLL_CloseHandle
add esp, 0xc
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x43e03c
Capabilities:
Write file on windows

Disassembly:
push ebx
push edi
push esi
sub esp, 0x90
mov edi, dword [esp + 0xa0]
mov eax, dword [0x44cd58]
test eax, eax
mov ecx, dword [0x44cd54]
jne 0x43e101
test ecx, ecx
jne 0x43e101
cmp dword [0x4497c8], 0
je 0x43e137
sub esp, 4
lea esi, [esp + 0x14]
push 0x80
push esi
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
sub esp, 4
push 0x5c
push esi
call fcn.0043ddc4
add esp, 0x10
test eax, eax
jne 0x43e0ac
sub esp, 8
push 0x3a
push esi
call fcn.0043ddc4
add esp, 0x10
test eax, eax
je 0x43e0af
inc eax
mov esi, eax
mov dword [esp + 0xc], 0
call sub.KERNEL32.DLL_GetVersion
mov ecx, 0x12010
test eax, eax
jns 0x43e0f2
call sub.KERNEL32.DLL_GetCurrentThreadId
sub esp, 4
lea ecx, [esp + 0x10]
push ecx
push 0x43e1cc
push eax
call sub.USER32.DLL_EnumThreadWindows
add esp, 4
cmp dword [esp + 0xc], 0
mov eax, 0x11010
mov ecx, 0x12010
cmove ecx, eax
push ecx
push esi
push edi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x43e184
cmp ecx, 0xffffffff
je 0x43e184
test ecx, ecx
je 0x43e118
sub esp, 0xc
push edi
call ecx
add esp, 0x10
mov eax, dword [0x44cd58]
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x43e184
cmp byte [eax], 0
je 0x43e184
sub esp, 8
push edi
push eax
call fcn.0043df44
add esp, 0xa0
jmp 0x43e18a
sub esp, 0xc
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
add esp, 0xc
mov esi, eax
sub esp, 0xc
lea ebx, [esp + 0x1c]
push 0
push ebx
push 2
push 0x449620
push esi
call sub.KERNEL32.DLL_WriteFile
push edi
call fcn.00431df8
add esp, 4
push 0
push ebx
push eax
push edi
push esi
call sub.KERNEL32.DLL_WriteFile
push 0
push ebx
push 2
push 0x449620
push esi
call sub.KERNEL32.DLL_WriteFile
add esp, 0xc
add esp, 0x90
pop esi
pop edi
pop ebx
ret
Function at 0x43f00c
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [0x454d7c]
test eax, eax
je 0x43f041
mov ecx, dword [eax]
test ecx, ecx
je 0x43f0a4
add eax, 4
xor edi, edi
nop
cmp byte [ecx], 1
sbb edi, 0
inc edi
mov ecx, dword [eax]
add eax, 4
test ecx, ecx
jne 0x43f02c
jmp 0x43f0d0
mov esi, dword [0x454db4]
test esi, esi
jne 0x43f06e
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov esi, eax
mov dword [0x454db4], esi
test esi, esi
jne 0x43f06e
mov dword [esp], str.GetEnvironmentStrings_failed
call fcn.0043e1ac
mov esi, dword [0x454db4]
mov dword [esp], esi
call fcn.00431df8
test eax, eax
je 0x43f0a8
xor ebx, ebx
xor edi, edi
mov ebp, esi
nop word cs:[eax + eax]
lea ebx, [eax + ebx + 1]
inc edi
lea ebp, [ebp + eax + 1]
mov dword [esp], ebp
call fcn.00431df8
test eax, eax
jne 0x43f08c
inc ebx
jmp 0x43f0af
xor edi, edi
jmp 0x43f0d0
mov ebx, 1
xor edi, edi
mov dword [esp], ebx
call fcn.0042f178
mov dword [0x454d78], eax
test eax, eax
je 0x43f129
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.00431ac8
lea eax, [edi + 4]
mov dword [0x454d80], eax
add edi, 5
mov dword [esp], edi
mov dword [esp + 4], 4
call fcn.0042f15c
mov esi, eax
test esi, esi
je 0x43f129
mov edi, dword [0x454d7c]
test edi, edi
je 0x43f12d
mov edx, dword [edi]
test edx, edx
je 0x43f166
lea eax, [edi + 4]
xor ecx, ecx
nop word [eax + eax]
cmp byte [edx], 0
je 0x43f11c
mov edx, dword [eax - 4]
mov dword [esi + ecx*4], edx
jmp 0x43f11d
dec ecx
inc ecx
mov edx, dword [eax]
add eax, 4
test edx, edx
jne 0x43f10c
jmp 0x43f162
xor eax, eax
jmp 0x43f179
mov ebx, dword [0x454d78]
mov dword [esp], ebx
call fcn.00431df8
test eax, eax
je 0x43f16e
mov ebp, esi
nop word cs:[eax + eax]
mov dword [ebp], ebx
lea ebx, [ebx + eax + 1]
mov dword [esp], ebx
call fcn.00431df8
add ebp, 4
test eax, eax
jne 0x43f14c
test edi, edi
je 0x43f16e
mov dword [esp], edi
call fcn.0042f188
mov dword [0x454d7c], esi
mov eax, 1
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x43f844
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov ebp, dword [esp + 0x30]
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
mov dword [esp + 4], 1
mov dword [esp + 8], esi
cmp ebx, 1
jne 0x43f8a5
mov eax, dword [0x454df8]
lea ecx, [eax + 1]
mov dword [0x454df8], ecx
test eax, eax
jne 0x43f8a5
call sub.KERNEL32.DLL_GetEnvironmentStringsW
mov dword [0x454db8], eax
sub esp, 0xc
push dword [esi + 0x44]
call fcn.00432fc8
add esp, 8
lea eax, [esp + 0xc]
push 0
push eax
call fcn.0043f61c
add esp, 0x10
push ebp
push ebx
push edi
push dword [esi + 0x18]
call fcn.0043fe74
mov esi, eax
test ebx, ebx
jne 0x43f8f8
dec dword [0x454df8]
jne 0x43f8f8
sub esp, 0xc
push edi
call fcn.0043e3fc
add esp, 8
lea eax, [esp + 0xc]
push 1
push eax
call fcn.0043f61c
add esp, 0x10
mov eax, dword [0x454db8]
test eax, eax
je 0x43f8f8
sub esp, 0xc
push eax
call sub.KERNEL32.DLL_FreeEnvironmentStringsW
add esp, 0xc
mov dword [0x454db8], 0
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret