joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404030
Capabilities:
Move file

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
mov eax, 0
jne 0x40404f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x404062
push eax
call fcn.00405c30
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x408820
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 [0x4208ec], ebx
jne 0x40886f
call esi
cmp eax, ebx
mov edi, eax
je 0x40884d
mov dword [0x4208ec], 1
jmp 0x40886f
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x408865
mov dword [0x4208ec], 2
jmp 0x40886f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x4208ec], 1
jne 0x40891e
test edi, edi
jne 0x408892
call esi
mov edi, eax
test edi, edi
jne 0x408892
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x4088ac
add esi, 2
cmp word [esi], 0
jne 0x40889a
add esi, 2
cmp word [esi], 0
jne 0x40889a
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 0x40890d
push ebp
call fcn.00404f60
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x40890d
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 0x4088fc
push ebx
call fcn.00404ef0
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 [0x4208ec], 2
jne 0x4089a2
test ebx, ebx
jne 0x408941
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x408941
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x408956
inc ebp
cmp byte [ebp], 0
jne 0x408948
inc ebp
cmp byte [ebp], 0
jne 0x408948
sub ebp, ebx
inc ebp
push ebp
call fcn.00404f60
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x40897b
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
Function at 0x408cf0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x420918
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x408d17
add eax, 8
inc ecx
cmp eax, 0x4209a8
jb 0x408d08
cmp dword [ecx*8 + 0x420918], edx
lea ebx, [ecx*8]
jne 0x408edb
cmp dword [0x42029c], 1
je 0x408e97
cmp dword [0x42029c], 0
jne 0x408d4e
cmp dword [0x4202a0], 1
je 0x408e97
cmp edx, 0xfc
je 0x408edb
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x408d8b
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x408dcf
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x41c0f4
push ebp
call fcn.0040b580
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41fcfc
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x42091c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.0040b4e0
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
cmp dword [0x425500], 0
je 0x408ead
mov eax, dword [0x425500]
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x408eb7
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x42091c]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x409c90
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x418
push ebx
push esi
push edi
push ebp
xor edi, edi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], edi
cmp ebp, edi
jne 0x409cb8
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov edx, dword [esp + 0x42c]
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x425500
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ebx, dword [esp + 0x18]
shl eax, 2
lea ecx, [eax + eax*8]
mov eax, dword [ebx]
mov dword [esp + 0x1c], ecx
test byte [eax + ecx + 4], 0x20
je 0x409cf9
push 2
push 0
push edx
call fcn.00409f10
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x409d95
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x430]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x409dce
lea esi, [esp + 0x24]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x409d5c
mov al, byte [ebx]
inc ebx
cmp al, 0xa
jne 0x409d4a
mov byte [esi], 0xd
inc edi
inc esi
mov byte [esi], al
inc esi
mov eax, esi
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x409d31
lea eax, [esp + 0x24]
push 0
sub esi, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push esi
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x409dc4
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp eax, esi
jge 0x409d1c
jmp 0x409dce
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x409dc4
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x409dce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x409e7a
cmp dword [esp + 0x10], 0
je 0x409e2a
cmp dword [esp + 0x10], 5
jne 0x409e0d
call fcn.00405cb0
mov dword [eax], 9
call fcn.00405cc0
mov ecx, dword [esp + 0x10]
pop ebp
pop edi
mov dword [eax], ecx
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00405c30
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x409e54
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x409e54
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
call fcn.00405cb0
mov dword [eax], 0x1c
call fcn.00405cc0
pop ebp
mov dword [eax], 0
mov eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, edi
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x40cb10
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1008
call fcn.00405670
push ebx
push esi
push edi
xor ebx, ebx
mov esi, dword [esp + 0x1018]
push ebp
push 1
push ebx
push esi
call fcn.00409f10
mov dword [esp + 0x1c], eax
add esp, 0xc
cmp eax, 0xffffffff
je 0x40cc32
push 2
push ebx
push esi
call fcn.00409f10
add esp, 0xc
cmp eax, 0xffffffff
je 0x40cc32
mov ecx, dword [esp + 0x1020]
mov ebp, ecx
sub ebp, eax
test ebp, ebp
jle 0x40cbd3
lea edi, [esp + 0x18]
xor eax, eax
mov ecx, 0x400
push 0x8000
rep stosd dword es:[edi], eax
push esi
call fcn.0040d500
mov dword [esp + 0x1c], eax
add esp, 8
mov eax, 0x1000
cmp ebp, eax
jge 0x40cb8e
mov eax, ebp
push eax
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.00409c90
add esp, 0xc
mov edi, eax
cmp edi, 0xffffffff
je 0x40cbac
sub ebp, edi
test ebp, ebp
jg 0x40cb83
jmp 0x40cbc3
call fcn.00405cc0
cmp dword [eax], 5
jne 0x40cbc1
call fcn.00405cb0
mov dword [eax], 0xd
mov ebx, edi
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.0040d500
add esp, 8
jmp 0x40cc15
jge 0x40cc15
push 0
push ecx
push esi
call fcn.00409f10
add esp, 0xc
push esi
call fcn.0040a590
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, 1
sbb ebx, ebx
cmp ebx, 0xffffffff
jne 0x40cc15
call fcn.00405cb0
mov dword [eax], 0xd
call fcn.00405cc0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
mov eax, dword [esp + 0x10]
push 0
push eax
push esi
call fcn.00409f10
add esp, 0xc
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1008
ret
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1008
ret
Function at 0x40d160
Capabilities:
Get geographical location

Disassembly:
push ebx
mov eax, dword [0x422228]
push esi
test eax, eax
push edi
push ebp
jne 0x40d1a8
push 0
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0
push 1
push 0
call esi
test eax, eax
je 0x40d188
mov eax, 2
jmp 0x40d1ae
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40d1a1
mov eax, 1
jmp 0x40d1ae
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [0x422228], eax
cmp eax, 2
jne 0x40d1d3
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov ebx, dword [esp + 0x18]
push ecx
push edx
push ebx
call esi
pop ebp
pop edi
pop esi
pop ebx
ret
mov dword [0x422228], eax
cmp eax, 1
jne 0x40d26f
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x40d1ef
mov edi, dword [0x421410]
mov eax, dword [esp + 0x18]
push 0
mov ebx, dword [esp + 0x18]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebp, eax
test ebp, ebp
jne 0x40d210
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
lea eax, [ebp*2]
push eax
call fcn.00404f60
add esp, 4
mov esi, eax
test esi, esi
jne 0x40d22d
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x18]
push ebp
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40d264
mov eax, dword [esp + 0x20]
push 0
push 0
test eax, eax
jne 0x40d274
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x40d28f
push esi
call fcn.00404ef0
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
push eax
mov eax, dword [esp + 0x28]
push eax
push 0xffffffffffffffff
push esi
push 0x220
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x40d264
push esi
call fcn.00404ef0
add esp, 4
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41147f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
push ebp
mov edi, ecx
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x4114c1
call fcn.00418043
mov ebp, dword [eax + 0xc]
push 0xf0
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4114c1
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4114b8
xor eax, eax
jmp 0x4114c9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004114d0
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x412a2d
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
cmp dword [eax + 4], 0x100
jne 0x412a72
cmp dword [eax + 8], 0x70
jne 0x412a72
mov eax, dword [eax + 0xc]
shr eax, 0x10
test ah, 0x40
jne 0x412a72
push 0x10
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
call esi
test ax, ax
jl 0x412a72
push 0x11
call esi
test ax, ax
jl 0x412a72
push 0x12
call esi
test ax, ax
mov eax, 1
jge 0x412a74
xor eax, eax
pop esi
ret 4
Function at 0x4142cb
Capabilities:
Get disk information

Disassembly:
mov eax, 0x4143aa
call fcn.0040478c
sub esp, 0x150
lea eax, [ebp - 0x18]
push ebx
push esi
push edi
mov ebx, 0x104
push eax
mov edi, dword [ebp + 8]
push edi
mov esi, dword [ebp + 0xc]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x414318
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x10]
xor ebx, ebx
call fcn.00412c71
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ebx
push eax
push edi
call fcn.004143bc
push ebx
lea eax, [ebp - 0x14]
push ebx
lea ecx, [ebp - 0x1c]
push eax
push ecx
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x414357
mov dword [ebp - 4], 0xffffffff
call fcn.004143b4
jmp 0x414303
test byte [ebp - 0x14], 2
jne 0x414364
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [ebp - 0x14], 4
jne 0x414394
lea eax, [ebp - 0x15c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x414394
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 4], 0xffffffff
call fcn.004143b4
mov eax, 1
jmp 0x414305

Function at 0x414f6e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
push edi
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
mov eax, 0x100
cmp edi, eax
ja 0x414fb5
push eax
lea eax, [ebp - 0x100]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, edi
jne 0x414fb5
push esi
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x414fbf
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x41554f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
cmp dword [ecx + 0x7c], 0
mov esi, ecx
je 0x415597
push dword [ebp + 8]
call fcn.00419517
mov esi, eax
test esi, esi
jne 0x415571
xor eax, eax
jmp 0x4155c2
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, 1
sbb eax, eax
neg eax
jmp 0x4155c2
push dword [ebp + 0x10]
push 0x41b17c
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x10]
push dword [esi + 0x90]
push edx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x415cff
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ebp
mov edi, ecx
push 5
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov ebx, eax
test ebx, ebx
je 0x415d95
mov ebp, 0x18000000
push ebx
call fcn.0040eef1
mov esi, eax
test esi, esi
je 0x415d86
mov eax, dword [edi + 0x1c]
cmp eax, ebx
je 0x415d86
push ebx
push eax
call fcn.00415b53
test eax, eax
je 0x415d86
push 0xfffffffffffffff0
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongA]
cmp dword [esp + 0x14], 0
jne 0x415d6f
mov ecx, eax
and ecx, ebp
cmp ecx, 0x10000000
jne 0x415d68
push 0
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
or byte [esi + 0x24], 2
jmp 0x415d86
cmp dword [esp + 0x14], 0
je 0x415d86
test ebp, eax
jne 0x415d86
test byte [esi + 0x24], 2
je 0x415d86
push 4
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [esi + 0x24], 0xfd
push 2
push ebx
call dword [sym.imp.USER32.dll_GetWindow]
mov ebx, eax
test ebx, ebx
jne 0x415d1f
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x418b29
Capabilities:
Allocate thread local storage

Disassembly:
push esi
xor eax, eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 4], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x18], 4
mov dword [ecx + 8], 1
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x418b5a
call fcn.0040d914
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret
Function at 0x418cd3
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, 0x418d78
call fcn.0040478c
sub esp, 4
push ebx
push esi
push edi
mov edi, ecx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x418d0d
mov edx, dword [ebp + 8]
cmp dword [ebx + 8], edx
jg 0x418dd2
cmp dword [ebp + 0xc], 0
je 0x418dd2
test ebx, ebx
jne 0x418d5e
push 0x10
call fcn.00418af9
mov dword [ebp - 0x10], eax
mov esi, eax
mov dword [ebp - 4], 0
test esi, esi
je 0x418d44
mov ebx, esi
mov dword [esi], vtable.CNoTrackObject.0
mov byte [ebp - 4], 1
mov byte [ebp - 4], 0
mov dword [esi], vtable.CThreadData.0
jmp 0x418d46
xor ebx, ebx
xor eax, eax
push ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [edi + 0x14]
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
call fcn.00418a99
mov eax, dword [ebx + 0xc]
lea esi, [edi + 0xc]
test eax, eax
jne 0x418d8b
mov eax, dword [esi]
shl eax, 2
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x418d9a
push 2
mov ecx, dword [esi]
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov dword [ebx + 0xc], eax
cmp dword [ebx + 0xc], 0
jne 0x418da8
call fcn.0040d914
mov eax, dword [ebx + 8]
mov ecx, dword [esi]
sub ecx, eax
shl ecx, 2
shl eax, 2
push ecx
push 0
add eax, dword [ebx + 0xc]
push eax
call fcn.00404c90
add esp, 0xc
mov ecx, dword [esi]
mov dword [ebx + 8], ecx
push ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [ecx + edx*4], eax
mov eax, dword [ebp - 0xc]
mov dword fs:[0], eax
mov esp, ebp
pop ebp
ret 8

Function at 0x418e3f
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 1
mov dword [ebp - 8], 1
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov edi, ecx
cmp dword [esi + 8], 1
jle 0x418ec0
mov dword [ebp - 0xc], 8
mov ebx, 4
cmp dword [ebp + 0xc], 0
je 0x418e94
mov eax, dword [ebp - 0xc]
mov edx, dword [edi + 0x10]
mov ecx, dword [ebp + 0xc]
cmp dword [edx + eax + 4], ecx
je 0x418e94
mov eax, dword [esi + 0xc]
cmp dword [eax + ebx], 0
je 0x418eae
mov dword [ebp - 4], 0
jmp 0x418eae
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + ebx]
test ecx, ecx
je 0x418ea4
push 1
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [esi + 0xc]
mov dword [eax + ebx], 0
add ebx, 4
inc dword [ebp - 8]
add dword [ebp - 0xc], 8
mov eax, dword [ebp - 8]
cmp dword [esi + 8], eax
jg 0x418e6d
cmp dword [ebp - 4], 0
je 0x418eee
push esi
lea ecx, [edi + 0x14]
call fcn.00418aac
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x418ee4
push 1
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x418f50
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
cmp dword [ecx], 0
mov esi, ecx
jne 0x418f8e
cmp dword [0x423fc8], 0
jne 0x418f81
mov ecx, 0x423fd0
test ecx, ecx
je 0x418f77
call fcn.00418b29
mov dword [0x423fc8], eax
jmp 0x418f81
mov dword [0x423fc8], 0
mov ecx, dword [0x423fc8]
call fcn.00418b68
mov dword [esi], eax
mov edi, dword [esi]
mov eax, dword [0x423fc8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x418fae
cmp dword [eax + 8], edi
jle 0x418fae
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x418fb0
xor edi, edi
test edi, edi
jne 0x418fc8
call dword [esp + 0xc]
push eax
mov edi, eax
push dword [esi]
mov ecx, dword [0x423fc8]
call fcn.00418cd3
mov eax, edi
pop edi
pop esi
ret 4

Function at 0x419565
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ecx + 0x7c], 0
push esi
push edi
je 0x4195bc
push dword [ebp + 8]
call fcn.00419517
mov esi, eax
test esi, esi
jne 0x419586
mov eax, dword [ebp + 0x10]
jmp 0x4195d1
lea eax, [ebp - 8]
lea ecx, [ebp - 4]
push eax
lea edx, [ebp - 0xc]
mov dword [ebp - 8], 4
push ecx
push edx
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x4195b7
mov eax, dword [ebp - 4]
jmp 0x4195d1
mov eax, dword [ebp + 0x10]
jmp 0x4195d1
push dword [ecx + 0x90]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41a640
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x18
mov al, byte [0x49d350]
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov byte [esp + 0xc], 0x20
mov byte [esp + 0xd], al
mov dword [esp + 0xe], 0x3e3c0928
mov dword [esp + 0x12], 0x2d2b3d3a
mov dword [esp + 0x16], 0x7e212f2a
mov dword [esp + 0x1a], 0x5b5e7c26
mov word [esp + 0x1e], 0x3f2e
mov byte [esp + 0x20], 0
mov edi, ebp
test ebp, ebp
je 0x41a6ab
mov dl, byte [ebp]
test dl, dl
je 0x41a6ab
lea ecx, [esp + 0xc]
mov al, 0x20
cmp dl, al
je 0x41a6fe
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x41a697
mov dl, byte [edi + 1]
inc edi
test dl, dl
jne 0x41a691
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41a6b0
sub eax, edx
lea edi, [eax + ebp - 1]
cmp edi, ebp
jbe 0x41a6d0
mov al, byte [edi]
cmp al, 0x20
je 0x41a6cb
cmp al, 9
jne 0x41a6d0
dec edi
cmp edi, ebp
ja 0x41a6c1
mov esi, edi
sub esi, ebp
inc esi
cmp esi, 0xfd
jbe 0x41a705
cmp byte [esp + 0x30], 0
je 0x41a6f3
mov ecx, dword [esp + 0x28]
push ebp
push 0x492298
call fcn.00429900
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x18
ret 0xc
cmp edi, ebp
jbe 0x41a6d0
dec edi
jmp 0x41a6bd
push esi
push ebp
push ebx
call fcn.0047a8e0
add esp, 0xc
mov eax, edi
pop edi
mov byte [esi + ebx], 0
pop esi
pop ebp
add esp, 0x18
ret 0xc

Function at 0x431bf2
Capabilities:
Encode data using xor

Disassembly:
push edi
push dword [esp + 0x10]
call 0x3cd710
xor edi, edi
pop ecx
cmp dword [esp + 0xc], edi
jbe 0x431c1c
push esi
mov eax, dword [esp + 0xc]
lea esi, [edi + eax]
call 0x3cd880
xor byte [esi], al
inc edi
cmp edi, dword [esp + 0x10]
jb 0x431c06
pop esi
pop edi
ret 0xc