joyce8/EMBER2024-capa huggingface dataset:
Function at 0x466e50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x454015
lea edi, [esi - 0x53015]
push edi
or ebp, 0xffffffff
jmp 0x466e72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x466e79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x466e68
mov eax, 1
add ebx, ebx
jne 0x466e8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x466e9c
jne 0x466eac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x466eac
dec eax
add ebx, ebx
jne 0x466ea8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x466e80
xor ecx, ecx
sub eax, 3
jb 0x466ec4
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x466f36
sar eax, 1
mov ebp, eax
jmp 0x466ecf
add ebx, ebx
jne 0x466ecf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x466edc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x466f00
inc ecx
add ebx, ebx
jne 0x466eec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x466ee1
jne 0x466efd
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x466ee1
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x466f20
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x466f11
jmp 0x466e6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x466f20
add edi, ecx
jmp 0x466e6e
pop esi
mov edi, esi
mov ecx, 0x1c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x466f3e
cmp byte [edi], 2
jne 0x466f3e
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x466f43
lea edi, [esi + 0x64000]
mov eax, dword [edi]
or eax, eax
je 0x466fbb
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6728c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x672c8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x466f70
mov ecx, edi
jns 0x466f9f
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x672cc]
or eax, eax
je 0x466fb5
mov dword [ebx], eax
add ebx, 4
jmp 0x466f8d
call dword [esi + 0x672d0]
popal
jmp 0x401198
Function at 0x10017390
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001aa88
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x10024008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x100173d3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.100159d0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x100173fc
lea eax, [esi + 8]
jmp 0x100173fe
xor eax, eax
cmp dword [ebx + 0x10], 0
je 0x1001740e
cmp dword [ebx + 0x14], 8
jb 0x10017410
mov ebx, dword [ebx]
jmp 0x10017410
xor ebx, ebx
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x10017431
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10017431
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x1001745a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1001746f
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.10017568
add esp, 8
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10017527
mov esp, ebp
pop ebp
ret 4

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53
Function at 0x401018
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push ebx
push ebp
push edi
push esi
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push edi
xor eax, eax
xor ebx, ebx
xor ecx, ecx
shr edi, 3
je 0x4010e8
mov al, byte [esi]
xor al, dl
inc esi
movzx ebx, bx
nop
xor al, cl
xor edx, ecx
shr edx, 8
mov bl, byte [esi]
mov ecx, dword [eax*4 + 0x4110c8]
xor bl, dl
xor bl, cl
xor edx, ecx
shr edx, 8
mov al, byte [esi + 1]
mov ecx, dword [ebx*4 + 0x4110c8]
xor al, dl
xor al, cl
xor edx, ecx
shr edx, 8
mov bl, byte [esi + 2]
mov ecx, dword [eax*4 + 0x4110c8]
xor bl, dl
xor bl, cl
xor edx, ecx
shr edx, 8
mov al, byte [esi + 3]
mov ecx, dword [ebx*4 + 0x4110c8]
xor al, dl
xor al, cl
xor edx, ecx
shr edx, 8
mov bl, byte [esi + 4]
mov ecx, dword [eax*4 + 0x4110c8]
xor bl, dl
xor bl, cl
xor edx, ecx
shr edx, 8
mov al, byte [esi + 5]
mov ecx, dword [ebx*4 + 0x4110c8]
xor al, dl
xor al, cl
xor edx, ecx
shr edx, 8
mov bl, byte [esi + 6]
mov ecx, dword [eax*4 + 0x4110c8]
xor bl, dl
xor bl, cl
xor edx, ecx
shr edx, 8
mov al, byte [esi + 7]
mov ecx, dword [ebx*4 + 0x4110c8]
xor al, dl
add esi, 8
dec edi
jne 0x401044
xor edx, ecx
dec esi
pop edi
and edi, 7
test edi, edi
je 0x401102
mov al, byte [esi]
xor al, dl
shr edx, 8
xor edx, dword [eax*4 + 0x4110c8]
inc esi
dec edi
jne 0x4010f0
mov dword [0x416c58], edx
pop esi
pop edi
pop ebp
pop ebx
mov eax, dword [0x416c58]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x401165
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push dword [0x416c68]
push dword [esp + 8]
call fcn.00401118
movzx ecx, al
mov dword [0x416c68], eax
mov eax, dword [0x416c6c]
add eax, ecx
push dword [0x416c70]
imul eax, eax, 0x8088405
inc eax
mov dword [0x416c6c], eax
shr eax, 0x18
mov byte [esp + 8], al
push dword [esp + 8]
call fcn.00401118
mov dword [0x416c70], eax
ret 4

