joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42c770
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4a86f0]
xor eax, ebp
mov dword [ebp - 4], eax
movdqu xmm0, xmmword [str.XY1F68TI]
mov ax, word [0x48961c]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [ebp - 0x18]
mov dword [ebp - 0x1c], edi
lea ecx, [esi + 2]
movdqu xmmword [ebp - 0x18], xmm0
mov word [ebp - 8], ax
lea esp, [esp]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x42c7b0
sub esi, ecx
mov ecx, edi
sar esi, 1
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42c7c4
sub ecx, edx
sar ecx, 1
push ecx
push edi
push dword [ebp + 0x10]
push ebx
call fcn.0046cc55
mov ecx, ebx
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42c7e6
sub ecx, edx
xor edi, edi
sar ecx, 1
xor edx, edx
cmp dword [ebp + 0x14], edi
je 0x42c822
test ecx, ecx
je 0x42c844
mov eax, 0x536
add ax, word [ebx + edi*2]
xor ax, word [ebp + edx*2 - 0x18]
inc edx
cmp edx, esi
mov word [ebx + edi*2], ax
sbb eax, eax
inc edi
and edx, eax
cmp edi, ecx
jb 0x42c802
jmp 0x42c844
test ecx, ecx
je 0x42c844
mov ax, word [ebp + edx*2 - 0x18]
inc edx
xor word [ebx + edi*2], ax
cmp edx, esi
sbb eax, eax
and edx, eax
mov eax, 0xfaca
add word [ebx + edi*2], ax
inc edi
cmp edi, ecx
jb 0x42c826
push 1
push ebx
push dword [ebp - 0x1c]
push str.CryptPassword__s___s____d
call fcn.0045f520
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
mov eax, 1
pop edi
pop esi
pop ebx
call fcn.004698aa
mov esp, ebp
pop ebp
ret

Function at 0x42c870
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4a86f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov edi, 1
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
test ebx, ebx
jle 0x42c92c
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, eax
cmp word [esi + ebx*2 - 2], 0x5c
jne 0x42c8be
xor eax, eax
mov word [esi + ebx*2 - 2], ax
cmp word [esi], 0
jne 0x42c8d7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004698aa
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42c92e
push 0x5c
push esi
call fcn.0046cd13
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x42c910
xor eax, eax
push esi
mov word [ebx], ax
call fcn.0042c870
mov edi, eax
add esp, 4
mov eax, 0x5c
mov word [ebx], ax
test edi, edi
je 0x42c92e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004698aa
mov esp, ebp
pop ebp
ret
xor edi, edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004698aa
mov esp, ebp
pop ebp
ret
Function at 0x42caf0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
mov eax, dword [0x4a86f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x464], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0046a390
add esp, 0xc
lea eax, [ebp - 0x20c]
xor edi, edi
push 0x489a70
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x460], eax
test eax, eax
je 0x42cc89
cmp eax, 0xffffffff
je 0x42cc89
jmp 0x42cb80
mov cx, word [ebp - 0x42e]
mov ax, word [ebp - 0x430]
test cx, cx
jne 0x42cb99
cmp ax, 0x2e
je 0x42cc11
cmp word [ebp - 0x42c], 0
jne 0x42cbae
cmp ax, 0x2e
jne 0x42cbae
cmp cx, ax
je 0x42cc11
lea eax, [ebp - 0x430]
push eax
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test byte [ebp - 0x45c], 0x10
je 0x42cbe6
push dword [ebp - 0x464]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0042caf0
add esp, 0xc
mov edi, eax
jmp 0x42cbfa
lea eax, [ebp - 0x430]
push esi
push eax
call fcn.0046cdb9
add esp, 8
test eax, eax
je 0x42cc4b
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
push ebx
push str.FindMyFile__s___s___File_s_d
call fcn.0045f520
add esp, 0x14
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x42cb80
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004698aa
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20c]
mov edi, 1
push eax
push 0x104
push dword [ebp - 0x464]
call fcn.0046bf5a
add esp, 0xc
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004698aa
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004698aa
mov esp, ebp
pop ebp
ret
Function at 0x42cd40
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
mov dword [ebp - 4], ebx
test eax, eax
je 0x42ce45
push 1
mov dword [eax], ebx
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x42cd83
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x42cd7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x42cd6b
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x42ce03
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 8], eax
test eax, eax
je 0x42ce03
mov edi, eax
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x42cdb8
sub edi, ecx
je 0x42cdf6
lea eax, [edi + 1]
push eax
call fcn.0046a5db
mov ecx, dword [ebp + 0xc]
add esp, 4
mov dword [ecx], eax
test eax, eax
je 0x42cdf1
push dword [ebp - 8]
lea ecx, [edi + 1]
push ecx
push eax
call fcn.0046a4e2
add esp, 0xc
mov dword [ebp - 4], 1
jmp 0x42cdf6
mov esi, 8
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test eax, eax
jne 0x42ce07
call ebx
mov esi, eax
call dword [sym.imp.USER32.dll_CloseClipboard]
test eax, eax
jne 0x42ce15
call ebx
mov esi, eax
mov ebx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x42ce21
mov dword [eax], edi
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x42ce2a
mov dword [eax], esi
test esi, esi
je 0x42ce3c
push esi
push str.GetClipboardText___returns_with_the_error_code__d
call fcn.0045f520
add esp, 8
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 0x57
jmp 0x42ce18
Function at 0x42e050
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4a86f0]
xor eax, ebp
mov dword [ebp - 4], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x120], 0x11c
push 0
push eax
call fcn.0046a390
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp + 8], 0
je 0x42e0b8
cmp dword [ebp - 0x11c], 6
jne 0x42e0a8
cmp dword [ebp - 0x118], 1
je 0x42e0ce
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004698aa
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x11c]
cmp eax, 6
ja 0x42e0ce
jne 0x42e0a8
cmp dword [ebp - 0x118], 0
jbe 0x42e0a8
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.004698aa
mov esp, ebp
pop ebp
ret

Function at 0x42e0f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4a86f0]
xor eax, ebp
mov dword [ebp - 4], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x120], 0x11c
push 0
push eax
call fcn.0046a390
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp + 8], 0
je 0x42e16b
cmp dword [ebp - 0x11c], 6
jne 0x42e15b
cmp dword [ebp - 0x118], 0
jne 0x42e15b
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004698aa
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004698aa
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x11c], 6
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.004698aa
mov esp, ebp
pop ebp
ret

Function at 0x42e190
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4a86f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x42e1e9
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x42e1f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x42e206
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 0x10], 0
test esi, esi
jne 0x42e22c
push dword [ebp - 0x14]
push str.IsRunAsAdmin_____d
call fcn.0045f880
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, dword [ebp - 0x14]
xor ecx, ebp
pop esi
call fcn.004698aa
mov esp, ebp
pop ebp
ret
push 0x4a2abc
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
push eax
call fcn.004698b9
int3
Function at 0x42e2b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4a86f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 0x80
push 3
push 0
push 3
push closesocket
push edi
mov dword [ebp - 0xc], 0x74725c7b
mov word [ebp - 8], 0x3166
mov byte [ebp - 6], 0x5c
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42e316
push edi
push str.IsaRTFFile__s___INVALID_HANDLE_VALUE
call fcn.0045f520
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004698aa
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x42e37c
push 0
lea eax, [ebp - 0x18]
push eax
push 7
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42e37c
cmp dword [ebp - 0x18], 7
jne 0x42e37c
xor ecx, ecx
jmp 0x42e350
mov al, byte [ebp + ecx - 0xc]
cmp al, byte [ebp + ecx - 0x14]
jne 0x42e37c
inc ecx
cmp ecx, 7
jb 0x42e350
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004698aa
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004698aa
mov esp, ebp
pop ebp
ret

Function at 0x42e860
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov edi, eax
call esi
mov ebx, dword [ebp + 0xc]
sub eax, edi
cmp eax, ebx
ja 0x42e8bb
mov edi, edi
push 1
push 0
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x42e8b3
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
sub eax, edi
cmp eax, ebx
jbe 0x42e880
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42ef10
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x4a86f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, 1
mov dword [ebp - 0x128], eax
mov eax, dword [ebp + 0x10]
push pe_nt_image_headers32
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.0046a390
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x11c]
cmp eax, 5
ja 0x42efc3
jne 0x42ef86
cmp dword [ebp - 0x118], 2
jae 0x42efc3
push dword [ebp + 0x18]
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x128]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x128], eax
cmp eax, 0xffffffff
jne 0x42efe8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x42efe2
or eax, 0xffffffff
mov dword [ebp - 0x124], 0
xor esi, esi
jmp 0x42efe8
push dword [ebp + 0x18]
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x124]
push dword [ebp - 0x128]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov esi, eax
mov eax, dword [ebp - 0x128]
test edi, edi
je 0x42eff7
mov ecx, dword [ebp - 0x124]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004698aa
mov esp, ebp
pop ebp
ret

Function at 0x42f180
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x42f1f6
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
cmp byte [ebp + 0xc], 0
je 0x42f1ca
test eax, eax
jne 0x42f1f6
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push 0
push esi
call dword [sym.imp.USER32.dll_InvalidateRect]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push esi
call fcn.0042cca0
add esp, 4
pop esi
pop ebp
ret
test eax, eax
je 0x42f1f6
mov eax, dword [ebp + 0x10]
mov ecx, 0x1f4
test eax, eax
push 0x50004
cmovne ecx, eax
push ecx
push esi
call fcn.0042be10
add esp, 0xc
test eax, eax
jne 0x42f1f6
push eax
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret
Function at 0x430d30
Capabilities:
Contain obfuscated stackstrings
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
mov eax, dword [0x4a86f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 0x80
push 3
push 0
push 3
push closesocket
push edi
mov dword [ebp - 0x64], 0x20434150
mov dword [ebp - 0x60], 0x20a9202d
mov dword [ebp - 0x5c], 0x50525642
mov dword [ebp - 0x58], 0x666f5320
mov dword [ebp - 0x54], 0x72617774
mov dword [ebp - 0x50], 0x39312065
mov dword [ebp - 0x4c], 0x322d3039
mov dword [ebp - 0x48], 0x20303030
mov dword [ebp - 0x44], 0x20200a0d
mov dword [ebp - 0x40], 0x20202020
mov dword [ebp - 0x3c], 0x20202020
mov dword [ebp - 0x38], 0x20202020
mov dword [ebp - 0x34], 0x20202020
mov dword [ebp - 0x30], 0x20202020
mov dword [ebp - 0x2c], 0x20202020
mov dword [ebp - 0x28], 0x20202020
mov dword [ebp - 0x24], 0x20202020
mov dword [ebp - 0x20], 0x20202020
mov dword [ebp - 0x1c], 0x20202020
mov dword [ebp - 0x18], 0x1a0a0d00
mov dword [ebp - 0x14], 0x106a9d6
mov dword [ebp - 0x10], 0x12c
mov dword [ebp - 0xc], 0x80
mov word [ebp - 8], 0x1e0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x430e31
push edi
push str.IsaPacFile__s___INVALID_HANDLE_VALUE
call fcn.0045f520
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004698aa
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x430ea1
push 0
lea eax, [ebp - 0xc8]
push eax
push 0x5e
lea eax, [ebp - 0xc4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x430ea1
cmp dword [ebp - 0xc8], 0x5e
jne 0x430ea1
xor ecx, ecx
jmp 0x430e70
mov al, byte [ebp + ecx - 0x64]
cmp al, byte [ebp + ecx - 0xc4]
jne 0x430ea1
inc ecx
cmp ecx, 0x5e
jb 0x430e70
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004698aa
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004698aa
mov esp, ebp
pop ebp
ret 4
Function at 0x431820
Capabilities:
Check for time delay via gettickcount
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4a86f0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4ab204], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
jne 0x4318e1
mov dword [ebp - 0x410], eax
mov eax, dword [ebp + 0x14]
push ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 0x408]
push 0x100
push eax
call fcn.0046bf5a
push esi
lea eax, [ebp - 0x208]
push 0x100
push eax
call fcn.0046bf5a
add esp, 0x18
lea eax, [ebp - 0x410]
push 0x4ab200
push 0
push eax
push 0x431c60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, eax
mov dword [0x4ab1fc], ecx
test ecx, ecx
je 0x4318b8
push 0xc8
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [0x4ab1fc]
push dword [0x4ab200]
mov eax, dword [ebp - 0x40c]
push ecx
push str.MsgWaitDlg__CreateThread____Thread_x_ThreadId_d
mov dword [0x4ab204], eax
call fcn.0045f520
mov eax, dword [0x4ab204]
add esp, 0xc
jmp 0x4319cb
push ebx
push edi
push str.before_PostThreadMessage
call fcn.0045f520
add esp, 4
push 0
push 0
push 0x12
push dword [0x4ab200]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
push 0x64
push dword [0x4ab1fc]
call ebx
mov dword [ebp - 0x414], eax
test eax, eax
je 0x43195e
cmp eax, 0xffffffff
je 0x43195e
call esi
sub eax, edi
cmp eax, 0x7d0
jae 0x43195e
push 0x64
push dword [0x4ab1fc]
call ebx
push eax
push str.MsgWaitDlg____WaitForSingleObject_x
mov dword [ebp - 0x414], eax
call fcn.0045f520
mov eax, dword [ebp - 0x414]
add esp, 8
test eax, eax
jne 0x431926
lea eax, [ebp - 0x414]
push eax
push dword [0x4ab1fc]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
pop edi
pop ebx
test eax, eax
je 0x4319a4
push dword [ebp - 0x414]
push str.MsgWaitDlg____dwExitCode_x
call fcn.0045f520
add esp, 8
cmp dword [ebp - 0x414], 0x103
jne 0x4319a4
push 0
push dword [0x4ab1fc]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [0x4ab1fc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [0x4ab1fc], 0
mov dword [0x4ab200], 0
mov dword [0x4ab204], eax
push eax
push str.MsgWaitDlg__End__d_
call fcn.0045f520
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, dword [0x4ab204]
xor ecx, ebp
pop esi
call fcn.004698aa
mov esp, ebp
pop ebp
ret
Function at 0x431ea0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x4a86f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push eax
push 8
push ebx
mov dword [ebp - 0x408], eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov edi, dword [sym.imp.USER32.dll_LoadImageW]
push 0
push 0x10
push 0x10
push 1
push 1
push dword [0x4c1264]
call edi
mov esi, dword [sym.imp.USER32.dll_SetClassLongW]
push eax
push 0xffffffffffffffde
push ebx
call esi
push 0
push 0x20
push 0x20
push 1
push 1
push dword [0x4c1264]
call edi
push eax
push 0xfffffffffffffff2
push ebx
call esi
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x404], ax
lea eax, [ebp - 0x402]
push eax
call fcn.0046a390
mov esi, dword [ebp - 0x408]
lea eax, [ebp - 0x404]
push dword [esi + 4]
push 0x100
push eax
push 0xf0
push dword [esi]
call fcn.004510f0
add esp, 0x20
test eax, eax
je 0x431f79
push 0
push 0x4c2400
push 0x489b1c
lea eax, [ebp - 0x404]
push 0x100
push eax
call fcn.0042f2e0
add esp, 0x14
lea eax, [ebp - 0x404]
push eax
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x202]
push eax
call fcn.0046a390
push dword [esi + 4]
lea eax, [ebp - 0x204]
push 0x100
push eax
push 0xf1
push dword [esi]
call fcn.004510f0
mov edi, dword [sym.imp.USER32.dll_SetDlgItemTextW]
add esp, 0x20
test eax, eax
je 0x431fcb
lea eax, [ebp - 0x204]
push eax
push 0x3eb
push ebx
call edi
push dword [esi + 4]
lea eax, [ebp - 0x204]
push 0x100
push eax
push 0xf2
push dword [esi]
call fcn.004510f0
add esp, 0x14
test eax, eax
je 0x431ffc
lea eax, [ebp - 0x204]
push eax
push 0x3ec
push ebx
call edi
push dword [esi + 4]
lea eax, [ebp - 0x204]
push 0x100
push eax
push 0xf3
push dword [esi]
call fcn.004510f0
add esp, 0x14
test eax, eax
je 0x43202d
lea eax, [ebp - 0x204]
push eax
push 0x3fd
push ebx
call edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0x10
push 0xc5
push 0x3fe
push ebx
call edi
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esi + 0xc]
push eax
push 0x3fe
push ebx
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov eax, dword [esi + 8]
and al, 2
movzx eax, al
neg eax
sbb eax, eax
and eax, 5
push eax
push 2
push ebx
call edi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call esi
mov ecx, dword [ebp - 0x408]
mov eax, dword [ecx + 8]
and al, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 5
push eax
push 3
push ebx
call edi
push eax
call esi
mov eax, dword [ebp - 0x408]
test byte [eax + 8], 4
je 0x4320bb
push 0xfffffffffffffff0
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xfff7ffff
push eax
push 0xfffffffffffffff0
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongW]
cmp dword [0x4c0e31], 0
je 0x4320d8
cmp dword [0x4c1fc4], 0
je 0x4320d8
push 0
push ebx
call fcn.00436ee0
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004698aa
mov esp, ebp
pop ebp
ret