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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov word [ebp - 0xa], cx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x434e5b
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x434e6b
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, dword [ebp + 8]
sub ebx, esi
inc ebx
cmp dword [ebp + 8], 0
jl 0x434f8d
test ebx, ebx
jl 0x434f8d
test esi, esi
jle 0x434f8d
mov eax, dword [ebp - 8]
call fcn.00413d00
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00413d00
mov ecx, eax
mov eax, dword [ebp + 8]
add eax, eax
add ecx, eax
movzx eax, word [ebp - 0xa]
cmp ax, word [ebp + 0xc]
je 0x434f2a
xor eax, eax
mov dword [ebp - 0x14], eax
test ebx, ebx
jl 0x434f8d
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x434f0f
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x434ede
inc dword [ebp - 0x14]
jmp 0x434eee
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp + 0xc]
jne 0x434eee
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jle 0x434ef9
or eax, 0xffffffff
jmp 0x434f0f
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x434f0c
inc eax
jmp 0x434f0f
or eax, 0xffffffff
test eax, eax
jl 0x434f17
cmp esi, eax
jg 0x434ecc
cmp esi, eax
jg 0x434f22
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x434f90
inc edx
dec dword [ebp - 0x1c]
jne 0x434ec8
jmp 0x434f8d
mov byte [ebp - 0x15], 0
test ebx, ebx
jl 0x434f8d
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x434f74
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x434f53
movzx ebx, byte [ebp - 0x15]
xor bl, 1
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x434f5e
or eax, 0xffffffff
jmp 0x434f74
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x434f71
inc eax
jmp 0x434f74
or eax, 0xffffffff
test eax, eax
jl 0x434f7c
cmp esi, eax
jg 0x434f3c
cmp esi, eax
jg 0x434f87
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x434f90
inc edx
dec dword [ebp - 0x1c]
jne 0x434f38
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x444f50
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x444f58
mov eax, edx
pop esi
pop ebx
ret

Function at 0x447bac
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
add edx, eax
cmp edx, eax
jbe 0x447bc3
movzx ebx, byte [eax]
xor ecx, ebx
imul ecx, ecx, 0x1000193
inc eax
cmp edx, eax
ja 0x447bb3
mov eax, ecx
pop ebx
ret
Function at 0x458534
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
test dl, dl
je 0x458548
add esp, 0xfffffff0
call fcn.00411bb0
mov ebx, edx
mov esi, eax
mov dl, 1
mov eax, dword [0x4525d0]
call fcn.00476440
mov dword [esi + 4], eax
mov dl, 1
mov eax, dword [0x457570]
call fcn.00479210
mov dword [esi + 8], eax
mov dl, 1
mov eax, dword [0x457570]
call fcn.00479210
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x24]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x10], eax
mov eax, esi
test bl, bl
je 0x45859d
call fcn.00411c08
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c107c
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
or dl, byte [ebx + 0xd]
je 0x4c10bf
cmp byte [ebx + 0x11], 0
jne 0x4c10bf
cmp byte [ebx + 0x24], 0
jne 0x4c10bf
mov byte [ebx + 0xf], 0
mov byte [ebx + 0xd], 0
mov eax, dword [ebx + 8]
push eax
call sub.KERNEL32.DLL_ResumeThread
cmp eax, 1
je 0x4c10d6
mov ecx, dword [0x4fcfac]
mov dl, 1
mov eax, dword [0x492800]
call fcn.0042f834
call fcn.00412a68
pop ebx
ret
mov ecx, dword [0x4fcfac]
mov dl, 1
mov eax, dword [0x492800]
call fcn.0042f834
call fcn.00412a68
pop ebx
ret

Function at 0x4c1a48
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x4c1a96
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.KERNEL32.DLL_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004c0f28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c1aaf
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4c1ab8
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 8]
push eax
call sub.KERNEL32.DLL_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004c0f28
dec esi
jne 0x4c1ada
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret

Function at 0x4e13e4
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 0x4e13f9
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 0x4e1974
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 0x4e198c
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 0x4e1ed4
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 0x4e1ee9
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 0x4e3194
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 0x4e31bd
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 0x4e33f8
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 0x4e352a
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x4e352a
cmp dword [esp + 0x28], 0
je 0x4e352a
mov dword [esp], str.borlndmm
call sub.KERNEL32.DLL_GetModuleHandleA
sub esp, 4
mov esi, eax
test esi, esi
je 0x4e352a
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 [0x5042a0], eax
cmp dword [ebp], 0
jne 0x4e34de
mov dword [ebp], 0x4e33c8
mov eax, dword [esp + 0x30]
cmp dword [eax], 0
jne 0x4e34ed
mov dword [eax], 0x4e33b8
mov ecx, dword [esi]
test ecx, ecx
je 0x4e351a
cmp dword [edi], 0
je 0x4e352a
cmp dword [ebx], 0
je 0x4e352a
mov esi, dword [esp + 0x28]
cmp dword [esi], 0
je 0x4e352a
cmp dword [ebp], 0
je 0x4e352a
cmp dword [eax], 0
je 0x4e352a
xor eax, eax
test ecx, ecx
setne al
jmp 0x4e352c
mov dword [esi], 0x4e33b8
mov ecx, 0x4e33b8
cmp dword [edi], 0
jne 0x4e34f8
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4e481c
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.004e5924
test bh, 0xc0
jne 0x4e483f
mov eax, dword [0x4fb10c]
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 0x4e4863
sar eax, 6
mov esi, dword [eax + 0x4fab68]
mov edi, dword [esp + 0x40]
test bh, 1
je 0x4e488c
lea eax, [esp + 0x4c]
mov dword [esp + 0x20], eax
mov al, byte [0x4fab88]
and al, byte [esp + 0x48]
mov eax, 0x80
mov ecx, 1
cmovs ecx, eax
jmp 0x4e489f
mov dword [esp], edi
call sub.KERNEL32.DLL_GetFileAttributesA
sub esp, 4
xor ecx, ecx
cmp eax, 0xffffffff
cmovne ecx, eax
mov eax, ebx
and al, 3
je 0x4e48b8
cmp al, 2
je 0x4e48bf
cmp al, 1
jne 0x4e49b7
mov eax, 0x40000000
jmp 0x4e48c4
mov eax, SysReAllocStringLen
jmp 0x4e48c4
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_CreateFileA
sub esp, 0x1c
mov esi, eax
cmp esi, 0xffffffff
je 0x4e4994
mov edi, ebx
shr edi, 1
not edi
and edi, 0x4000
or edi, ebx
mov dword [esp], esi
call fcn.004e4774
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.004e5ae4
mov edi, eax
cmp edi, 0xffffffff
jne 0x4e49c5
mov dword [esp], 4
call fcn.004e5ec0
mov dword [esp], esi
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
mov edi, 0xffffffff
jmp 0x4e49c5
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 0x4e49be
mov dword [esp], 1
call fcn.004e5ec0
mov edi, eax
call fcn.004e5974
mov eax, edi
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4e4f40
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
cmp dword [0x4fb03c], eax
jbe 0x4e4f7d
sub esp, 0xc
lea ecx, [esp + 0x14]
push 0
push ecx
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [eax*4 + 0x5043b4]
call sub.KERNEL32.DLL_ReadFile
add esp, 0xc
cmp eax, 1
jne 0x4e4f84
mov eax, dword [esp + 8]
add esp, 0xc
ret
sub esp, 0xc
push 6
jmp 0x4e4f9a
call sub.KERNEL32.DLL_GetLastError
mov ecx, eax
xor eax, eax
cmp ecx, 0x6d
jne 0x4e4f96
add esp, 0xc
ret
sub esp, 0xc
push ecx
call fcn.004e5ec0
add esp, 0x10
add esp, 0xc
ret
Function at 0x4e4fb8
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
cmp dword [0x4fb03c], eax
jbe 0x4e4ff5
sub esp, 0xc
lea ecx, [esp + 0x14]
push 0
push ecx
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [eax*4 + 0x5043b4]
call sub.KERNEL32.DLL_WriteFile
add esp, 0xc
cmp eax, 1
jne 0x4e5006
mov eax, dword [esp + 8]
add esp, 0xc
ret
sub esp, 0xc
push 6
call fcn.004e5ec0
add esp, 0x10
add esp, 0xc
ret
call fcn.004e5f60
add esp, 0xc
ret

Function at 0x4e6b94
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 0x4e6bb1
xor eax, eax
add esp, 0xc
ret
add esp, 0xc
jmp fcn.004e5f60
Function at 0x4e96dc
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.004e438c
mov word [esp + eax + 0x1c], 0x5f
mov edi, dword [esi + 4]
mov dword [esp], ebp
call fcn.004e438c
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.004e438c
mov word [esp + eax + 0x1c], 0x2e
mov edi, dword [esi]
mov dword [esp], ebp
call fcn.004e438c
lea eax, [esp + eax + 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edi
mov dword [esp + 8], 0xa
call fcn.004ecaa8
mov edi, dword [esi + 0x24]
test edi, edi
je 0x4e97d0
mov dword [esp], edi
call fcn.004e438c
mov ebx, eax
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.004e438c
mov ecx, ebp
mov ebp, eax
mov dword [esp], ecx
call fcn.004e438c
add ebp, ebx
lea eax, [eax + ebp + 3]
lea ebp, [esp + 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.004e37d4
mov ebx, eax
mov dword [esi + 0x24], ebx
test ebx, ebx
jne 0x4e9825
jmp 0x4e986d
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.004e438c
mov ebx, eax
mov edi, ebp
mov dword [esp], ebp
call fcn.004e438c
mov ebp, eax
lea eax, [ebx + ebp + 3]
mov dword [esp], eax
call fcn.004e37bc
mov ebx, eax
mov dword [esi + 0x24], ebx
test ebx, ebx
je 0x4e986d
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.004e438c
lea eax, [ebp + eax + 3]
mov dword [esp + 8], eax
mov dword [esp], ebx
mov dword [esp + 4], 0
call fcn.004e4227
mov ebp, edi
mov eax, dword [esp + 0x18]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.004e4240
mov edi, dword [esi + 0x24]
mov dword [esp], edi
call fcn.004e438c
mov word [edi + eax], 0x3d
mov eax, dword [esi + 0x24]
mov dword [esp + 4], ebp
mov dword [esp], eax
call fcn.004e4240
mov esi, dword [esi + 0x24]
mov dword [esp], esi
call fcn.004e438c
mov word [esi + eax], 0xa
mov eax, 1
jmp 0x4e986f
xor eax, eax
add esp, 0x21c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4eb2c8
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.004e37bc
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.004e37bc
add esp, 0x10
mov dword [edi], eax
test edi, edi
je 0x4eb33b
push esi
push eax
push 0xf
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
xor ecx, ecx
test eax, eax
setne cl
jmp 0x4eb34a
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.004e37bc
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.004e37bc
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.004e37bc
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.004e37bc
add esp, 0x10
mov esi, eax
test esi, esi
je 0x4eb434
push 4
push esi
push 0x11
push dword [esp + 0x2c]
call sub.KERNEL32.DLL_GetLocaleInfoA
sub esp, 0xc
test eax, eax
je 0x4eb443
push esi
call fcn.004ec45c
add esp, 0x10
mov word [edi + 0x14], ax
sub esp, 0xc
push esi
call fcn.004e37cc
add esp, 0x10
mov eax, 1
jmp 0x4eb44e
sub esp, 0xc
push 0xe
call sub.KERNEL32.DLL_SetLastError
add esp, 0xc
jmp 0x4eb44c
push esi
call fcn.004e37cc
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 0x4ef024
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 0x4ef0ea
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 0x5046bc
call sub.USER32.DLL_wsprintfA
add esp, 0x24
push 0x5046bc
call fcn.004e438c
add esp, 4
push 0
lea ebx, [esp + 0x18]
push ebx
push eax
push 0x5046bc
push edi
call sub.KERNEL32.DLL_WriteFile
mov esi, dword [esp + 0x40]
push esi
call fcn.004e438c
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 0x4ef11c
Capabilities:
Write file on windows

Disassembly:
push ebx
push edi
push esi
sub esp, 0x90
mov edi, dword [esp + 0xa0]
mov eax, dword [0x5046dc]
test eax, eax
mov ecx, dword [0x5046d8]
jne 0x4ef1e1
test ecx, ecx
jne 0x4ef1e1
cmp dword [0x4fc49c], 0
je 0x4ef217
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.004ee8c0
add esp, 0x10
test eax, eax
jne 0x4ef18c
sub esp, 8
push 0x3a
push esi
call fcn.004ee8c0
add esp, 0x10
test eax, eax
je 0x4ef18f
inc eax
mov esi, eax
mov dword [esp + 0xc], 0
call sub.KERNEL32.DLL_GetVersion
mov ecx, 0x12010
test eax, eax
jns 0x4ef1d2
call sub.KERNEL32.DLL_GetCurrentThreadId
sub esp, 4
lea ecx, [esp + 0x10]
push ecx
push 0x4ef2ac
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 0x4ef264
cmp ecx, 0xffffffff
je 0x4ef264
test ecx, ecx
je 0x4ef1f8
sub esp, 0xc
push edi
call ecx
add esp, 0x10
mov eax, dword [0x5046dc]
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x4ef264
cmp byte [eax], 0
je 0x4ef264
sub esp, 8
push edi
push eax
call fcn.004ef024
add esp, 0xa0
jmp 0x4ef26a
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 0x4fc2f4
push esi
call sub.KERNEL32.DLL_WriteFile
push edi
call fcn.004e438c
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 0x4fc2f4
push esi
call sub.KERNEL32.DLL_WriteFile
add esp, 0xc
add esp, 0x90
pop esi
pop edi
pop ebx
ret
Function at 0x4f00ec
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [0x50c700]
test eax, eax
je 0x4f0121
mov ecx, dword [eax]
test ecx, ecx
je 0x4f0184
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 0x4f010c
jmp 0x4f01b0
mov esi, dword [0x50c738]
test esi, esi
jne 0x4f014e
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov esi, eax
mov dword [0x50c738], esi
test esi, esi
jne 0x4f014e
mov dword [esp], str.GetEnvironmentStrings_failed
call fcn.004ef28c
mov esi, dword [0x50c738]
mov dword [esp], esi
call fcn.004e438c
test eax, eax
je 0x4f0188
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.004e438c
test eax, eax
jne 0x4f016c
inc ebx
jmp 0x4f018f
xor edi, edi
jmp 0x4f01b0
mov ebx, 1
xor edi, edi
mov dword [esp], ebx
call fcn.004e37bc
mov dword [0x50c6fc], eax
test eax, eax
je 0x4f0209
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.004e405c
lea eax, [edi + 4]
mov dword [0x50c704], eax
add edi, 5
mov dword [esp], edi
mov dword [esp + 4], 4
call fcn.004e37a0
mov esi, eax
test esi, esi
je 0x4f0209
mov edi, dword [0x50c700]
test edi, edi
je 0x4f020d
mov edx, dword [edi]
test edx, edx
je 0x4f0246
lea eax, [edi + 4]
xor ecx, ecx
nop word [eax + eax]
cmp byte [edx], 0
je 0x4f01fc
mov edx, dword [eax - 4]
mov dword [esi + ecx*4], edx
jmp 0x4f01fd
dec ecx
inc ecx
mov edx, dword [eax]
add eax, 4
test edx, edx
jne 0x4f01ec
jmp 0x4f0242
xor eax, eax
jmp 0x4f0259
mov ebx, dword [0x50c6fc]
mov dword [esp], ebx
call fcn.004e438c
test eax, eax
je 0x4f024e
mov ebp, esi
nop word cs:[eax + eax]
mov dword [ebp], ebx
lea ebx, [ebx + eax + 1]
mov dword [esp], ebx
call fcn.004e438c
add ebp, 4
test eax, eax
jne 0x4f022c
test edi, edi
je 0x4f024e
mov dword [esp], edi
call fcn.004e37cc
mov dword [0x50c700], esi
mov eax, 1
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4f090c
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 0x4f096d
mov eax, dword [0x50c77c]
lea ecx, [eax + 1]
mov dword [0x50c77c], ecx
test eax, eax
jne 0x4f096d
call sub.KERNEL32.DLL_GetEnvironmentStringsW
mov dword [0x50c73c], eax
sub esp, 0xc
push dword [esi + 0x44]
call fcn.004e5304
add esp, 8
lea eax, [esp + 0xc]
push 0
push eax
call fcn.004f06e4
add esp, 0x10
push ebp
push ebx
push edi
push dword [esi + 0x18]
call fcn.004f0f34
mov esi, eax
test ebx, ebx
jne 0x4f09c0
dec dword [0x50c77c]
jne 0x4f09c0
sub esp, 0xc
push edi
call fcn.004ef4dc
add esp, 8
lea eax, [esp + 0xc]
push 1
push eax
call fcn.004f06e4
add esp, 0x10
mov eax, dword [0x50c73c]
test eax, eax
je 0x4f09c0
sub esp, 0xc
push eax
call sub.KERNEL32.DLL_FreeEnvironmentStringsW
add esp, 0xc
mov dword [0x50c73c], 0
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret