joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d110
Capabilities:
Get file version info

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x18]
push esi
lea ecx, [esp + 0x14]
push edi
push ecx
mov dword [ebp], 0
push ebx
mov dword [eax], 0
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jne 0x40d145
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push edi
call fcn.00413e50
mov esi, eax
add esp, 4
test esi, esi
jne 0x40d15a
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push esi
push edi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x40d179
push esi
call fcn.00413db0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
lea edx, [esp + 0x10]
lea eax, [esp + 0x20]
push edx
push eax
push 0x4220bc
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x40d1a3
push esi
call fcn.00413db0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x20]
push esi
mov ecx, dword [eax + 0xc]
mov dword [ebp], ecx
mov edx, dword [eax + 8]
mov eax, dword [esp + 0x20]
mov dword [eax], edx
call fcn.00413db0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x40d1d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
xor eax, eax
push ebx
push esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
push edi
lea eax, [esp + 0x14]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0x14]
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x5c
je 0x40d244
mov edi, 0x4220bc
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.ole32.dll
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.0040d110
add esp, 0xc
test eax, eax
je 0x40d2bc
mov eax, dword [esp + 0x10]
mov ecx, eax
shr ecx, 0x10
cmp ecx, 4
jb 0x40d2bc
cmp ax, 0x47
jb 0x40d2bc
mov edx, dword [esp + 0xc]
shr edx, 0x10
cmp edx, 0x9d0
jb 0x40d2bc
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x10c
ret
Function at 0x40ed80
Capabilities:
Get file version info