Function at 0x4011ad
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 8], 0
je 0x4011df
push esi
mov esi, dword [esp + 8]
mov eax, dword [0x416c70]
or al, 2
movzx eax, ax
mov ecx, eax
xor ecx, 1
imul ecx, eax
sar ecx, 8
xor byte [esi], cl
push dword [esi]
call fcn.00401165
inc esi
dec dword [esp + 0xc]
jne 0x4011b9
pop esi
ret 8

Function at 0x405e7b
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
xor byte [eax], cl
inc eax
dec ecx
test cx, cx
jne 0x405e83
ret 8

Function at 0x405fa9
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0xc], 0
push esi
jne 0x405fb7
cmp dword [ecx + 0xe], 0
je 0x405fd7
mov edx, dword [esp + 0xc]
test edx, edx
je 0x405fd7
mov eax, dword [esp + 8]
movzx si, byte [eax]
add word [ecx + 0x12], si
movzx si, byte [eax]
xor word [ecx + 0x14], si
inc eax
dec edx
jne 0x405fc3
pop esi
ret 0xc

Function at 0x40782f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [esp + 8]
mov dword [ecx], eax
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
mov eax, ecx
ret 8
Function at 0x40784c
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push ebx
push esi
push edi
push 1
pop ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp eax, ebx
jne 0x4078eb
test byte [ebp + 0xd], 8
je 0x4078e2
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x8c], 2
jne 0x4078e2
test byte [ebp + 0xc], 0x10
je 0x4078a4
xor esi, esi
push esi
push 0x2000000
jmp 0x4078a8
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4078eb
lea eax, [ebp - 8]
push esi
push eax
push esi
push esi
lea eax, [ebp - 4]
push 2
push eax
push 0x9c040
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
mov eax, ebx
jmp 0x4078e4

Function at 0x407d20
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov ecx, dword [ebp + 0x14]
xor eax, eax
push esi
mov esi, dword [ebp + 8]
mov dword [ecx], eax
mov ecx, dword [ebp + 0xc]
cmp esi, eax
mov byte [ecx], al
jne 0x407d51
lea edx, [ebp - 0x40]
push 0x40
push edx
lea edx, [ebp + 0xc]
push edx
lea edx, [ebp + 8]
push edx
push eax
push 0x104
push ecx
jmp 0x407d79
mov dl, byte [esi]
push 0x40
mov byte [ebp + 0x14], dl
lea edx, [ebp - 0x40]
push edx
lea edx, [ebp + 0xc]
push edx
lea edx, [ebp + 8]
push edx
push eax
mov byte [ebp + 0x17], al
push 0x104
mov byte [ebp + 0x15], 0x3a
mov byte [ebp + 0x16], 0x5c
push ecx
lea eax, [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x407d88
xor eax, eax
jmp 0x407d8b
push 1
pop eax
pop esi
leave
ret 0x10

Function at 0x407d90
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and byte [ebp + 0xb], 0
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov al, byte [eax]
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
dec eax
dec eax
je 0x407dd1
dec eax
je 0x407dcd
dec eax
je 0x407dc9
dec eax
je 0x407dc5
dec eax
jne 0x407dcd
push 6
jmp 0x407dd3
push 5
jmp 0x407dd3
push 4
jmp 0x407dd3
push 3
jmp 0x407dd3
push 2
pop eax
pop ebp
ret 4
Function at 0x407f31
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, eax
mov esi, eax
shr eax, 0x10
and eax, 0x1f
push 1
shr esi, 0x15
shr edi, 0x19
mov bx, ax
and esi, 0xf
pop eax
add edi, 0x7bc
cmp si, ax
jb 0x407f67
cmp si, 0xc
jbe 0x407f6a
mov si, ax
cmp bx, ax
jb 0x407f75
cmp bx, 0x1f
jbe 0x407f78
mov bx, ax
lea eax, [ebp + 8]
push eax
push 0xf003f
push 0
push str.Control_PanelInternational
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407fcb
lea eax, [ebp - 4]
mov dword [ebp - 4], 5
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push str.sDate
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x407fc0
mov byte [ebp - 0xc], 0x2f
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x407fcf
mov byte [ebp - 0xc], 0x2f
mov eax, dword [0x417240]
sub eax, 3
je 0x408004
dec eax
movzx eax, byte [ebp - 0xc]
je 0x407fef
movzx ecx, di
push ecx
push eax
movzx ecx, bx
push ecx
push eax
movzx eax, si
jmp 0x408015
movzx ecx, bx
push ecx
push eax
movzx ecx, si
push ecx
push eax
movzx eax, di
push eax
push str._04d_c_02d_c_02d
jmp 0x40801b
movzx eax, byte [ebp - 0xc]
movzx ecx, di
push ecx
push eax
movzx ecx, si
push ecx
push eax
movzx eax, bx
push eax
push str._02d_c_02d_c_04d
push dword [ebp + 0xc]
call fcn.004088b0
mov eax, dword [ebp + 0xc]
add esp, 0x1c
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x408065
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
test esi, esi
je 0x4080b2
cmp byte [esi], 0xa
jne 0x4080b2
cmp byte [esi + 1], 0
jne 0x4080b2
xor eax, eax
mov ah, byte [esi + 3]
mov al, byte [esi + 2]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x4080b2
movzx eax, word [ebp + 0x10]
cmp dword [ebp + 0xc], eax
ja 0x4080b2
push 4
pop edi
push 0x18
call fcn.00408890
test eax, eax
pop ecx
jne 0x4080bb
push 1
push 0x416d10
push 0x1b
call fcn.00401c2f
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
cmp dword [ebp + 0xc], edi
jbe 0x4080b4
mov ecx, 0xff
xor edx, edx
xor ebx, ebx
mov dh, byte [edi + esi + 5]
mov bh, byte [edi + esi + 7]
mov dl, byte [edi + esi + 4]
mov bl, byte [edi + esi + 6]
add edi, 4
cmp edx, 1
mov dword [ebp + 0x10], ebx
jne 0x408207
cmp ebx, 0x18
jne 0x408207
movsx edx, byte [edi + esi + 7]
shl edx, 0x18
mov dword [eax + 0x10], edx
mov bl, byte [edi + esi + 6]
and ebx, ecx
shl ebx, 0x10
or ebx, edx
xor edx, edx
mov dword [eax + 0x10], ebx
mov dh, byte [edi + esi + 5]
or edx, ebx
mov dword [eax + 0x10], edx
mov bl, byte [edi + esi + 4]
and ebx, ecx
or ebx, edx
mov dword [eax + 0x10], ebx
movsx edx, byte [edi + esi + 0xb]
shl edx, 0x18
mov dword [eax + 0x14], edx
mov bl, byte [edi + esi + 0xa]
and ebx, ecx
shl ebx, 0x10
or ebx, edx
xor edx, edx
mov dword [eax + 0x14], ebx
mov dh, byte [edi + esi + 9]
or edx, ebx
mov dword [eax + 0x14], edx
mov bl, byte [edi + esi + 8]
and ebx, ecx
or ebx, edx
mov dword [eax + 0x14], ebx
movsx edx, byte [edi + esi + 0xf]
shl edx, 0x18
mov dword [eax + 8], edx
mov bl, byte [edi + esi + 0xe]
and ebx, ecx
shl ebx, 0x10
or ebx, edx
xor edx, edx
mov dword [eax + 8], ebx
mov dh, byte [edi + esi + 0xd]
or edx, ebx
mov dword [eax + 8], edx
mov bl, byte [edi + esi + 0xc]
and ebx, ecx
or ebx, edx
mov dword [eax + 8], ebx
movsx edx, byte [edi + esi + 0x13]
shl edx, 0x18
mov dword [eax + 0xc], edx
mov bl, byte [edi + esi + 0x12]
and ebx, ecx
shl ebx, 0x10
or ebx, edx
xor edx, edx
mov dword [eax + 0xc], ebx
mov dh, byte [edi + esi + 0x11]
or edx, ebx
mov dword [eax + 0xc], edx
mov bl, byte [edi + esi + 0x10]
and ebx, ecx
or ebx, edx
mov dword [eax + 0xc], ebx
movsx edx, byte [edi + esi + 0x17]
shl edx, 0x18
mov dword [eax], edx
mov bl, byte [edi + esi + 0x16]
and ebx, ecx
shl ebx, 0x10
or ebx, edx
xor edx, edx
mov dword [eax], ebx
mov dh, byte [edi + esi + 0x15]
or edx, ebx
mov dword [eax], edx
mov bl, byte [edi + esi + 0x14]
and ebx, ecx
or ebx, edx
mov dword [eax], ebx
movsx edx, byte [edi + esi + 0x1b]
shl edx, 0x18
mov dword [eax + 4], edx
mov bl, byte [edi + esi + 0x1a]
and ebx, ecx
shl ebx, 0x10
or ebx, edx
xor edx, edx
mov dword [eax + 4], ebx
mov dh, byte [edi + esi + 0x19]
or edx, ebx
mov dword [eax + 4], edx
mov bl, byte [edi + esi + 0x18]
and ebx, ecx
or ebx, edx
mov dword [eax + 4], ebx
add edi, dword [ebp + 0x10]
cmp edi, dword [ebp + 0xc]
jb 0x4080c5
jmp 0x4080b4
Function at 0x408266
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
lea eax, [ebp - 8]
push 5
push eax
mov edi, 0x400
push 0x21
push edi
call esi
test eax, eax
je 0x4082b9
cmp byte [ebp - 8], 0x30
jne 0x408299
mov dword [0x417240], 2
jmp 0x4082aa
xor eax, eax
cmp byte [ebp - 8], 0x31
setne al
add eax, 3
mov dword [0x417240], eax
lea eax, [ebp - 8]
push 5
push eax
push 0x23
push edi
call esi
test eax, eax
jne 0x4082be
push 1
pop eax
jmp 0x4082ce
xor eax, eax
cmp byte [ebp - 8], 0x30
setne al
mov dword [0x41723c], eax
xor eax, eax
pop edi
pop esi
leave
ret 4

Function at 0x409510
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x417b38]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x40952f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x417b34], 1
mov byte [0x417b30], bl
jne 0x409589
mov ecx, dword [0x41902c]
test ecx, ecx
je 0x409577
mov esi, dword [0x419028]
sub esi, 4
cmp esi, ecx
jb 0x409577
mov eax, dword [esi]
test eax, eax
je 0x409570
call eax
mov ecx, dword [0x41902c]
sub esi, 4
cmp esi, ecx
jae 0x409562
push 0x411028
push 0x41101c
call fcn.004095c0
add esp, 8
push 0x411030
push 0x41102c
call fcn.004095c0
add esp, 8
test ebx, ebx
jne 0x4095b0
push ebp
mov dword [0x417b38], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x40a0d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4102f0
push 0x40d648
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x417b08], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x417b04], ecx
shl ecx, 8
add ecx, edx
mov dword [0x417b00], ecx
shr eax, 0x10
mov dword [0x417afc], eax
call fcn.0040d510
test eax, eax
jne 0x40a13a
push 0x1c
call fcn.0040a1f0
add esp, 4
mov dword [ebp - 4], 0
call fcn.0040b1a0
call fcn.0040d500
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x419024], eax
call fcn.0040d0d0
mov dword [0x417b58], eax
test eax, eax
je 0x40a16d
mov eax, dword [0x419024]
test eax, eax
jne 0x40a177
push 0xffffffffffffffff
call fcn.004094d0
add esp, 4
call fcn.0040ce20
call fcn.0040cd30
call fcn.004094a0
mov eax, dword [0x417b18]
mov dword [0x417b1c], eax
push eax
mov eax, dword [0x417b10]
push eax
mov ecx, dword [0x417b0c]
push ecx
call fcn.0040563b
add esp, 0xc
mov dword [ebp - 0x1c], eax
push eax
call fcn.004094d0
jmp 0x40a1d2
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b3a0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x419020]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x40b54d
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x418f20]
lea edi, [ecx*4 + 0x418f20]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x40b54d
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x40b40e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x40b41f
push 2
push ebp
push eax
call fcn.0040b0e0
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x40b57e
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x40b4c9
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x40b47a
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x40b467
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x40b44a
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b56f
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x40b4c5
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x40b446
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40b53e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40b512
cmp eax, 5
jne 0x40b4fb
mov dword [0x417af4], eax
mov dword [0x417af0], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.0040c130
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x40b532
cmp byte [ebp], 0x1a
jne 0x40b532
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x417af0], 0x1c
jmp 0x40b557
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x417af0], 9
pop edi
pop esi
pop ebp
mov dword [0x417af4], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x40b4c5
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b5af
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x40b4c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x40b4c9
Function at 0x40d0d0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x417d88]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x40d112
call edi
mov esi, eax
test esi, esi
je 0x40d0fc
mov eax, 1
jmp 0x40d10d
call ebp
mov ebx, eax
test ebx, ebx
je 0x40d21f
mov eax, 2
mov dword [0x417d88], eax
cmp eax, 1
jne 0x40d1b2
test esi, esi
jne 0x40d12b
call edi
mov esi, eax
test esi, esi
je 0x40d21f
cmp word [esi], 0
mov eax, esi
je 0x40d145
add eax, 2
cmp word [eax], 0
jne 0x40d133
add eax, 2
cmp word [eax], 0
jne 0x40d133
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x40d1a4
push edi
call fcn.0040ace0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40d1a4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x40d196
push ebx
call fcn.0040ad90
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x40d21f
test ebx, ebx
jne 0x40d1c3
call ebp
mov ebx, eax
test ebx, ebx
je 0x40d21f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x40d1db
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40d1cb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40d1cb
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.0040ace0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40d1fd
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret