joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413d90
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x214
push ebx
push ebp
push esi
mov esi, dword [esp + 0x224]
push edi
push 0x5c
push esi
call fcn.004252d0
add esp, 8
test eax, eax
je 0x413db1
int3
lea eax, [esp + 0x1c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x413f53
cmp eax, 0x104
jae 0x413f53
test esi, esi
mov dword [esp + 0x18], 0xffffffff
je 0x413f49
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
je 0x413e03
mov al, byte [esp + edx + 0x1b]
mov byte [esp + 0x10], 1
cmp al, 0x5c
jne 0x413e08
mov byte [esp + 0x10], 0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 4
jb 0x413e1e
mov ecx, 4
mov eax, dword [esp + 0x10]
and eax, 0xff
add eax, ecx
lea ecx, [eax + edx + 8]
cmp ecx, 0x104
jae 0x413f3f
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, dword [esp + 0x22c]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov edx, dword [esp + 0x14]
mov al, byte [esp + 0x10]
inc edx
inc edi
test al, al
mov eax, dword [0x4309c0]
mov dword [esp + 0x14], edx
jne 0x413e72
mov eax, dword [0x4309d0]
mov edx, edi
mov ecx, dword [str._s_s_.4s_04X.tmp]
and edx, 0xffff
push edx
push esi
push eax
lea eax, [esp + 0x28]
push eax
push ecx
lea edx, [esp + 0x134]
push 0x104
push edx
call fcn.00413d60
add esp, 0x1c
lea eax, [esp + 0x120]
push 0
push 0x4000102
push 1
push 0
push ebp
push 0xc0000000
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x413ecf
test esi, esi
jne 0x413f0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x413f0c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x50
je 0x413ef8
cmp eax, 5
jne 0x413f1a
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x413ef8
call esi
cmp eax, 5
jne 0x413f35
cmp word [esp + 0x14], 0
je 0x413f1a
mov esi, dword [esp + 0x228]
jmp 0x413e56
and edi, 0xffff
mov dword [esp + 0x18], esi
test edi, edi
jne 0x413f24
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x413f53
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret 8
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x413f1a
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x413f1a
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x413f1a
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x214
ret 8

Function at 0x414100
Capabilities:
Read .ini file

Disassembly:
mov ecx, dword [esp + 0x10]
mov eax, dword [0x4309d0]
sub esp, 0x10
lea edx, [esp]
push esi
push ecx
mov ecx, dword [esp + 0x1c]
push 0x10
push edx
push eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
mov esi, dword [esp + 0x20]
je 0x41414d
lea edx, [esp + 0x24]
lea eax, [esp + 4]
push edx
push 0xa
push 0
push eax
mov dword [esp + 0x34], esi
call fcn.0040c0d0
test al, al
mov eax, dword [esp + 0x24]
jne 0x41414f
mov eax, esi
pop esi
add esp, 0x10
ret 0x10
Function at 0x414160
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
test ebx, ebx
push edi
je 0x41430c
mov edx, dword [esp + 0x18]
test edx, edx
je 0x41430c
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x41430c
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
je 0x4141a5
mov al, byte [esi + ebx - 1]
mov byte [esp + 0x14], 1
cmp al, 0x5c
jne 0x4141aa
mov byte [esp + 0x14], 0
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 4
jb 0x4141c0
mov ecx, 4
mov eax, dword [esp + 0x14]
and eax, 0xff
add eax, ecx
mov ecx, dword [esp + 0x24]
lea eax, [eax + esi + 8]
cmp eax, ecx
jae 0x4142fb
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x41421b
mov al, byte [esp + 0x14]
test al, al
mov eax, dword [0x4309c0]
jne 0x4141f5
mov eax, dword [0x4309d0]
mov edi, esi
and edi, 0xffff
push edi
push edx
mov edx, dword [str._s_s_.4s_04X.tmp]
push eax
push ebx
push edx
push ecx
push ebp
call fcn.00413d60
add esp, 0x1c
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 0x14
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov edx, dword [esp + 0x20]
mov al, byte [esp + 0x14]
inc edx
inc edi
test al, al
mov eax, dword [0x4309c0]
mov dword [esp + 0x20], edx
jne 0x414247
mov eax, dword [0x4309d0]
mov edx, dword [esp + 0x18]
mov ecx, edi
and ecx, 0xffff
push ecx
mov ecx, dword [esp + 0x28]
push edx
push eax
mov eax, dword [str._s_s_.4s_04X.tmp]
push ebx
push eax
push ecx
push ebp
call fcn.00413d60
add esp, 0x1c
push 0
push 0x102
push 1
push 0
push 0
push 0xc0000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x41429a
test esi, esi
jne 0x4142d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4142d4
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x50
je 0x4142bf
cmp eax, 5
jne 0x414314
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4142bf
call esi
cmp eax, 5
jne 0x4142ea
cmp word [esp + 0x20], 0
jne 0x41422b
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x14
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and edi, 0xffff
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0x14
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x14
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x14
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x14

Function at 0x414320
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x414342
cmp eax, esi
jae 0x414342
mov eax, 1
pop esi
ret 8
xor eax, eax
pop esi
ret 8
Function at 0x414350
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
lea eax, [esp + 4]
push ebx
push ebp
push esi
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, eax
test esi, esi
jbe 0x4143ee
mov al, byte [esp + esi + 0xf]
mov ebp, dword [esp + 0x11c]
cmp al, 0x5c
push edi
setne bl
mov byte [esp + 0x10], bl
mov edi, ebp
mov edx, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
and edx, 0xff
repne scasb al, byte es:[edi]
mov eax, 0x105
pop edi
not ecx
sub eax, edx
dec ecx
sub eax, esi
cmp ecx, eax
jae 0x4143ee
test bl, bl
je 0x4143b1
mov byte [esp + esi + 0x10], 0x5c
sub edx, ebp
mov eax, ebp
add edx, esi
lea edx, [esp + edx + 0x10]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4143bb
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor ecx, ecx
pop esi
mov edx, dword [esp + 0x11c]
pop ebp
test eax, eax
setne cl
mov dword [edx], eax
mov eax, ecx
pop ebx
add esp, 0x10c
ret 8
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c
ret 8

Function at 0x414480
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
sub esp, 0x158
push esi
push edi
mov esi, dword [esp + 0x164]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], 0x44
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x60]
xor edi, edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4144c6
pop edi
pop esi
add esp, 0x158
ret 4
cmp esi, edi
jne 0x4144ce
lea esi, [esp + 8]
lea ecx, [esp + 0x18]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea edx, [esp + 0x1c]
push esi
push edx
push edi
push edi
push edi
push edi
push edi
push edi
push eax
lea eax, [esp + 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
lea ecx, [esp + 0xc]
mov ebx, eax
cmp esi, ecx
jne 0x414521
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
mov dword [esp + 0x14], edi
call esi
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc], edi
push eax
call esi
mov eax, ebx
pop ebx
pop edi
pop esi
add esp, 0x158
ret 4

Function at 0x414530
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
push eax
push ecx
push ebx
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x41458a
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41458a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x414583
mov edx, dword [esp + 0x24]
push esi
push ebx
mov dword [edx], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, 1
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret 0x14
Function at 0x4145a0
Capabilities:
Clear file content

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
push edi
lea edx, [esp + 8]
xor ecx, ecx
push 1
xor eax, eax
push edx
push ecx
push eax
push esi
xor edi, edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
call fcn.00414650
test eax, eax
je 0x414637
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
push edi
push ecx
push edx
push esi
call fcn.00414650
test eax, eax
je 0x414637
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x414612
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push edi
push edi
push eax
push ecx
push esi
call fcn.00414650
test eax, eax
je 0x414637
pop edi
mov eax, 1
pop esi
add esp, 8
ret 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x10]
mov ebx, eax
mov eax, dword [esp + 0xc]
push 0
push 0
push edx
push eax
push esi
call fcn.00414650
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
mov eax, edi
pop edi
pop esi
add esp, 8
ret 0x10

Function at 0x414810
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x20
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
call edi
mov esi, dword [esp + 0x30]
cmp esi, ebx
je 0x4148d4
cmp dword [esi], 0x40
jne 0x4148d4
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x10]
mov dword [esp + 0xc], 0x20
rep stosd dword es:[edi], eax
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.GlobalMemoryStatusEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x414872
push esi
call eax
pop edi
pop esi
pop ebx
add esp, 0x20
ret 4
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi + 8], edx
mov edx, dword [esp + 0x20]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x18], ecx
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x20
ret 4
push 0x57
call edi
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x20
ret 4
Function at 0x414f80
Capabilities:
Check http status code

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, dword [esp + 0x1c]
xor ebx, ebx
push esi
mov dword [esp + 0xc], ebx
call fcn.00414c10
cmp eax, 7
je 0x415040
cmp eax, 0xd
jne 0x4150ad
lea eax, [esp + 0x1c]
push edi
push eax
push 0x13
push esi
mov dword [esp + 0x2c], ebx
call fcn.00414c60
test eax, eax
mov edi, dword [esp + 0x1c]
je 0x41501d
cmp dword [esp + 0x20], 0x190
jae 0x41501d
lea ecx, [esp + 0xc]
push ecx
push 5
push esi
call fcn.00414c60
test eax, eax
je 0x414ffa
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xc]
mov bl, 1
mov dword [edi + 0x20], edx
pop edi
mov dword [eax], ecx
mov al, bl
pop esi
pop ebx
add esp, 0xc
ret 0xc
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x1c], 0xa0000004
mov dword [edi + 0x20], edx
pop edi
mov dword [eax], ecx
mov al, bl
pop esi
pop ebx
add esp, 0xc
ret 0xc
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x1c], 0xa0000003
mov dword [edi + 0x20], edx
pop edi
mov dword [eax], ecx
mov al, bl
pop esi
pop ebx
add esp, 0xc
ret 0xc
lea eax, [esp + 0x10]
push eax
push esi
call dword [0x438080]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x415082
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41507e
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
pop esi
mov dword [ecx + 0x1c], 0xa0000004
mov ecx, dword [esp + 4]
mov dword [eax], ecx
mov al, bl
pop ebx
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x10], ebx
jne 0x4150a2
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 8]
mov bl, 1
mov dword [eax], ecx
mov al, bl
pop esi
pop ebx
add esp, 0xc
ret 0xc
mov edx, dword [esp + 0x18]
mov dword [edx + 0x1c], 0xa0000005
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 8]
pop esi
mov dword [eax], ecx
mov al, bl
pop ebx
add esp, 0xc
ret 0xc
Function at 0x4150d0
Capabilities:
Download and write a file
Query remote server for available data
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [esp + 0x18]
push ebx
lea eax, [esp + 0x10]
push ebx
push eax
push edi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
mov esi, dword [esp + 0x14]
je 0x4151e5
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4151ec
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x18], eax
cmp eax, ecx
jbe 0x415115
mov eax, ecx
mov dword [esp + 0x18], eax
mov edx, dword [esi + 0x10]
lea ecx, [esp + 0x18]
push ecx
push eax
push edx
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4151b6
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x10]
mov edx, dword [esp + 0x20]
push eax
push ecx
add eax, ebx
push edx
push eax
push 5
push edi
push esi
call fcn.00414f40
test al, al
je 0x4151ad
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x415196
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
cmp eax, 0xffffffff
je 0x415188
lea edx, [esp + 0x14]
push 0
push edx
push ecx
mov ecx, dword [esi + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4151a4
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
cmp ecx, eax
jne 0x4151a4
mov eax, dword [esp + 0xc]
add ebx, ecx
sub eax, ecx
mov dword [esp + 0xc], eax
jmp 0x41519a
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x415104
jmp 0x4151c5
mov dword [esi + 0x1c], 0xa0000008
jmp 0x4151bd
mov dword [esi + 0x1c], 0xa0000001
jmp 0x4151bd
mov dword [esi + 0x1c], 0xa0000007
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x4151ec
push 0
lea edx, [esp + 0x10]
push 0
push edx
push edi
mov dword [esp + 0x1c], 0
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x4150f8
mov dword [esi + 0x1c], 0xa0000007
mov eax, dword [esp + 0x20]
cmp ebx, eax
jne 0x41522a
push 0
push 0
push eax
push ebx
push 6
push edi
push esi
call fcn.00414f40
test al, al
je 0x41521a
mov dword [esi + 0x1c], 0x20000000
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0x10
mov dword [esi + 0x1c], 0xa0000001
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0x10
cmp dword [esi + 0x1c], 0xa0ffffff
jne 0x41523a
mov dword [esi + 0x1c], 0xa0000009
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0x10

Function at 0x415ac0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push edi
mov edx, dword [esp + 0x4c]
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 8]
mov dword [esp + 4], 0x3c
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x58]
lea eax, [esp + 4]
push eax
mov dword [esp + 0xc], 0x100
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
pop edi
add esp, 0x3c
ret 0x18
Function at 0x4162b0
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x41633a
push 0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
cmp eax, 0x102
ja 0x416320
je 0x4162f7
test eax, eax
je 0x4162ea
cmp eax, 0x80
jne 0x416325
mov ecx, dword [esp + 0x14]
mov al, 1
mov dword [ecx], esi
pop esi
pop ebx
ret 0xc
mov eax, dword [esp + 0x10]
test eax, eax
je 0x416317
push 0
push eax
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExA]
test eax, eax
je 0x416317
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0x102
call ebx
jmp 0x416326
cmp eax, 0xffffffff
je 0x416326
int3
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call ebx
pop edi
mov edx, dword [esp + 0x14]
pop esi
xor al, al
pop ebx
mov dword [edx], 0
ret 0xc

