joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427af8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov eax, dword [esp + 0x10]
mov ebp, esp
sub esp, 0xc
cmp eax, 6
push ebx
push esi
lea ecx, [ebp + 0x28]
push edi
je 0x427b10
lea ecx, [ebp + 0x18]
sub eax, 6
mov esi, dword [ebp + 0xc]
cmp eax, 1
sbb eax, eax
and al, 0xfe
add eax, 0x10
push eax
push ecx
push dword [esi]
call fcn.0041e61a
test eax, eax
je 0x427c87
call fcn.0041e5f9
cmp eax, 0x2733
je 0x427b7a
call fcn.0041e5f9
cmp eax, 0x2734
je 0x427b7a
push dword [esi]
call fcn.0041e60e
push 0xff
mov dword [esi], 0xffffffff
push dword [ebp + 0x14]
call fcn.0041e5f9
push eax
push 8
push 0xfffffffffffffff1
push dword [ebp + 8]
call fcn.00413cf0
add esp, 0x18
xor eax, eax
jmp 0x427c8c
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, 0x4a5618
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0xa
mov dword [ebp - 8], edi
mov dword [0x4a5740], edi
mov eax, dword [esi]
mov dword [0x4a5744], eax
inc dword [0x4a5740]
mov dword [0x4a58c0], edi
mov dword [0x4a5618], edi
mov eax, dword [esi]
mov dword [0x4a561c], eax
lea eax, [ebp - 0xc]
push eax
inc dword [0x4a5618]
push ebx
push 0x4a5740
push 0x4a58c0
push edi
call fcn.004296bb
add esp, 0x14
push ebx
push dword [esi]
call fcn.0041e5fe
test eax, eax
jne 0x427c20
push 0x4a5740
push dword [esi]
call fcn.0041e5fe
test eax, eax
jne 0x427c87
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x50]
mov ecx, dword [edx + 0x1c]
imul ecx, ecx, 0x3cf
cmp eax, ecx
ja 0x427c4b
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x427b94
push 0xff
push dword [ebp + 0x14]
push 0x274d
push 0xa
push 0xfffffffffffffff1
push dword [ebp + 8]
call fcn.00413cf0
add esp, 0x18
push dword [esi]
call fcn.0041e60e
mov dword [esi], 0xffffffff
jmp 0x427c83
push dword [esi]
call fcn.0041e60e
mov ecx, dword [ebp + 8]
push 0xff
push dword [ebp + 0x14]
mov dword [esi], 0xffffffff
mov dword [ecx + 0x14], 0xffffffa0
call fcn.0044a4b8
push dword [eax]
push 0x17b
push 0xffffffffffffffa0
push dword [ebp + 8]
call fcn.00413cf0
add esp, 0x18
xor eax, eax
jmp 0x427c8c
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x427d39
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0x14
cmp dword [ebp + 0xc], 0
push esi
push edi
mov esi, dword [ebp + 8]
je 0x427d5c
mov edi, dword [esi + 0x50]
add edi, 0x34
cmp byte [edi], 0
jne 0x427d86
lea eax, [ebp - 4]
mov edi, 0x4a5a18
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x427d86
push 0x13
mov edi, 0x4a5a18
push edi
call fcn.00421610
test eax, eax
je 0x427d86
mov edi, str.Unknown
mov eax, dword [esi + 0x50]
add eax, 0x34
cmp byte [eax], 0
jne 0x427da4
push 0x14
push edi
push eax
call fcn.00448b40
add esp, 0xc
mov eax, dword [esi + 0x50]
mov byte [eax + 0x48], 0
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4280b6
Capabilities:
Get disk information

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jb 0x4280ce
cmp al, 4
jae 0x4280ce
call fcn.004280d4
jmp 0x4280d3
jmp fcn.00428060
ret
Function at 0x42a979
Capabilities:
Read file on windows
Write file on windows

Disassembly:
cmp dword [0x493a18], 0
push ebx
push esi
push edi
mov bl, 1
push ebp
je 0x42a998
push dword [esp + 0x14]
push 2
call fcn.0042a9ff
add esp, 8
jmp 0x42a9fa
xor esi, esi
cmp dword [0x493a14], esi
je 0x42a9f8
cmp dword [0x4939e4], esi
je 0x42a9f4
mov al, byte [esp + 0x14]
push esi
mov edi, 0x4a7ec4
mov ebp, 0x4a7eb8
push edi
mov byte [0x4a7eb9], al
push 2
mov eax, dword [0x4a7ed0]
mov byte [0x4a7eb8], 1
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42a9f4
push esi
mov eax, dword [0x4a7ed0]
push edi
push 1
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42a9f4
mov bl, byte [0x4a7eb8]
mov al, bl
jmp 0x42a9fa
xor al, al
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42aa5a
Capabilities:
Read file on windows
Write file on windows

Disassembly:
cmp dword [0x493a18], 0
push ebx
push esi
mov bl, byte [esp + 0xc]
push edi
push ebp
je 0x42aa78
push ebx
push 3
call fcn.0042a9ff
add esp, 8
jmp 0x42aad7
xor esi, esi
cmp dword [0x493a14], esi
je 0x42aad5
cmp dword [0x4939e4], esi
je 0x42aad1
push esi
mov edi, 0x4a7ec4
push edi
mov ebp, 0x4a7eb8
push 2
mov eax, dword [0x4a7ed0]
push ebp
mov byte [0x4a7eb9], bl
mov byte [0x4a7eb8], 2
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42aad1
push esi
mov eax, dword [0x4a7ed0]
push edi
push 1
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42aad1
mov bl, byte [0x4a7eb8]
mov al, bl
jmp 0x42aad7
xor al, al
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42aadc
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
cmp dword [0x493a18], ebx
je 0x42aaf6
push ebx
push 1
call fcn.0042a9ff
add esp, 8
jmp 0x42ab63
cmp dword [0x493a14], 0
je 0x42ab61
cmp dword [0x4939e4], 0
je 0x42ab5d
mov al, byte [0x4939f0]
push 0
mov esi, 0x4a7ec4
mov edi, 0x4a7eb8
push esi
mov byte [0x4a7eb9], al
push 2
mov eax, dword [0x4a7ed0]
mov byte [0x4a7eb8], 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42ab55
push 0
mov eax, dword [0x4a7ed0]
push esi
push 1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42ab55
mov bl, byte [0x4a7eb8]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, bl
jmp 0x42ab63
xor al, al
pop edi
pop esi
pop ebx
ret

Function at 0x42ab67
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
push ebp
cmp dword [0x493a18], ebx
je 0x42ab82
push ebx
push 4
call fcn.0042a9ff
add esp, 8
jmp 0x42abdb
xor esi, esi
cmp dword [0x493a14], esi
je 0x42abd9
cmp dword [0x4939e4], esi
je 0x42abd5
push esi
mov edi, 0x4a7ec4
push edi
mov ebp, 0x4a7eb8
push 2
mov eax, dword [0x4a7ed0]
mov byte [0x4a7eb8], 3
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42abd5
push esi
mov eax, dword [0x4a7ed0]
push edi
push 1
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42abd5
mov bl, byte [0x4a7eb8]
mov al, bl
jmp 0x42abdb
xor al, al
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x42abe0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
push ebp
cmp dword [0x493a18], ebx
je 0x42abfb
push ebx
push 0x22
call fcn.0042a9ff
add esp, 8
jmp 0x42ac54
xor esi, esi
cmp dword [0x493a14], esi
je 0x42ac52
cmp dword [0x4939e4], esi
je 0x42ac4e
push esi
mov edi, 0x4a7ec4
push edi
mov ebp, 0x4a7eb8
push 2
mov eax, dword [0x4a7ed0]
mov byte [0x4a7eb8], 0x22
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42ac4e
push esi
mov eax, dword [0x4a7ed0]
push edi
push 1
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42ac4e
mov bl, byte [0x4a7eb8]
mov al, bl
jmp 0x42ac54
xor al, al
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42ac59
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
push ebp
cmp dword [0x493a18], ebx
je 0x42ac74
push ebx
push 5
call fcn.0042a9ff
add esp, 8
jmp 0x42accd
xor esi, esi
cmp dword [0x493a14], esi
je 0x42accb
cmp dword [0x4939e4], esi
je 0x42acc7
push esi
mov edi, 0x4a7ec4
push edi
mov ebp, 0x4a7eb8
push 2
mov eax, dword [0x4a7ed0]
mov byte [0x4a7eb8], 5
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42acc7
push esi
mov eax, dword [0x4a7ed0]
push edi
push 1
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42acc7
mov bl, byte [0x4a7eb8]
mov al, bl
jmp 0x42accd
xor al, al
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42ae37
Capabilities:
Read file on windows
Write file on windows

Disassembly:
cmp dword [0x4939e4], 0
push ebx
push esi
je 0x42ae81
mov al, byte [0x4939f0]
push 0
mov esi, 0x4a7ec4
mov ebx, 0x4a7eb8
push esi
mov byte [0x4a7eb9], al
push 2
mov eax, dword [0x4a7ed0]
mov byte [0x4a7eb8], 6
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
mov eax, dword [0x4a7ed0]
push esi
push 1
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop esi
pop ebx
ret

Function at 0x42ae84
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
lea eax, [ebp - 0x18]
push esi
push edi
mov edi, 1
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x42af08
xor esi, esi
cmp dword [ebp - 0x14], esi
jne 0x42af08
mov ebx, 0x3e8
mov eax, dword [ebp - 0x18]
sub edx, edx
mov dword [ebp - 4], esi
div ebx
movzx ecx, word [ebp + 8]
imul ecx, eax
mov dword [ebp - 8], ecx
cmp ecx, esi
je 0x42af08
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp - 8]
lea ecx, [ebp - 0x10]
push eax
push ecx
call fcn.0042af20
add esp, 8
push 0
push 1
call dword [sym.imp.KERNEL32.dll_SleepEx]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x20]
push eax
push ecx
call fcn.0042af53
add esp, 8
test eax, eax
jne 0x42aede
xor edi, edi
test edi, edi
je 0x42af19
movzx eax, word [ebp + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SleepEx]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42bd40
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x248
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp]
push ecx
call fcn.0042bde0
add esp, 4
lea edx, [esp]
push edx
push 0
push 0x2be
call fcn.00433fe0
add esp, 8
push eax
lea eax, [esp + 0x10c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x110]
push ecx
call fcn.0042d040
add esp, 0x258
ret

Function at 0x42be30
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x4a91c0]
push ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x42bfa4
mov ebp, dword [esi + 0x372]
test ebp, ebp
jne 0x42be60
mov eax, dword [esi + 0xb14]
test eax, eax
je 0x42bfa4
push ebx
mov ebx, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
mov ecx, ebx
or ecx, edi
jne 0x42be74
xor edi, edi
jmp 0x42bec2
test edi, edi
jl 0x42be9a
jg 0x42be82
cmp ebx, 0x186a0
jbe 0x42be9a
push 0
push 0x64
push edi
push ebx
call fcn.0044b4e0
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push edx
jmp 0x42beb0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push 0
push 0x64
push ecx
push edx
call fcn.0044b4a0
push edi
push ebx
push edx
push eax
call fcn.0044b4e0
mov edi, eax
cmp edi, 0x64
jle 0x42bec2
mov edi, 0x64
test ebp, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [esi + 0xb10], edi
je 0x42bf51
mov ebx, dword [esp + 0x14]
lea eax, [esi + 0x206]
push ebx
push eax
call ebp
lea eax, [esi + 0x202]
lea ecx, [esi + 0x366]
mov dword [esi + 0x36e], eax
mov dword [esi + 0x36a], 0x164
mov dword [eax], edi
mov eax, dword [esi + 0xb3c]
cmp eax, 0xc8
mov dword [ecx], 1
jl 0x42bf3d
mov eax, dword [esi + 0x92]
test eax, eax
je 0x42bf3d
push ecx
mov ecx, dword [esi + 0x37a]
push 0
push 0x4a
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x42bf8f
mov dword [esi + 0x8e], 1
jmp 0x42bf8f
mov edx, dword [esi + 0x37a]
push ecx
push 0
push 0x4a
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x42bf8f
cmp dword [esi + 0xb3c], 0xc8
jl 0x42bf7c
mov eax, dword [esi + 0x92]
test eax, eax
je 0x42bf7c
mov eax, dword [esi + 0xb18]
mov ebx, dword [esp + 0x14]
push eax
push edi
push ebx
call dword [esi + 0xb14]
jmp 0x42bf2d
mov ecx, dword [esi + 0xb18]
mov ebx, dword [esp + 0x14]
push ecx
push edi
push ebx
call dword [esi + 0xb14]
lea edx, [esi + 0x908]
push ebx
push edx
call ebp
push esi
call fcn.0042d370
add esp, 4
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x42bfb0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x4a91c0]
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x42bfc7
pop esi
pop ebx
ret
mov ebx, dword [esi + 0x372]
test ebx, ebx
jne 0x42bfe0
mov eax, dword [esi + 0xb20]
test eax, eax
jne 0x42bfe0
pop esi
xor eax, eax
pop ebx
ret
mov ecx, dword [esp + 0x10]
push ebp
test ecx, ecx
push edi
jne 0x42bfee
xor edi, edi
jmp 0x42c02b
cmp ecx, 0x186a0
jle 0x42c00f
mov eax, 0x51eb851f
imul ecx
mov ecx, edx
mov eax, dword [esp + 0x1c]
sar ecx, 5
mov edx, ecx
shr edx, 0x1f
add ecx, edx
jmp 0x42c01c
mov eax, dword [esp + 0x1c]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 2
cdq
idiv ecx
mov edi, eax
cmp edi, 0x64
jle 0x42c02b
mov edi, 0x64
xor ebp, ebp
mov dword [esi + 0xb1c], edi
test ebx, ebx
je 0x42c0a7
mov ebx, dword [esp + 0x14]
lea eax, [esi + 0x206]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esi + 0x202]
lea ecx, [esi + 0x366]
mov dword [esi + 0x36e], eax
push ecx
mov dword [eax], edi
mov eax, dword [esi + 0xb3c]
cmp eax, 0xc8
push ebp
mov dword [ecx], ebp
mov dword [esi + 0x36a], 0x164
push 0x4a
jl 0x42c098
mov ecx, dword [esi + 0x37a]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x42c0ff
mov ebp, 1
mov dword [esi + 0x8e], ebp
jmp 0x42c0ff
mov edx, dword [esi + 0x37a]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x42c0ff
mov eax, dword [esi + 0xb3c]
sub eax, 0x64
je 0x42c0ea
sub eax, 0x64
je 0x42c0d3
sub eax, 0x64
je 0x42c0d3
mov eax, dword [esi + 0xb24]
mov ebx, dword [esp + 0x14]
push eax
push edi
push ebx
call dword [esi + 0xb20]
mov ebp, eax
jmp 0x42c0ff
mov ecx, dword [esi + 0xb24]
mov ebx, dword [esp + 0x14]
push ecx
push edi
push ebx
call dword [esi + 0xb20]
mov ebp, eax
jmp 0x42c0ff
mov edx, dword [esi + 0xb24]
mov ebx, dword [esp + 0x14]
push edx
push edi
push ebx
call dword [esi + 0xb20]
xor ebp, ebp
lea eax, [esi + 0xa0c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call fcn.0042d370
add esp, 4
mov eax, ebp
pop edi
pop ebp
pop esi
pop ebx
ret
Function at 0x42c250
Capabilities:
Get common file path
Write file on windows

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x20c
mov ecx, dword [eax + 0xb38]
push esi
test ecx, ecx
je 0x42c343
lea ecx, [esp + 8]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x104
push 2
push 0x6c
call fcn.00433fe0
add esp, 8
lea edx, [esp + 0x110]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov al, byte [esp + 0x10c]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp al, 0x5c
je 0x42c2b6
lea eax, [esp + 8]
push 0x492c28
push eax
call esi
lea ecx, [esp + 0x10c]
lea edx, [esp + 8]
push ecx
push edx
call esi
push 0
push 0x80
push 4
push 0
push 3
lea eax, [esp + 0x1c]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x42c343
push ebx
push edi
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [esp + 0xc]
push 0
push ecx
push 2
push 0x493b28
push esi
call edi
mov ebx, dword [esp + 0x21c]
lea edx, [esp + 0xc]
push 0
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push ebx
push esi
call edi
lea eax, [esp + 0xc]
push 0
push eax
push 2
push 0x493b28
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop esi
add esp, 0x20c
ret

Function at 0x42c350
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0xc]
push esi
test eax, eax
jl 0x42c3b8
mov esi, dword [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_IsBadStringPtrA]
test eax, eax
jne 0x42c39f
push edi
push eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
push esi
mov esi, dword [esp + 0x1c]
push esi
call edi
lea ecx, [esp + 0x14]
push 0
push ecx
push 2
push 0x493b28
push esi
call edi
pop edi
mov eax, 1
pop esi
ret
mov eax, dword [esp + 8]
lea edx, [esp + 0x10]
push 0
push edx
push 5
push str.____r_n
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
pop esi
ret
Function at 0x42d040
Capabilities:
Get common file path
Get thread local storage value
Write file on windows

Disassembly:
mov eax, dword [0x4a91c0]
sub esp, 0x20c
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x42d150
mov eax, dword [esi + 0x1ee]
test eax, eax
je 0x42d150
cmp dword [esi + 0x1f6], 0xffffffff
jne 0x42d100
lea ecx, [esp + 0xc]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x104
push 0
push 0x2bd
call fcn.00433fe0
add esp, 8
lea edx, [esp + 0x114]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov al, byte [esp + 0x110]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp al, 0x5c
je 0x42d0c9
lea eax, [esp + 0xc]
push 0x492c28
push eax
call edi
lea ecx, [esp + 0x110]
lea edx, [esp + 0xc]
push ecx
push edx
call edi
push 0
push 0x80
push 4
push 0
push 3
lea eax, [esp + 0x20]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x1f6], eax
je 0x42d150
mov ecx, dword [esi + 0x1f6]
push 2
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [esp + 0x218]
lea edx, [esp + 8]
push 0
push edx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [esi + 0x1f6]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
call edi
mov edx, dword [esi + 0x1f6]
lea ecx, [esp + 8]
push 0
push ecx
push 2
push 0x493b28
push edx
call edi
pop edi
pop esi
add esp, 0x20c
ret
Function at 0x42d1a0
Capabilities:
Create process on windows
Enumerate gui resources
Get thread local storage value

Disassembly:
sub esp, 0x160
mov al, byte [0x49a270]
push ebp
push esi
push edi
mov byte [esp + 0x6c], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x6d]
rep stosd dword es:[edi], eax
mov ecx, dword [0x4a91c0]
stosw word es:[edi], ax
push ecx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor ebp, ebp
cmp esi, ebp
jne 0x42d1e3
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x160
ret
push ebx
mov ebx, dword [esp + 0x174]
mov eax, ebx
lea edx, [esi + 0x382]
neg eax
sbb eax, eax
push edx
and al, 0xf5
lea ecx, [esp + 0x74]
add eax, 0x6e
push eax
push str.dzprog32.exe___c__z__T_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x3c]
mov dword [esi + 0x37e], ebp
mov dword [esi + 0x37a], ebp
mov dword [esi + 0x372], ebp
rep stosd dword es:[edi], eax
mov eax, 1
add esp, 0x10
mov word [esp + 0x5c], ax
mov dword [esp + 0x58], eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x2c]
push edx
push eax
push ebp
push ebp
push 0x20
push ebp
push ebp
lea ecx, [esp + 0x8c]
push ebp
push ecx
push ebp
mov dword [esp + 0x54], 0x44
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x42d2bf
mov edx, dword [esp + 0x1c]
push 0x2710
push edx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], eax
push edx
push 0x42d160
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ebp
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x42d2bf
mov edi, 1
mov dword [esi + 0x37a], eax
mov dword [esi + 0x372], edi
mov dword [esi + 0x37e], ebx
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x160
ret

Function at 0x42d2d0
Capabilities:
Check for time delay via gettickcount
Get thread local storage value

Disassembly:
mov eax, dword [0x4a91c0]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x42d360
mov eax, dword [esi + 0x37a]
test eax, eax
je 0x42d360
push ebx
push ebp
push edi
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov ecx, dword [esi + 0x37a]
mov ebp, eax
push ecx
xor edi, edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x42d348
test edi, edi
jne 0x42d348
push esi
call fcn.0042d370
add esp, 4
call ebx
sub eax, ebp
cmp eax, 0x1388
jbe 0x42d337
mov edi, 1
mov edx, dword [esi + 0x37a]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x42d31a
xor eax, eax
pop edi
pop ebp
mov dword [esi + 0x372], eax
mov dword [esi + 0x37e], eax
pop ebx
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x42e3f0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
mov eax, dword [ebx + 0xd8c]
push edi
test eax, eax
jne 0x42e42f
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov edx, dword [ebx + 0x2a]
push eax
lea eax, [esp + 0x18]
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42e428
mov ebp, dword [esp + 0x14]
test ebp, ebp
jne 0x42e49f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
cmp eax, 1
jne 0x42e428
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov ecx, dword [ebx + 0x2a]
lea eax, [esp + 0x14]
shr edi, 1
push 0
add edi, esi
push eax
push 0
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42e428
mov ebp, dword [esp + 0x14]
test ebp, ebp
mov dword [esp + 0x18], ebp
je 0x42e428
mov al, byte [edi]
cmp al, 0xa
jne 0x42e472
mov byte [esi], 0xd
inc esi
mov byte [esi], al
jmp 0x42e487
mov byte [esi], al
mov dl, byte [edi]
push edx
inc esi
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x42e489
mov al, byte [edi + 1]
mov byte [esi], al
inc esi
inc ebp
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x18], eax
jne 0x42e464
sub esi, ebp
push ebx
push ebp
push esi
call fcn.0042e970
mov edx, dword [ebx + 0x32]
mov ecx, dword [ebx + 0x3d26]
add esp, 0xc
add edx, ebp
mov dword [ebx + 0x3d2a], eax
mov dword [ebx + 0x32], edx
test ecx, ecx
mov eax, edx
jne 0x42e4d1
mov ecx, dword [ebx + 0x3a]
mov edx, dword [ebx + 0x36]
push 0
push eax
push ecx
push edx
jmp 0x42e4dd
cmp eax, ebp
ja 0x42e4ec
push 0
push 0
push 0
push 0x64
add ebx, 0x3c22
push ebx
call fcn.0042be30
add esp, 0x14
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret

Function at 0x42e970
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
push esi
test ecx, ecx
jne 0x42e980
or eax, 0xffffffff
pop esi
not eax
ret
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov esi, edx
dec edx
mov eax, dword [eax + 0x3d2a]
test esi, esi
not eax
je 0x42e9ba
push edi
lea esi, [edx + 1]
xor edx, edx
mov edi, eax
mov dl, byte [ecx]
and edi, 0xff
xor edx, edi
shr eax, 8
mov edx, dword [edx*4 + 0x493df8]
xor eax, edx
inc ecx
dec esi
jne 0x42e99b
pop edi
not eax
pop esi
ret