Disassembly:
mov eax, 0x140c
call fcn.004152f0
push esi
push edi
mov edi, dword [esp + 0x1418]
lea eax, [esp + 0x10]
push eax
push edi
mov esi, 0x1400
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
jne 0x40edb0
pop edi
pop esi
add esp, 0x140c
ret
cmp eax, 0x1400
jae 0x40edb9
mov esi, eax
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push esi
push edx
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x40edd7
pop edi
pop esi
add esp, 0x140c
ret
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
lea edx, [esp + 0x1c]
push str.VarFileInfoTranslation
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x40edfd
pop edi
pop esi
add esp, 0x140c
ret
mov eax, dword [esp + 8]
test eax, eax
jbe 0x40ee16
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x141c]
mov cx, word [eax]
mov word [edx], cx
pop edi
mov eax, 1
pop esi
add esp, 0x140c
ret
Function at 0x40fb50
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x98
push ebx
mov ebx, dword [esp + 0xa0]
push ebp
push esi
test ebx, ebx
push edi
je 0x40fd8f
mov al, byte [ebx + 0x7f]
test al, al
jne 0x40fd8f
mov al, byte [ebx + 0x94]
test al, al
jne 0x40fd8f
mov edi, dword [esp + 0xb0]
test edi, edi
je 0x40fd8f
mov ebp, dword [esp + 0xb4]
test ebp, ebp
je 0x40fd8f
mov eax, dword [esp + 0xb8]
test eax, eax
je 0x40fd8f
mov ecx, 0x7f
mov eax, ecx
mov dl, byte [ecx + ebx]
add ecx, 0x11
mov byte [esp + eax + 0x10], dl
dec eax
and ecx, 0x7f
test eax, eax
jge 0x40fbb6
mov eax, 0x7d
mov cl, byte [esp + eax + 0x10]
mov dl, byte [esp + eax + 0x11]
xor dl, cl
mov byte [esp + eax + 0x11], dl
mov edx, eax
dec eax
test edx, edx
jg 0x40fbcd
mov eax, dword [esp + 0xbc]
test eax, eax
je 0x40fbf9
mov cl, byte [esp + 0x10]
and cl, 0x1f
add cl, 0x40
mov byte [eax], cl
movsx edx, byte [esp + 0x12]
movsx eax, byte [esp + 0x11]
shl edx, 4
lea ecx, [esp + 0x1f]
lea eax, [edx + eax - 0x6b5]
test eax, eax
je 0x40fd7f
cmp eax, 0x34
jg 0x40fd7f
xor edx, edx
lea esi, [eax - 1]
test eax, eax
jle 0x40fc45
mov al, byte [ecx]
mov byte [edi], al
inc edi
inc ecx
cmp al, 0x20
jl 0x40fd9f
movsx eax, al
add edx, eax
mov eax, esi
dec esi
test eax, eax
jg 0x40fc2b
movsx eax, byte [esp + 0x16]
movsx esi, byte [esp + 0x15]
shl eax, 4
and edx, 0xff
mov byte [edi], 0
lea eax, [eax + esi - 0x6b5]
cmp eax, edx
je 0x40fc76
mov eax, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
movsx edx, byte [esp + 0x14]
movsx eax, byte [esp + 0x13]
shl edx, 4
lea eax, [edx + eax - 0x6b5]
test eax, eax
je 0x40fd6f
cmp eax, 0x34
jg 0x40fd6f
xor edx, edx
lea esi, [eax - 1]
test eax, eax
jle 0x40fccd
mov al, byte [ecx]
mov byte [ebp], al
inc ebp
inc ecx
cmp al, 0x20
jl 0x40fcbd
movsx eax, al
add edx, eax
mov eax, esi
dec esi
test eax, eax
jg 0x40fca4
jmp 0x40fccd
mov eax, 9
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
movsx eax, byte [esp + 0x18]
movsx esi, byte [esp + 0x17]
shl eax, 4
and edx, 0xff
mov byte [ebp], 0
lea eax, [eax + esi - 0x6b5]
cmp eax, edx
je 0x40fcff
mov eax, 0xa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
lea edx, [esp + 0x8f]
mov esi, str.LtRrBceHabCT_AhlenN
cmp ecx, edx
jae 0x40fd2e
cmp byte [esi], 0
jne 0x40fd19
mov esi, str.LtRrBceHabCT_AhlenN
mov dl, byte [esi]
mov al, byte [ecx]
inc esi
inc ecx
cmp al, dl
jne 0x40fd5f
lea eax, [esp + 0x8f]
cmp ecx, eax
jb 0x40fd0f
mov ecx, dword [esp + 0xb8]
lea esi, [ebx + 0x80]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
sub eax, 0x14
neg eax
sbb eax, eax
and eax, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
mov eax, 6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
mov eax, 5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
add esp, 0x98
ret
Function at 0x411e30
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 0x422e90
push eax
or esi, 0xffffffff
call fcn.00415590
mov edi, eax
add esp, 8
test edi, edi
jne 0x411e53
or eax, 0xffffffff
pop edi
pop esi
ret
mov al, byte [edi + 0xc]
push ebx
mov bl, 0x10
test bl, al
jne 0x411ea6
push ebp
push edi
push 0x400
push 1
push 0x4291a0
call fcn.004153d0
add esp, 0x10
xor ecx, ecx
test eax, eax
jbe 0x411ea0
mov dl, byte [ecx + 0x4291a0]
mov ebp, esi
and edx, 0xff
and ebp, 0xff
xor edx, ebp
shr esi, 8
mov edx, dword [edx*4 + 0x422f68]
xor esi, edx
inc ecx
cmp ecx, eax
jb 0x411e79
test byte [edi + 0xc], bl
je 0x411e5e
pop ebp
push edi
call fcn.00415320
add esp, 4
mov eax, esi
not eax
pop ebx
pop edi
pop esi
ret
Function at 0x413130
Capabilities:
Get common file path
Get file version info

Disassembly:
sub esp, 0x214
lea eax, [esp + 0xc]
push ebx
push ebp
push esi
push edi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, 0x4220bc
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [esp + 0x22c]
and ecx, 3
lea edx, [esp + 0x20]
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x124]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x4220bc
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x120]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x120]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push eax
and ecx, 3
lea eax, [esp + 0x20]
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.00413bd0
add esp, 8
cmp eax, 0xffffffff
je 0x413231
lea ebx, [esp + 0x1c]
jmp 0x413253
lea ecx, [esp + 0x120]
push 0
push ecx
call fcn.00413bd0
add esp, 8
cmp eax, 0xffffffff
je 0x41330e
lea ebx, [esp + 0x120]
mov ebp, dword [esp + 0x22c]
test ebp, ebp
jne 0x413279
mov eax, dword [esp + 0x230]
test eax, eax
jne 0x413279
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret
lea edx, [esp + 0x18]
push edx
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x4132df
push esi
call fcn.00413e50
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4132c8
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x4220bc
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4132c8
mov eax, dword [esp + 0x10]
mov esi, dword [eax + 8]
mov ebx, dword [eax + 0xc]
jmp 0x4132d0
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
test edi, edi
je 0x4132e7
push edi
call fcn.00413db0
add esp, 4
jmp 0x4132e7
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
test esi, esi
jne 0x4132ef
test ebx, ebx
je 0x41330e
cmp esi, ebp
jb 0x41330e
jne 0x4132fe
cmp ebx, dword [esp + 0x230]
jb 0x41330e
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x214
ret
Function at 0x413320
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x114
mov edx, dword [esp + 0x120]
lea ecx, [esp + 0x10]
push ebx
push ebp
push esi
push edi
push eax
mov eax, dword [esp + 0x130]
push 0x104
push ecx
push str.Default_String
push edx
push eax
xor esi, esi
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x413453
mov al, byte [esp + 0x20]
cmp al, 0x30
je 0x413439
test al, al
lea ecx, [esp + 0x20]
je 0x413381
cmp al, 0x2e
jne 0x413379
inc esi
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x413374
cmp esi, 3
jne 0x413453
lea esi, [esp + 0x20]
cmp dword [0x4238b4], 1
jle 0x4133a7
movsx ecx, byte [esi]
push 8
push ecx
call fcn.00415870
add esp, 8
jmp 0x4133b5
movsx edx, byte [esi]
mov eax, dword [str.________________________________H]
mov al, byte [eax + edx*2]
and eax, 8
test eax, eax
je 0x4133bc
inc esi
jmp 0x41338e
xor edi, edi
lea ebx, [esp + 0x10]
mov al, byte [esi]
mov ecx, esi
cmp al, 0x2e
je 0x4133d6
test al, al
je 0x4133d6
mov al, byte [esi + 1]
inc esi
cmp al, 0x2e
jne 0x4133ca
mov byte [esi], 0
push ecx
inc esi
call fcn.00413500
add esp, 4
test edi, edi
je 0x4133ec
cmp edi, 2
jne 0x4133f1
mov ebp, eax
shl ebp, 0x10
cmp edi, 1
je 0x4133fb
cmp edi, 3
jne 0x4133fd
mov ebp, eax
mov dword [ebx], ebp
inc edi
add ebx, 4
cmp edi, 3
jbe 0x4133c2
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x134]
add ecx, edx
mov edx, dword [esp + 0x1c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x138]
add ecx, edx
mov dword [eax], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
mov ecx, dword [esp + 0x134]
mov edx, dword [esp + 0x138]
mov dword [ecx], 0
mov dword [edx], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x413bf3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00417360
add esp, 4
or eax, 0xffffffff
ret
test al, 1
je 0x413c18
test byte [esp + 8], 2
je 0x413c18
call fcn.004173e0
mov dword [eax], 0xd
call fcn.004173f0
mov dword [eax], 5
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x4141f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, dword [esp + 0x114]
push esi
push edi
test ebx, ebx
je 0x414265
push ebx
call fcn.00414320
add esp, 4
test eax, eax
jne 0x414233
call fcn.004173f0
mov dword [eax], 0xf
call fcn.004173e0
mov dword [eax], 0xd
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x14]
add bl, 0x40
push 0x104
push edx
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1d], 0x3a
mov byte [esp + 0x1e], 0x2e
mov byte [esp + 0x1f], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x414275
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x41430f
inc eax
cmp eax, 0x104
ja 0x41430f
mov edx, dword [esp + 0x120]
mov ecx, dword [esp + 0x124]
test edx, edx
jne 0x4142c7
cmp eax, ecx
jg 0x4142a1
mov eax, ecx
push eax
call fcn.00413e50
mov edx, eax
add esp, 4
test edx, edx
jne 0x4142e2
call fcn.004173e0
mov dword [eax], 0xc
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
cmp eax, ecx
jle 0x4142e2
call fcn.004173e0
mov dword [eax], 0x22
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10c
ret