Function at 0x4172d0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1000
call fcn.00425180
mov ecx, dword [esp + 0x1004]
lea eax, [esp + 0x1008]
push eax
push ecx
lea edx, [esp + 8]
push 0x1000
push edx
call fcn.00425230
add esp, 0x10
mov byte [esp + 0xfff], 0
test eax, eax
jle 0x41731a
cmp eax, 0x1000
jae 0x41731a
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x1000
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push ebx
push ecx
push esi
push edi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41736a
mov ebx, dword [ebp + 0xc]
mov esi, 0x4310c0
add ecx, ebx
not eax
movzx edi, byte ds:[ebx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword ds:[esi + edi*4]
inc ebx
cmp ebx, ecx
jne 0x417350
not eax
pop edi
pop esi
pop ecx
pop ebx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x419600
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x5c
xor ecx, ecx
mov edx, dword [esp + 0x64]
mov dword [esp + 0x18], ecx
xor eax, eax
mov dword [esp + 0x1c], ecx
push ebx
mov dword [esp + 0x24], ecx
push ebp
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x14], eax
mov word [esp + 0x30], cx
push esi
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x18], edx
lea ecx, [esp + 0x10]
push edi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x78]
lea edx, [esp + 0x18]
xor edi, edi
push ecx
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], eax
call fcn.00419050
test eax, eax
js 0x41983d
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x28]
push 0x16
push ecx
push edx
push esi
call fcn.004176a0
test al, al
je 0x419838
cmp dword [esp + 0x10], 0x16
jne 0x419838
mov ax, word [esp + 0x28]
cmp ax, word [esp + 0x2a]
jne 0x4197ea
mov cx, word [esp + 0x2c]
cmp cx, word [esp + 0x2e]
jne 0x4197ea
mov ebp, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
cmp ebp, edi
jne 0x4196d0
pop edi
pop esi
pop ebp
mov eax, 0x20000000
pop ebx
add esp, 0x5c
ret 0xc
mov esi, dword [esp + 0x70]
xor edi, edi
mov dword [esp + 0x3c], edi
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
cmp ebp, 0x2e
stosw word es:[edi], ax
jb 0x419823
lea edx, [esp + 0x10]
lea eax, [esp + 0x3c]
push edx
push 0x2e
push eax
push ebx
push esi
call fcn.004176a0
test al, al
je 0x419838
cmp dword [esp + 0x10], 0x2e
jne 0x419838
mov cl, byte [esp + 0x42]
sub ebp, 0x2e
and ecx, 0xff
cmp ecx, 0x20
ja 0x4197ea
mov ecx, dword [esp + 0x58]
mov eax, ecx
and eax, 0xffff
cmp ebp, eax
jb 0x419823
test cx, cx
je 0x4197f9
inc eax
push eax
call fcn.0041cc80
mov esi, eax
test esi, esi
je 0x419808
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x70]
lea edx, [esp + 0x10]
and eax, 0xffff
push edx
push eax
push esi
push ecx
call fcn.00417660
test al, al
je 0x419832
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x10]
and eax, 0xffff
cmp eax, ecx
jne 0x419832
lea edx, [esp + 0x3c]
lea ebx, [ebx + eax + 0x2e]
sub ebp, eax
mov byte [eax + esi], 0
push edx
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.00419420
push esi
mov edi, eax
call fcn.0041d130
test edi, edi
js 0x419817
mov ecx, dword [esp + 0x5a]
and ecx, 0xffff
cmp ebp, ecx
jb 0x419823
mov eax, dword [esp + 0x5c]
sub ebp, ecx
and eax, 0xffff
cmp ebp, eax
jb 0x419823
add ecx, eax
add ebx, ecx
sub ebp, eax
jne 0x4196ca
pop edi
pop esi
pop ebp
mov eax, 0x20000000
pop ebx
add esp, 0x5c
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 0xa0000009
pop ebx
add esp, 0x5c
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 0xa0000007
pop ebx
add esp, 0x5c
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 0xa000000a
pop ebx
add esp, 0x5c
ret 0xc
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 0xa0000002
pop ebx
add esp, 0x5c
ret 0xc
push esi
call fcn.0041d130
mov eax, 0xa0000003
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0xc
Function at 0x419ad0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push esi
push edi
mov edi, 8
mov ecx, dword [eax]
mov edx, dword [eax + 4]
xor eax, eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
xor esi, esi
mov dl, byte [esp + esi + 8]
mov al, 1
mov ecx, esi
shl al, cl
test dl, 0x40
je 0x419b0a
or byte [esp + 0x10], al
test dl, 0x10
je 0x419b13
or byte [esp + 0x11], al
test dl, 4
je 0x419b1c
or byte [esp + 0x12], al
test dl, 1
je 0x419b25
or byte [esp + 0x13], al
test dl, dl
jns 0x419b2d
or byte [esp + 0x14], al
test dl, 0x20
je 0x419b36
or byte [esp + 0x15], al
test dl, 8
je 0x419b3f
or byte [esp + 0x16], al
test dl, 2
je 0x419b48
or byte [esp + 0x17], al
inc esi
dec edi
jne 0x419af7
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x10]
push ebx
xor bl, bl
push ebp
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov byte [esp + 0x18], bl
and edi, 1
mov eax, dword [esp + 0x18]
and eax, 0xff
lea ecx, [eax + eax*2]
lea eax, [esp + 0x10]
lea edx, [ebp + ecx*2]
lea ecx, [esp + 0x2c]
push edx
push eax
push ecx
call fcn.00419c40
mov eax, dword [esp + 0x2c]
xor eax, esi
mov esi, dword [esp + 0x10]
test edi, edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], eax
jne 0x419bac
inc bl
cmp bl, 0x10
mov byte [esp + 0x18], bl
jb 0x419b6b
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x14], esi
pop ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
xor esi, esi
mov edi, 8
pop ebx
mov cl, byte [esp + esi + 8]
mov al, byte [esi + 0x431670]
test cl, 1
je 0x419bda
or byte [esp + 0x10], al
test cl, 2
je 0x419be3
or byte [esp + 0x11], al
test cl, 4
je 0x419bec
or byte [esp + 0x12], al
test cl, 8
je 0x419bf5
or byte [esp + 0x13], al
test cl, 0x10
je 0x419bfe
or byte [esp + 0x14], al
test cl, 0x20
je 0x419c07
or byte [esp + 0x15], al
test cl, 0x40
je 0x419c10
or byte [esp + 0x16], al
test cl, cl
jns 0x419c18
or byte [esp + 0x17], al
inc esi
dec edi
jne 0x419bc7
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
pop edi
mov dword [eax], edx
mov dword [eax + 4], ecx
pop esi
add esp, 0x10
ret 0xc