joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10245995
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1021f120
mov eax, dword [0x10291440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.1023d75b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x102459d7
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10245b33
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10250e20
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x1029a378]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10243de7
mov ecx, dword [esi*4 + 0x1029a378]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x10245b2c
cmp eax, dword [ecx + edi + 0x24]
jne 0x10245b2c
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10245b2c
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10243de7
add esp, 0x14
test edx, edx
jl 0x10245b2c
jg 0x10245aa2
test eax, eax
jb 0x10245b2c
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10245b2c
jl 0x10245abc
cmp dword [ebp - 0x1008], eax
ja 0x10245b2c
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10245ada
test ebx, ebx
je 0x10245b13
cmp ecx, edi
jae 0x10245b13
mov al, byte [ecx]
cmp al, 0xd
jne 0x10245af4
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10245b00
cmp byte [ecx + 1], 0xa
jne 0x10245b00
inc ecx
jmp 0x10245b00
movzx eax, al
movsx eax, byte [eax + 0x10291720]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10245ada
cmp edx, ebx
jne 0x10245ada
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10245b31
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1021eb98
leave
ret
Function at 0x10247824
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x102478c1
push ebx
push esi
call fcn.102477ed
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10244c29
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1024786e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x102478c0
push edi
push eax
call fcn.1023c85b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1024788e
call fcn.1023c821
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x102478bf
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10244c29
add esp, 0x20
test eax, eax
jne 0x102478ad
push edi
call fcn.1023c821
jmp 0x102478b5
push ebx
call fcn.1023c821
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x102478c4
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x102478d5
pop esi
ret
push ebx
push edi
push esi
call fcn.102477ed
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1023c85b
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x102478fd
push ebx
push esi
push edi
call fcn.102207f0
add esp, 0xc
push 0
call fcn.1023c821
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10248059
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10247b72

Function at 0x1024bc93
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1023dc28
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1024bd02
cmp esi, dword [ebp - 4]
je 0x1024bcfd
cmp dword [ebp + 0xc], 0
je 0x1024bcfd
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1024bcda
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1024b7e5
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1024bd04
xor eax, eax
inc eax
jmp 0x1024bd04
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1024bd69
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10291440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.1023dc28
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1023dc28
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1024bde0
cmp word [ecx], dx
je 0x1024bde0
mov eax, dword [0x1027f31c]
push edi
dec eax
push eax
push 0x1027f208
call fcn.1024bd08
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1024be53
cmp word [eax], dx
je 0x1024be53
mov eax, dword [edi]
test eax, eax
je 0x1024be04
cmp word [eax], dx
je 0x1024be04
lea eax, [ebp - 0x10]
push eax
call fcn.1024b6eb
jmp 0x1024be0d
lea eax, [ebp - 0x10]
push eax
call fcn.1024b786
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1024be7d
mov eax, dword [0x1027f204]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1027eef8
call fcn.1024bd08
add esp, 0xc
test al, al
je 0x1024be7d
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1024be48
cmp word [eax], di
je 0x1024be48
lea eax, [ebp - 0x10]
push eax
call fcn.1024b6eb
pop ecx
jmp 0x1024be7f
lea eax, [ebp - 0x10]
push eax
call fcn.1024b786
jmp 0x1024be45
mov eax, dword [edi]
test eax, eax
je 0x1024be6a
cmp word [eax], dx
je 0x1024be6a
lea eax, [ebp - 0x10]
push eax
call fcn.1024b6a0
pop ecx
jmp 0x1024be7d
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1024bf48
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1024bb8d
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1024bf48
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1024bf48
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1024bf48
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1024bed5
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.102402d8
test ebx, ebx
je 0x1024bf43
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.102402d8
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1024bf48
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1024bf48
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1023fa4d
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1024bf4a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1021eb98
leave
ret
Function at 0x10250d40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10250d6d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10250d6d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x41fb6c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42b520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00416e52
and dword [ebp - 0x14], 0
cmp dword [0x46d558], 0
mov dword [ebp - 0x18], eax
jne 0x41fc1f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41fcc7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41fcc7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x46d558], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x46d55c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x46d560], eax
call edi
push eax
call esi
mov dword [0x46d568], eax
test eax, eax
je 0x41fc1f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x46d564], eax
mov eax, dword [0x46d564]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41fc78
cmp dword [0x46d568], ecx
je 0x41fc78
push eax
call esi
push dword [0x46d568]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41fc78
test ebx, ebx
je 0x41fc78
call edi
test eax, eax
je 0x41fc6f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41fc6f
test byte [ebp - 8], 1
jne 0x41fc78
or dword [ebp + 0x10], 0x200000
jmp 0x41fcab
mov eax, dword [0x46d55c]
cmp eax, dword [ebp - 0x18]
je 0x41fcab
push eax
call esi
test eax, eax
je 0x41fcab
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41fcab
mov eax, dword [0x46d560]
cmp eax, dword [ebp - 0x18]
je 0x41fcab
push eax
call esi
test eax, eax
je 0x41fcab
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x46d558]
call esi
test eax, eax
je 0x41fcc7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41fcc9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004113cb
leave
ret

Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x6a9b0d02
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e3d0
mov ecx, 0x59103713
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x432005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..reloc
nop
mov ebx, 0x40c7d0
mov ecx, 0x19330f3f
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..rdata
mov ebx, 0x42f314
nop
nop
mov ecx, 0x469a26a4
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x432084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x4041f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov dword [esp], ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
sub esp, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], 0xb8ec3eff
jmp 0x404230
mov dword [ebp - 0x18], 0xc2758d56
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp - 0x18]
cmp eax, 0x373ebfb1
jg 0x404260
cmp eax, 0xad6c57b9
jg 0x404270
cmp eax, 0x9c927ccf
jne 0x404230
mov dword [ebp - 0x18], 0x1c29094b
jmp 0x404230
cmp eax, 0x373ebfb2
jne 0x404230
jmp 0x404221
cmp eax, 0x1c29094a
jg 0x4042ed
cmp eax, 0x130513d3
jg 0x404304
cmp eax, 0xda06c40c
jg 0x40431b
cmp eax, 0xcaaf68dd
jg 0x404339
cmp eax, 0xc99e06fe
jg 0x404350
cmp eax, 0xc2758d55
jg 0x404367
cmp eax, 0xb8ec3efe
jg 0x404384
cmp eax, 0xb0508e50
jg 0x4043a7
cmp eax, 0xad6c57ba
je 0x4043b4
cmp eax, 0xad76b9d7
jne 0x4043c7
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 0x18], 0x9c927ccf
jmp 0x404230
cmp eax, 0x1c29094b
jne 0x404230
mov dword [ebp - 0x18], 0xc2758d56
jmp 0x404230
cmp eax, 0x130513d4
jne 0x404230
mov dword [ebp - 0x18], 0x1c29094b
jmp 0x404230
cmp eax, 0xda06c40d
jne 0x404230
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0x130513d4
jmp 0x404230
cmp eax, 0xcaaf68de
jne 0x404230
mov dword [ebp - 0x18], 0xda06c40d
jmp 0x404230
cmp eax, 0xc99e06ff
jne 0x404230
mov dword [ebp - 0x18], 0xad76b9d7
jmp 0x404230
cmp eax, 0xc2758d56
jne 0x404230
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], 0xb0508e51
jmp 0x404230
cmp eax, 0xb8ec3eff
jne 0x404230
mov eax, 0xc99e06ff
cmp dword [ebp - 8], 0
je 0x40439f
mov eax, 0xcaaf68de
mov dword [ebp - 0x18], eax
jmp 0x404230
cmp eax, 0xb0508e51
jne 0x404230
jmp 0x4043e5
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0xda06c40d
jmp 0x404230
cmp eax, 0xb006d4a6
jne 0x404230
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 0x18], 0xad76b9d7
jmp 0x404230
mov eax, dword [ebp - 4]
add esp, 0x20
pop ebp
ret
Function at 0x4043f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
sub esp, 8
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0x19b2e3bd
jmp 0x404430
mov dword [ebp - 0x14], 0xd7d62010
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp - 0x14]
cmp eax, 0xd7d6200f
jg 0x404450
cmp eax, 0xba8af0ed
jne 0x404430
jmp 0x404421
cmp eax, 0xf178a7d6
jg 0x404470
cmp eax, 0xd7d62010
jne 0x404430
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0x14], 0x4a750ce3
jmp 0x404430
cmp eax, 0x19b2e3bc
jg 0x40448e
cmp eax, 0xf178a7d7
jne 0x404430
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0x6e5c967e
jmp 0x404430
cmp eax, 0x4a750ce2
jg 0x4044b4
cmp eax, 0x19b2e3bd
jne 0x404430
mov eax, 0xba8af0ed
cmp dword [ebp - 4], 0
je 0x4044ac
mov eax, 0xf178a7d7
mov dword [ebp - 0x14], eax
jmp 0x404430
cmp eax, 0x4a750ce3
je 0x4044d5
cmp eax, 0x593e989d
jne 0x4044e1
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0x14], 0xd7d62010
jmp 0x404430
mov dword [ebp - 0x14], 0x6e5c967e
jmp 0x404430
cmp eax, 0x6e5c967e
jne 0x404430
mov eax, dword [ebp - 8]
add esp, 0x1c
pop ebp
ret

Function at 0x4053e0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x134
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
mov dword [esp], eax
call fcn.00404970
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x130], 0xc3a57afb
lea esi, [ebp - 0x125]
mov edi, 0xdc150407
jmp 0x4054fe
mov dword [esp], esi
mov dword [esp + 8], 0x105
mov dword [esp + 4], 0
call fcn.00403c50
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [esp + 8], eax
mov dword [esp], ecx
mov dword [esp + 4], 0
call fcn.00403c50
mov dword [esp], esi
mov dword [esp + 4], 0x105
call fcn.00404b10
mov dword [esp], esi
call fcn.00404970
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], ebx
call fcn.00404500
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
add edx, edi
sub edx, ecx
add edx, 0x23eafbf9
add ecx, dword [ebp - 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], edx
mov dword [esp], ecx
call fcn.00404500
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
sub esp, 8
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x130], 0xc3a57afb
mov eax, dword [ebp - 0x130]
cmp eax, 0x1d5eb5ea
je 0x405538
cmp eax, 0x40d9ef2f
je 0x405440
cmp eax, 0xc3a57afb
jne 0x4054fe
mov eax, 0x40d9ef2f
cmp dword [ebp - 0x12c], 0
je 0x405530
mov eax, 0x1d5eb5ea
mov dword [ebp - 0x130], eax
jmp 0x4054fe
add esp, 0x134
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x409360
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
lea ecx, [eax + 0x2c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0x4090d0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00416af3
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0xe9d5cd31
jmp 0x4093e0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov dword [esp + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
mov dword [ebp - 0x10], 0xbb018ac9
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp - 0x10]
cmp eax, 0x311682a6
jg 0x409410
cmp eax, 0x9699b4c0
jg 0x409420
cmp eax, 0x8c38477f
jne 0x4093e0
mov dword [ebp - 0x10], 0xbb018ac9
jmp 0x4093e0
cmp eax, 0x311682a7
jne 0x4093e0
jmp 0x4093b4
cmp eax, 0xbb018ac8
jg 0x409430
cmp eax, 0x9699b4c1
jne 0x4093e0
jmp 0x409491
cmp eax, 0xbb018ac9
je 0x409453
cmp eax, 0xe9d5cd31
jne 0x40946b
mov eax, 0x8c38477f
cmp dword [ebp - 4], 0
je 0x40944e
mov eax, 0x311682a7
mov dword [ebp - 0x10], eax
jmp 0x4093e0
mov eax, 0xf161e14f
cmp dword [ebp - 0xc], 0
jne 0x409463
mov eax, 0x9699b4c1
mov dword [ebp - 0x10], eax
jmp 0x4093e0
cmp eax, 0xf161e14f
jne 0x4093e0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [ebp - 0x10], 0x9699b4c1
jmp 0x4093e0
add esp, 0x28
pop ebp
ret
Function at 0x40d500
Capabilities:
Accept command line arguments
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x1c
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov eax, dword [0x40e6bc]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x20], 0xbbd26117
jmp 0x40d550
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4b40f8], eax
call fcn.0041655f
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x4b23519a
nop
nop
nop
mov eax, dword [ebp - 0x20]
cmp eax, 0x7d87a3d9
jg 0x40d5c0
cmp eax, 0xa5dc0ad1
jg 0x40d5d0
cmp eax, 0x83fd94c2
jne 0x40d550
mov dword [esp], 0
call fcn.0040d6b0
mov dword [esp], eax
call fcn.00416582
mov eax, dword [ebp - 0x14]
movzx esi, word [eax]
mov dword [esp], eax
call fcn.00404a70
mov ecx, dword [ebp - 0x14]
movzx edi, word [ecx + eax*2 - 2]
neg edi
sub edi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
sub eax, edi
mov dword [ebp - 0x18], eax
mov ecx, 0xe5e7ce41
cmp eax, dword [ebp - 0x1c]
je 0x40d5b0
mov ecx, 0x3331ce66
mov dword [ebp - 0x20], ecx
jmp 0x40d550
cmp eax, 0x7d87a3da
jne 0x40d550
jmp 0x40d533
cmp eax, 0x4b235199
jg 0x40d5ee
cmp eax, 0xbbd26116
jg 0x40d618
cmp eax, 0xa5dc0ad2
jne 0x40d550
jmp 0x40d698
cmp eax, 0x4b23519a
jne 0x40d550
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4b40f8], eax
call fcn.0041655f
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0xd1fa97d8
jmp 0x40d550
cmp eax, 0xd1fa97d7
jg 0x40d642
cmp eax, 0xbbd26117
jne 0x40d550
mov eax, 0x33873eaf
cmp dword [ebp - 0xc], 0
je 0x40d63a
mov eax, 0x83fd94c2
mov dword [ebp - 0x20], eax
jmp 0x40d550
cmp eax, 0xe5e7ce40
jg 0x40d660
cmp eax, 0xd1fa97d8
jne 0x40d550
mov dword [ebp - 0x20], 0xa5dc0ad2
jmp 0x40d550
cmp eax, 0xe5e7ce41
je 0x40d68c
cmp eax, 0x3331ce66
je 0x40d679
cmp eax, 0x33873eaf
jne 0x40d550
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], 0xa5dc0ad2
jmp 0x40d550
mov dword [ebp - 0x20], 0x4b23519a
jmp 0x40d550
mov eax, dword [ebp - 0x10]
add esp, 0x1c
pop esi
pop edi
pop ebp
ret
Function at 0x41e5aa
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4c73e0]
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
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0041b403
mov dword [ebp - 0x14], eax
cmp dword [0x4c8c7c], edi
jne 0x41e69b
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x41e628
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41e77b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x41e77b
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41e77b
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x4c8c7c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4c8c80], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4c8c84], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4c8c8c], eax
test eax, eax
je 0x41e698
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4c8c88], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41e6c0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41e6b3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x41e6d5
push 4
pop eax
jmp 0x41e77d
cmp dword [ebp - 0x14], edi
je 0x41e6d5
push dword [0x4c8c7c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41e6ba
mov eax, dword [0x4c8c88]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x41e733
cmp dword [0x4c8c8c], esi
je 0x41e733
push eax
call ebx
push dword [0x4c8c8c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41e733
test eax, eax
je 0x41e733
call ecx
test eax, eax
je 0x41e728
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 0x41e728
test byte [ebp - 8], 1
jne 0x41e733
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x41e763
mov eax, dword [0x4c8c80]
cmp eax, esi
je 0x41e760
push eax
call ebx
test eax, eax
je 0x41e760
call eax
mov edi, eax
test edi, edi
je 0x41e760
mov eax, dword [0x4c8c84]
cmp eax, esi
je 0x41e760
push eax
call ebx
test eax, eax
je 0x41e760
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4c8c7c]
call ebx
test eax, eax
je 0x41e77b
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x41e77d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418509
leave
ret