Function at 0x414320
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x41432e
mov eax, 1
ret
add al, 0x40
mov byte [esp + 5], 0x3a
mov byte [esp + 4], al
lea eax, [esp + 4]
push eax
mov byte [esp + 0xa], 0x5c
mov byte [esp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x41435d
cmp eax, 1
je 0x41435d
mov eax, 1
ret
xor eax, eax
ret

Function at 0x414f70
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x414f87
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x414f89
xor eax, eax
test eax, eax
je 0x414f9a
push eax
call fcn.00417360
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x4151f0
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.004152b0
mov eax, dword [0x4299fc]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x415214
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 [0x4299f8], 1
mov byte [0x4299f4], bl
jne 0x41526e
mov ecx, dword [0x42c1fc]
test ecx, ecx
je 0x41525c
mov esi, dword [0x42c1f8]
sub esi, 4
cmp esi, ecx
jb 0x41525c
mov eax, dword [esi]
test eax, eax
je 0x415255
call eax
mov ecx, dword [0x42c1fc]
sub esi, 4
cmp esi, ecx
jae 0x415247
push 0x422038
push 0x422030
call fcn.004152d0
add esp, 8
push 0x422044
push 0x42203c
call fcn.004152d0
add esp, 8
test ebx, ebx
je 0x41528d
call fcn.004152c0
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x4299fc], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x415660
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f398
push 0x413f28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
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 [0x4299cc], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x4299c8], ecx
shl ecx, 8
add ecx, edx
mov dword [0x4299c4], ecx
shr eax, 0x10
mov dword [0x4299c0], eax
call fcn.004174d0
test eax, eax
jne 0x4156ca
push 0x1c
call fcn.00415840
add esp, 4
call fcn.00416f80
test eax, eax
jne 0x4156dd
push 0x10
call fcn.00415840
add esp, 4
mov dword [ebp - 4], 0
call fcn.004197f0
call fcn.00418480
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x42c1f4], eax
call fcn.00419690
mov dword [0x429a00], eax
test eax, eax
je 0x415710
mov eax, dword [0x42c1f4]
test eax, eax
jne 0x41571a
push 0xffffffffffffffff
call fcn.004151b0
add esp, 4
call fcn.004193e0
call fcn.004192f0
call fcn.00415180
mov esi, dword [0x42c1f4]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x4157f9
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x415761
test al, al
je 0x415761
and eax, 0xff
push eax
call fcn.00419290
add esp, 4
test eax, eax
je 0x41573b
inc esi
mov dword [ebp - 0x64], esi
jmp 0x41573b
cmp byte [esi], 0x22
jne 0x41576a
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x41577a
cmp al, 0x20
ja 0x41577a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x41576a
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x41579b
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x4157a0
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.004151b0
jmp 0x4157de
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
cmp byte [esi], 0x20
jbe 0x41576a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4157f9
Function at 0x415840
Capabilities:
Terminate process

Disassembly:
cmp dword [0x429a08], 1
jne 0x41584e
call fcn.00419a00
mov eax, dword [esp + 4]
push eax
call fcn.00419a40
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x416f80
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.004171a0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x4238d0], eax
je 0x416fd8
push 0x74
push 1
call fcn.0041a5d0
mov esi, eax
add esp, 8
test esi, esi
je 0x416fd8
mov eax, dword [0x4238d0]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x416fd8
push esi
call fcn.00416fe0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x417000
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x4238d0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x41706e
push 0x74
push 1
call fcn.0041a5d0
mov esi, eax
add esp, 8
test esi, esi
je 0x417064
mov ecx, dword [0x4238d0]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x417064
push esi
call fcn.00416fe0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.00415810
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
Function at 0x419690
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x429dd8]
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 0x4196d2
call edi
mov esi, eax
test esi, esi
je 0x4196bc
mov eax, 1
jmp 0x4196cd
call ebp
mov ebx, eax
test ebx, ebx
je 0x4197df
mov eax, 2
mov dword [0x429dd8], eax
cmp eax, 1
jne 0x419772
test esi, esi
jne 0x4196eb
call edi
mov esi, eax
test esi, esi
je 0x4197df
cmp word [esi], 0
mov eax, esi
je 0x419705
add eax, 2
cmp word [eax], 0
jne 0x4196f3
add eax, 2
cmp word [eax], 0
jne 0x4196f3
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 0x419764
push edi
call fcn.00413e50
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x419764
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 0x419756
push ebx
call fcn.00413db0
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 0x4197df
test ebx, ebx
jne 0x419783
call ebp
mov ebx, eax
test ebx, ebx
je 0x4197df
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x41979b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x41978b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x41978b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00413e50
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4197bd
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