joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412260
Capabilities:
Check if file exists

Disassembly:
sub esp, 0xc
mov eax, 0x52
mov byte [esp], al
push esi
mov byte [esp + 5], 0x4e
mov byte [esp + 6], 0x42
mov byte [esp + 7], 0x4f
mov byte [esp + 8], 0x44
mov esi, dword [esp + 0x14]
mov byte [esp + 9], al
mov ax, word [esp + 0x18]
push 0
add al, 0x30
push 0x80
mov byte [esp + 0x13], al
push 3
lea ecx, [esp + 0x10]
push 0
push 3
mov dword [esi], 0
mov byte [esp + 0x1e], 0x56
mov byte [esp + 0x20], 0
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x4122fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x4122d8
cmp eax, 3
jbe 0x4122f1
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4122e6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ax, 0x80b
pop esi
add esp, 0xc
ret 8
mov ax, 0x80c
pop esi
add esp, 0xc
ret 8
mov ax, 0x800
pop esi
add esp, 0xc
ret 8

Function at 0x412310
Capabilities:
Enumerate pe sections
Read file on windows
Write file on windows

Disassembly:
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
mov word [esi + 6], 0xffff
push esi
call fcn.00413310
lea eax, [esp + 0xc]
push 0
mov edi, dword [esp + 0x18]
push eax
xor eax, eax
mov ecx, dword [edi]
mov ax, word [esi + 2]
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
test ebx, ebx
je 0x412362
lea eax, [esp + 0xc]
push 0
push eax
mov ecx, dword [edi]
xor eax, eax
mov ax, word [esi + 2]
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
push esi
call fcn.004132c0
test ebx, ebx
je 0x412374
cmp word [esi + 6], 0xffff
jne 0x41237a
mov word [esi + 6], 0x83b
mov ax, word [esi + 6]
pop edi
pop esi
pop ebx
add esp, 4
ret 8

Function at 0x4127b0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x40
push ebx
push esi
mov bx, word [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov word [esi], 0
cmp bx, 4
jbe 0x4127d3
xor al, al
pop esi
pop ebx
add esp, 0x40
ret 8
lea eax, [esp + 0x28]
push 0x10
push eax
call fcn.00412490
lea eax, [esp + 0x38]
push 0x10
push eax
call fcn.004124f0
lea eax, [esp + 0x18]
push 0x10
push eax
add bl, 0x31
call fcn.00412590
lea eax, [esp + 0x18]
push eax
call fcn.00411bd0
lea ecx, [esp + 0x28]
lea edx, [esp + 8]
movzx eax, ax
push ecx
push 0x10
lea ecx, [esp + 0x40]
push edx
mov byte [esp + eax + 0x24], bl
push 0x426cc8
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x41287f
lea eax, [esp + 8]
push 0x2c
push eax
call fcn.00412790
test ax, ax
je 0x412849
movzx eax, ax
mov byte [esp + eax + 8], 0
cmp byte [esp + 8], 0x30
jne 0x41286b
mov al, byte [esp + 9]
and al, 0xdf
cmp al, 0x58
jne 0x41286b
lea eax, [esp + 0xa]
push esi
push eax
call fcn.00411cd0
test al, al
jne 0x41287f
jmp 0x41287a
lea eax, [esp + 8]
push esi
push eax
call fcn.00411c30
test al, al
jne 0x41287f
mov word [esi], 0
mov ax, word [esi]
test ax, ax
je 0x412897
cmp ax, 0xffff
je 0x412897
mov al, 1
pop esi
pop ebx
add esp, 0x40
ret 8
xor al, al
pop esi
pop ebx
add esp, 0x40
ret 8
Function at 0x4128b0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x40
push ebx
push esi
mov bx, word [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov word [esi], 0
cmp bx, 4
jbe 0x4128d3
xor al, al
pop esi
pop ebx
add esp, 0x40
ret 8
lea eax, [esp + 0x28]
push 0x10
push eax
call fcn.00412490
lea eax, [esp + 0x38]
push 0x10
push eax
call fcn.004124f0
lea eax, [esp + 0x18]
push 0x10
push eax
add bl, 0x31
call fcn.00412590
lea eax, [esp + 0x18]
push eax
call fcn.00411bd0
lea ecx, [esp + 0x28]
lea edx, [esp + 8]
movzx eax, ax
push ecx
push 0x10
lea ecx, [esp + 0x40]
push edx
mov byte [esp + eax + 0x24], bl
push 0x426cc8
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x41297a
lea eax, [esp + 8]
push 0x2c
push eax
call fcn.00412790
test ax, ax
je 0x41297a
movzx eax, ax
mov cl, byte [esp + eax + 9]
and cl, 0xdf
cmp cl, 0x54
jne 0x41297a
cmp byte [esp + eax + 0xa], 0x3a
jne 0x41297a
lea eax, [esp + eax + 0xb]
push esi
push eax
call fcn.00411c30
test al, al
je 0x412975
mov ax, word [esi]
cmp ax, 1
jl 0x412975
cmp ax, 6
jle 0x41297a
mov word [esi], 0
cmp word [esi], 1
pop esi
sbb al, al
pop ebx
inc al
add esp, 0x40
ret 8

Function at 0x412990
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x50
lea eax, [esp]
push esi
push 0x10
push eax
call fcn.00412490
lea eax, [esp + 0x24]
push 0x10
push eax
call fcn.004124f0
lea eax, [esp + 0x14]
push 0x10
push eax
call fcn.00412650
lea eax, [esp + 0x44]
push 0x10
push eax
call fcn.00412610
lea eax, [esp + 4]
lea ecx, [esp + 0x34]
lea edx, [esp + 0x14]
push eax
lea eax, [esp + 0x28]
push 0x10
push ecx
push 0x426cc8
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, eax
test esi, esi
je 0x412a00
lea eax, [esp + 0x34]
lea ecx, [esp + 0x44]
push eax
push ecx
call fcn.00411a50
mov ecx, dword [esp + 0x5c]
mov byte [ecx], al
cmp esi, 1
pop esi
sbb al, al
add esp, 0x50
inc al
ret 8

Function at 0x412a10
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x30
lea eax, [esp]
push 0x10
push eax
call fcn.00412490
lea eax, [esp + 0x20]
push 0x10
push eax
call fcn.004124f0
lea eax, [esp + 0x10]
push 0x10
push eax
call fcn.004125d0
lea eax, [esp]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push eax
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esp + 0x34]
cmp eax, 1
mov word [ecx], ax
sbb cl, cl
add esp, 0x30
inc cl
mov al, cl
ret 4
Function at 0x412a70
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x70
lea eax, [esp]
push esi
mov esi, dword [esp + 0x78]
push 0x10
mov word [esi], 0
push 0
push eax
call fcn.00411bf0
lea eax, [esp + 0x14]
push 0x10
push eax
call fcn.00412490
lea eax, [esp + 0x34]
push 0x10
push eax
call fcn.004124f0
lea eax, [esp + 0x24]
push 0x10
push eax
call fcn.00412540
lea eax, [esp + 0x44]
push 0x10
push eax
call fcn.004126b0
lea eax, [esp + 0x54]
push 0x10
push eax
call fcn.00412740
lea eax, [esp + 0x64]
push 0x10
push eax
call fcn.00412700
lea eax, [esp + 0x14]
lea ecx, [esp + 4]
lea edx, [esp + 0x24]
push eax
lea eax, [esp + 0x38]
push 0x10
push ecx
push 0x426cc8
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x412b44
lea eax, [esp + 0x44]
lea ecx, [esp + 4]
push eax
push ecx
call fcn.00411a50
test al, al
je 0x412b12
mov word [esi], 2
jmp 0x412b44
lea eax, [esp + 0x54]
lea ecx, [esp + 4]
push eax
push ecx
call fcn.00411a50
test al, al
je 0x412b2c
mov word [esi], 3
jmp 0x412b44
lea eax, [esp + 0x64]
lea ecx, [esp + 4]
push eax
push ecx
call fcn.00411a50
test al, al
je 0x412b44
mov word [esi], 1
cmp word [esi], 1
pop esi
sbb al, al
add esp, 0x70
inc al
ret 4

Function at 0x413150
Capabilities:
Decrypt data using tea
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov edx, 0xc6ef3720
push edi
mov esi, dword [eax]
push ebp
mov edi, dword [eax + 4]
mov ebx, 0x1f
mov ecx, dword [esp + 0x18]
mov eax, esi
mov ebp, esi
shl eax, 4
add edx, 0x61c88647
shr ebp, 5
add eax, dword [ecx + 8]
add ebp, dword [ecx + 0xc]
xor eax, ebp
lea ebp, [edx + esi - 0x61c88647]
xor eax, ebp
sub edi, eax
mov ebp, edi
mov eax, edi
shl ebp, 4
shr eax, 5
add ebp, dword [ecx]
add eax, dword [ecx + 4]
xor ebp, eax
lea eax, [edi + edx - 0x61c88647]
xor ebp, eax
mov eax, ebx
sub esi, ebp
dec ebx
test eax, eax
jne 0x41316b
mov eax, dword [esp + 0x14]
pop ebp
mov dword [eax], esi
mov dword [eax + 4], edi
pop edi
pop esi
pop ebx
ret 8

Function at 0x413210
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
xor edx, edx
push edi
mov esi, dword [eax]
push ebp
mov edi, dword [eax + 4]
mov ebx, 0x1f
mov ecx, dword [esp + 0x18]
sub edx, 0x61c88647
mov eax, edi
shl eax, 4
mov ebp, edi
shr ebp, 5
add eax, dword [ecx]
add ebp, dword [ecx + 4]
xor eax, ebp
lea ebp, [edi + edx]
xor eax, ebp
add esi, eax
mov ebp, esi
mov eax, esi
shl ebp, 4
shr eax, 5
add ebp, dword [ecx + 8]
add eax, dword [ecx + 0xc]
xor ebp, eax
lea eax, [edx + esi]
xor ebp, eax
mov eax, ebx
add edi, ebp
dec ebx
test eax, eax
jne 0x413228
mov eax, dword [esp + 0x14]
pop ebp
mov dword [eax], esi
mov dword [eax + 4], edi
pop edi
pop esi
pop ebx
ret 8
Function at 0x4133c0
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x10
lea ecx, [esp]
push esi
push eax
push ecx
call fcn.00413370
lea ecx, [esp + 4]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [esp + 0x18]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x41342f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x41340b
cmp eax, 3
jbe 0x413424
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x413419
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ax, 0x20b
pop esi
add esp, 0x10
ret 8
mov ax, 0x20c
pop esi
add esp, 0x10
ret 8
mov ax, 0x200
pop esi
add esp, 0x10
ret 8

Function at 0x413440
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x10
mov eax, 0x5c
mov byte [esp], al
push esi
mov byte [esp + 5], al
mov byte [esp + 7], al
mov byte [esp + 6], 0x2e
mov byte [esp + 8], 0x53
mov byte [esp + 0xa], 0x74
mov byte [esp + 0xc], 0x6c
mov byte [esp + 0xd], 0x55
mov eax, 0x6e
push 0
mov byte [esp + 0xd], al
mov byte [esp + 0xf], al
mov byte [esp + 0x12], 0x73
mov byte [esp + 0x13], 0x62
lea ecx, [esp + 8]
push 0x80
mov byte [esp + 0x18], 0
push 3
push 0
push 3
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [esp + 0x18]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x4134e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x4134c2
cmp eax, 3
jbe 0x4134db
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4134d0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ax, 0x20b
pop esi
add esp, 0x10
ret 8
mov ax, 0x20c
pop esi
add esp, 0x10
ret 8
mov ax, 0x200
pop esi
add esp, 0x10
ret 8

Function at 0x413510
Capabilities:
Read file on windows

Disassembly:
sub esp, 4
push esi
push edi
mov esi, dword [esp + 0x14]
mov word [esi + 6], 0xffff
push esi
call fcn.00413310
lea eax, [esp + 8]
push 0
mov ecx, dword [esp + 0x14]
push eax
xor eax, eax
mov edx, dword [ecx]
mov ax, word [esi + 2]
push eax
push esi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
push esi
call fcn.004132c0
cmp edi, 1
jne 0x413556
cmp word [esi + 6], 0xffff
jne 0x41355c
mov word [esi + 6], 0x23b
mov ax, word [esi + 6]
pop edi
pop esi
add esp, 4
ret 8
Function at 0x4136d0
Capabilities:
Contain obfuscated stackstrings
Read .ini file

Disassembly:
sub esp, 0x24
mov eax, 0x53
mov byte [esp + 8], al
mov byte [esp + 0xa], al
mov byte [esp + 9], 0x59
mov byte [esp + 0xb], 0x54
mov byte [esp + 0xc], 0x45
mov byte [esp + 0xd], 0x4d
mov ecx, 0x49
mov byte [esp + 0x14], al
mov byte [esp + 0xf], cl
mov byte [esp + 0x11], cl
mov byte [esp + 0xe], 0x2e
mov byte [esp + 0x10], 0x4e
mov byte [esp + 0x12], 0
mov byte [esp + 0x16], 0x6e
mov byte [esp + 0x17], 0x74
mov edx, 0x65
mov byte [esp + 0x1c], al
mov byte [esp + 0x15], dl
mov byte [esp + 0x1a], dl
mov byte [esp + 0x18], 0x69
mov byte [esp + 0x19], 0x6e
mov byte [esp + 0x1b], 0x6c
mov byte [esp + 0x1e], 0x74
mov byte [esp + 0x1d], dl
mov byte [esp], cl
mov byte [esp + 0x1f], 0x75
mov byte [esp + 0x20], 0x70
mov byte [esp + 0x21], 0
mov byte [esp + 1], 0x6f
mov byte [esp + 2], 0x45
mov byte [esp + 3], 0x6e
mov byte [esp + 4], 0x74
lea eax, [esp + 8]
lea ecx, [esp]
lea edx, [esp + 0x14]
push eax
mov byte [esp + 9], 0x72
mov byte [esp + 0xa], 0x79
mov byte [esp + 0xb], 0
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
add esp, 0x24
ret
Function at 0x414000
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 4
mov byte [esp + 3], 0
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
push ebp
lea eax, [esi + 4]
mov dword [esi], eax
mov cx, word [edi + 4]
mov word [esi + 4], cx
mov ax, word [edi + 0xa]
mov word [esi + 6], ax
mov dx, word [edi + 0x14]
mov word [esi + 0x16], dx
lea edx, [esi + 0x24]
mov cx, word [edi + 8]
mov word [esi + 8], cx
lea ecx, [esi + 4]
mov ax, word [edi + 6]
push ecx
mov word [esi + 0xa], ax
mov dword [esi + 0x10], edx
call fcn.00413f10
test al, al
jne 0x414171
test byte [edi + 0x1c], 4
je 0x414063
mov byte [esp + 0x13], 1
xor cx, cx
xor dx, dx
movzx ebp, cx
lea eax, [ebp*8]
sub eax, ebp
shl eax, 2
shl ebp, 2
lea eax, [eax + eax*4]
mov word [eax + esi + 0x36], cx
lea ebx, [eax + esi]
cmp cx, 3
lea eax, [ebp + ebp*8]
lea ebp, [eax + edi]
mov ax, word [ebp + 0xe]
mov word [ebx + 0x9c], ax
mov ax, word [ebp + 0x12]
mov word [ebx + 0x8e], ax
mov ax, word [ebp + 0x16]
mov word [ebx + 0x34], ax
mov ax, word [ebp + 0x18]
mov word [ebx + 0x32], ax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 0x24]
mov dword [ebx + 0x28], eax
lea eax, [esi + 4]
mov dword [ebx + 0xa4], eax
jne 0x4140e0
mov dword [ebx + 0xa8], 0
jmp 0x4140ec
lea eax, [ebx + 0xb0]
mov dword [ebx + 0xa8], eax
test cx, cx
jne 0x4140fd
mov dword [ebx + 0xac], 0
jmp 0x414106
lea eax, [ebx - 0x68]
mov dword [ebx + 0xac], eax
cmp byte [esp + 0x13], 0
je 0x41411b
cmp word [ebp + 0xe], 0xffff
jne 0x41411b
or dword [ebx + 0x2c], 8
jmp 0x414121
mov word [ebx + 0x36], dx
inc dx
inc cx
cmp cx, 4
jb 0x414069
push esi
call fcn.00413f80
push esi
call fcn.00413ec0
push esi
call fcn.00413e80
mov eax, dword [esi + 0x10]
push eax
call fcn.00414f70
mov word [esi + 0xc], ax
test ax, ax
je 0x414167
add esi, 4
push esi
call fcn.00414de0
xor ax, ax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 8
push esi
call fcn.00413e50
mov ax, 9
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 8

Function at 0x4171c0
Capabilities:
Create thread

Disassembly:
push esi
push edi
xor edi, edi
push 0x74
push 1
call fcn.0041af80
add esp, 8
mov esi, eax
cmp esi, edi
je 0x417220
push esi
call fcn.0041ae40
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
add esp, 4
mov dword [esi + 0x48], eax
push edx
mov eax, dword [esp + 0x20]
mov dword [esi + 0x4c], ecx
mov ecx, dword [esp + 0x14]
push eax
mov edx, dword [esp + 0x14]
push esi
mov dword [esi + 4], 0xffffffff
push 0x417240
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x417238
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call fcn.00417150
add esp, 4
test edi, edi
je 0x417236
push edi
call fcn.00417f40
add esp, 4
xor eax, eax
pop edi
pop esi
ret
Function at 0x417e40
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
call fcn.00417f00
cmp dword [0x428360], 1
mov esi, dword [esp + 0x10]
jne 0x417e63
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x42835c], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x428358], bl
jne 0x417ebd
cmp dword [0x43744c], 0
je 0x417eab
mov edi, dword [0x437448]
sub edi, 4
cmp edi, dword [0x43744c]
jb 0x417eab
mov eax, dword [edi]
test eax, eax
je 0x417ea0
call eax
sub edi, 4
cmp edi, dword [0x43744c]
jae 0x417e98
push 0x42501c
push 0x425014
call fcn.00417f20
add esp, 8
push 0x425024
push 0x425020
call fcn.00417f20
add esp, 8
test ebx, ebx
je 0x417edc
call fcn.00417f10
pop edi
pop esi
pop ebx
ret
mov dword [0x428360], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x417fe0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423288
push 0x417660
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x428324], eax
xor eax, eax
mov al, byte [0x428325]
mov dword [0x428330], eax
mov eax, dword [0x428324]
shr dword [0x428324], 0x10
and eax, 0xff
mov dword [0x42832c], eax
shl eax, 8
add eax, dword [0x428330]
mov dword [0x428328], eax
call fcn.0041a3d0
test eax, eax
jne 0x418054
push 0x1c
call fcn.00418190
add esp, 4
call fcn.0041ade0
test eax, eax
jne 0x418067
push 0x10
call fcn.00418190
add esp, 4
mov dword [ebp - 4], 0
call fcn.0041d1e0
call fcn.00418c30
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x437444], eax
call fcn.0041d050
mov dword [0x4284d0], eax
test eax, eax
je 0x41809a
cmp dword [0x437444], 0
jne 0x4180a4
push 0xffffffffffffffff
call fcn.00417e00
add esp, 4
call fcn.0041cde0
call fcn.0041ccf0
call fcn.00417dd0
mov esi, dword [0x437444]
mov al, byte [esi]
cmp al, 0x22
je 0x4180cb
cmp al, 0x20
jbe 0x4180f8
inc esi
cmp byte [esi], 0x20
ja 0x4180c3
jmp 0x4180f8
inc esi
cmp byte [esi], 0x22
je 0x4180f7
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x4180f2
xor eax, eax
mov al, bl
push eax
call fcn.0041cc90
add esp, 4
test eax, eax
je 0x4180ec
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x4180d4
cmp byte [esi], 0x22
jne 0x4180f8
inc esi
cmp byte [esi], 0
je 0x418108
cmp byte [esi], 0x20
ja 0x418108
inc esi
cmp byte [esi], 0
jne 0x4180fd
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x41812c
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.00417e00
jmp 0x41816d
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41ade0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.0041a410
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x4295f8], eax
cmp eax, 0xffffffff
jne 0x41adfa
xor eax, eax
pop esi
ret
push 0x74
push 1
call fcn.0041af80
add esp, 8
mov esi, eax
test esi, esi
je 0x41ae3c
push esi
mov eax, dword [0x4295f8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x41ae3c
push esi
call fcn.0041ae40
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov eax, 1
mov dword [esi + 4], 0xffffffff
pop esi
ret
xor eax, eax
pop esi
ret

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

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x4295f8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x41aec3
push 0x74
push 1
call fcn.0041af80
add esp, 8
mov edi, eax
test edi, edi
je 0x41aeb9
push edi
mov eax, dword [0x4295f8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x41aeb9
push edi
call fcn.0041ae40
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [edi], eax
mov dword [edi + 4], 0xffffffff
jmp 0x41aec3
push 0x10
call fcn.00418190
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
ret

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

Disassembly:
cmp dword [0x4295f8], 0xffffffff
push esi
je 0x41af6f
mov esi, dword [esp + 8]
test esi, esi
jne 0x41aef8
mov eax, dword [0x4295f8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x41af61
mov eax, dword [esi + 0x24]
test eax, eax
je 0x41af08
push eax
call fcn.00417150
add esp, 4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x41af18
push eax
call fcn.00417150
add esp, 4
mov eax, dword [esi + 0x30]
test eax, eax
je 0x41af28
push eax
call fcn.00417150
add esp, 4
mov eax, dword [esi + 0x38]
test eax, eax
je 0x41af38
push eax
call fcn.00417150
add esp, 4
mov eax, dword [esi + 0x40]
test eax, eax
je 0x41af48
push eax
call fcn.00417150
add esp, 4
mov eax, dword [esi + 0x44]
test eax, eax
je 0x41af58
push eax
call fcn.00417150
add esp, 4
push esi
call fcn.00417150
add esp, 4
push 0
mov eax, dword [0x4295f8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
ret
Function at 0x41d050
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
push ebx
push esi
push edi
xor ebx, ebx
push ebp
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x4296b0], ebx
jne 0x41d09f
call esi
cmp eax, ebx
mov edi, eax
je 0x41d07d
mov dword [0x4296b0], 1
jmp 0x41d09f
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x41d095
mov dword [0x4296b0], 2
jmp 0x41d09f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x4296b0], 1
jne 0x41d14e
test edi, edi
jne 0x41d0c2
call esi
mov edi, eax
test edi, edi
jne 0x41d0c2
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x41d0dc
add esi, 2
cmp word [esi], 0
jne 0x41d0ca
add esi, 2
cmp word [esi], 0
jne 0x41d0ca
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x41d13d
push ebp
call fcn.00417740
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x41d13d
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x41d12c
push ebx
call fcn.00417150
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x4296b0], 2
jne 0x41d1d2
test ebx, ebx
jne 0x41d171
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x41d171
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x41d186
inc ebp
cmp byte [ebp], 0
jne 0x41d178
inc ebp
cmp byte [ebp], 0
jne 0x41d178
sub ebp, ebx
inc ebp
push ebp
call fcn.00417740
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x41d1ab
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret