joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413423
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x41346a
call fcn.00416bc6
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41346a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x413486
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00412f28
mov esi, eax
test edi, edi
je 0x413484
test ebx, ebx
je 0x413484
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41463b
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x567650]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x414670
xor eax, eax
jmp 0x4146c3
lea eax, [ebp - 0x210]
push eax
call fcn.004fd226
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x4146a1
push 0x5242b4
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004ff46d
add esp, 0xc
test eax, eax
jne 0x41466c
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004ff46d
add esp, 0xc
test eax, eax
jne 0x41466c
lea eax, [ebp - 0x210]
push eax
call fcn.0040ea1e
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004fb314
leave
ret

Function at 0x4449ab
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.00416bc6
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4449e4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.004445ed
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x444a42
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x444a66
cmp dword [edi + 0x74], 0
jne 0x444a66
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.00416bc6
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00444a03
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x446903
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.004465c2
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x44694d
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040ced8
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040aaf9
jmp 0x446958
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004180a9
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x44695e
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0040cabe
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x44699b
call fcn.004465c2
mov dword [esi + 0xc], 1
jmp 0x4469a0
call fcn.004465c2
cmp dword [esi], 0
je 0x4469e9
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x4469c1
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040ced8
jmp 0x4469d3
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00403070
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040aaf9
jmp 0x446a0d
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x446a0d
push dword [esi]
push dword [ebp + 8]
call fcn.004180a9
pop esi
pop ebp
ret 0xc

Function at 0x4862b2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x4862cc
call fcn.00416bc6
mov esi, dword [eax + 0xc]
push dword [0x56ca30]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4862ea
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4862e2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x486317
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x4862e4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004861e0
mov esi, eax
jmp 0x486309

Function at 0x4d7fcd
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00411985
call fcn.00402df0
cmp eax, esi
pop esi
jne 0x4d7fe9
mov ecx, 0x56a7d0
jmp fcn.00415490
ret
Function at 0x4db8d8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4db8f0
mov edi, dword [esi + 0xc]
jmp 0x4db930
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4db909
call fcn.00416f85
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4db91e
call fcn.00416f85
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4db930
call fcn.00416f85
call fcn.00416bc6
cmp dword [eax + 0x3c], 0
je 0x4db945
push edi
mov ecx, ebx
call fcn.004da796
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004db7f2
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4db963
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4db96f
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4fb314
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x567650]
jne 0x4fb31e
repz ret
jmp fcn.005049cc
Function at 0x50ee37
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x567650]
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.005043c1
and dword [ebp - 0x14], 0
cmp dword [0x56efe4], 0
mov dword [ebp - 0x18], eax
jne 0x50eeea
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x50ef92
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x50ef92
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x548df4
push ebx
mov dword [0x56efe4], eax
call edi
push eax
call esi
push 0x548de0
push ebx
mov dword [0x56efe8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x56efec], eax
call edi
push eax
call esi
mov dword [0x56eff4], eax
test eax, eax
je 0x50eeea
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x56eff0], eax
mov eax, dword [0x56eff0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x50ef43
cmp dword [0x56eff4], ecx
je 0x50ef43
push eax
call esi
push dword [0x56eff4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x50ef43
test ebx, ebx
je 0x50ef43
call edi
test eax, eax
je 0x50ef3a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x50ef3a
test byte [ebp - 8], 1
jne 0x50ef43
or dword [ebp + 0x10], 0x200000
jmp 0x50ef76
mov eax, dword [0x56efe8]
cmp eax, dword [ebp - 0x18]
je 0x50ef76
push eax
call esi
test eax, eax
je 0x50ef76
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x50ef76
mov eax, dword [0x56efec]
cmp eax, dword [ebp - 0x18]
je 0x50ef76
push eax
call esi
test eax, eax
je 0x50ef76
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x56efe4]
call esi
test eax, eax
je 0x50ef92
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x50ef94
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fb314
leave
ret
Function at 0x406de0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40701c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x407028
push 0x407024
push 0x407020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x407028]
push dword [0x407024]
push dword [0x407020]
mov dword [0x407014], esp
call fcn.00401537
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x4019de
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
mov ebx, esi
add ebx, 0xc8
mov edi, dword [ebp + 0xc]
mov ecx, esi
mov eax, edi
shl eax, cl
cdq
idiv ebx
mov dword [ebp - 8], eax
and dword [ebp - 4], 0
jmp 0x401a7c
and dword [ebp - 0xc], 0
and dword [ebp - 0x10], 0
jmp 0x401a17
add dword [ebp - 0xc], ebx
inc dword [ebp - 0x10]
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x10], eax
jl 0x401a11
mov ecx, dword [ebp - 8]
cmp eax, ecx
jne 0x401a30
mov eax, dword [ebp + 0xc]
add eax, esi
mov ebx, eax
sub ebx, dword [ebp - 0xc]
or ebx, ebx
je 0x401a8d
and dword [ebp - 0x14], 0
push ebx
push dword [ebp - 0xc]
push esi
call fcn.0040198a
mov dword [ebp - 0x18], eax
push ebx
push dword [ebp - 0xc]
push esi
call fcn.0040198a
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
or edx, esi
add edx, eax
push edx
mov edx, dword [ebp - 0x18]
xor edx, esi
add edx, eax
push edx
call fcn.00401970
add esp, 0x20
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x7e8
jl 0x401a38
inc dword [ebp - 4]
mov eax, dword [ebp - 8]
mov edx, esi
dec edx
and eax, edx
cmp dword [ebp - 4], eax
jle 0x401a07
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44c94c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x46699a
sub esp, 0x24
mov eax, dword [0x512154]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
xor ebx, ebx
mov dword [esp + 0xc], eax
push edi
mov eax, dword [esi + 0x3c]
mov ebp, dword [eax + esi + 0x78]
add ebp, esi
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
add edi, esi
mov dword [esp + 0x14], eax
test eax, eax
je 0x466a08
mov eax, dword [edi]
lea ecx, [esp + 0x18]
add eax, esi
push eax
call fcn.0044d0b8
push dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
call fcn.0044f1ab
pop ecx
pop ecx
test al, al
jne 0x466a1f
lea ecx, [esp + 0x18]
add edi, 4
call fcn.0044f12e
inc ebx
cmp ebx, dword [esp + 0x14]
jb 0x4669d3
xor esi, esi
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044e571
add esp, 0x24
ret
mov eax, dword [ebp + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebp + 0x1c]
lea eax, [eax + ecx*4]
mov esi, dword [eax + esi]
lea ecx, [esp + 0x18]
call fcn.0044f12e
jmp 0x466a0a

Function at 0x44ebde
Capabilities:
Terminate process

Disassembly:
jmp 0x49e6fe
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x49e70f
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00451546
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x44ed6e
Capabilities:
Query environment variable

Disassembly:
jmp 0x4dcadf
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4dcaf3
xor edi, edi
jmp 0x4dcb2a
push ebx
push esi
call fcn.004dc9e9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0044f7dc
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4dcb1a
push ebx
push esi
push edi
call fcn.004512b7
add esp, 0xc
push 0
call fcn.00452068
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret
Function at 0x44f363
Capabilities:
Encode data using xor

Disassembly:
jmp 0x467532
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0x467626
push ebx
push ebp
push edi
mov edi, dword [esp + 0x14]
mov ebp, 0x5154f8
mov bl, byte [esi + edi]
push str.ugAyuisyx
push ebp
call fcn.0044e233
xor edx, edx
mov eax, esi
div dword [esp + 0x24]
pop ecx
pop ecx
push 0x451edd
push str.Bicycle_water
mov bh, byte [edx + section..REMO]
push 0x5155e0
xor bh, bl
call fcn.0044e233
pop ecx
pop ecx
mov ecx, eax
call fcn.004512a8
mov bl, byte [esi + edi]
push 0x451edd
push str.dijovhyuGSYYSyus
push ebp
call fcn.0044e233
pop ecx
pop ecx
mov ecx, eax
call fcn.004512a8
add byte [esi + edi], bh
push 0x451edd
push str.fdiogiuAsdoiHYUAUAY87234
push ebp
call fcn.0044e233
pop ecx
pop ecx
mov ecx, eax
call fcn.004512a8
dec byte [esi + edi]
push str.suih89Ah3
push ebp
call fcn.0044e233
add byte [esi + edi], 0xfe
push str.XScdyhjkujktyyt
push ebp
call fcn.0044e233
sub byte [esi + edi], bl
push str.sJBCsKJ2BJN
push ebp
call fcn.0044e233
inc byte [esi + edi]
push str.sDGTFsE
push ebp
call fcn.0044e233
inc byte [esi + edi]
push str.ZASwe23
push ebp
call fcn.0044e233
inc byte [esi + edi]
push str.uhgiyGAuyisua
push ebp
call fcn.0044e233
add esp, 0x30
inc esi
cmp esi, dword [esp + 0x18]
jb 0x46754b
pop edi
pop ebp
pop ebx
pop esi
ret

Function at 0x4513a2
Capabilities:
Parse pe header

Disassembly:
jmp 0x48d600
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x48d63f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x48d63f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x48d63f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x48d63f
cmp dword [ecx + 0x74], 0xe
jbe 0x48d63f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4516b8
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
jmp 0x466a65
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x551d88], eax
pop edi
pop esi
ret

Function at 0x401c30
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sub.ucrtbase.dll__configure_narrow_argv
call sub.ucrtbase.dll__initialize_narrow_environment
call 0x401ca0
mov ebx, dword [eax]
call sub.ucrtbase.dll___p___argv
mov esi, dword [eax]
call sub.ucrtbase.dll__get_initial_narrow_environment
mov edi, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + 8]
mov eax, dword [edx + 0x3c]
cmp word [edx + eax + 0x5c], 2
sete dl
movzx edx, dl
add edx, 1
mov dword [esp], edx
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.00401ce0
mov dword [esp], eax
call sub.ucrtbase.dll_exit
jmp dword [sym.imp.ucrtbase.dll___p___argc]
Function at 0x4010a0
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x210
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x4246d0
push 0x67
push esi
call edi
push 0x64
push 0x424608
push 0x6d
push esi
call edi
mov eax, esi
call fcn.00401250
mov eax, dword [ebp + 0x10]
mov edx, 0x4251d8
sub edx, eax
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4010f0
call fcn.00403700
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
mov dword [0x4230c0], eax
call edi
call fcn.004015f0
test eax, eax
je 0x40112c
call fcn.00403ac0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
call fcn.004020e0
add esp, 4
test eax, eax
jne 0x40114f
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
call fcn.0040ab4e
mov esp, ebp
pop ebp
ret 0x10
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
push 0x206
lea eax, [esp + 0xe]
push 0
push eax
mov word [esp + 0x14], 0
call fcn.0040ef00
mov eax, dword [0x424e20]
add esp, 0xc
test eax, eax
jbe 0x4011a2
cmp word [0x424e24], 0
jbe 0x4011a2
push eax
mov esi, 0x423668
call fcn.00403680
mov cx, word [0x424e24]
add esp, 4
mov word [0x423678], cx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
mov eax, 0x10624dd3
mul edx
mov eax, edx
xor edx, edx
shr eax, 6
mov ecx, 0x3e8
div ecx
push edx
push 0x41dc00
mov edx, 0x4253e8
call fcn.00402ec0
call fcn.00402a50
lea esi, [esp + 0x10]
call fcn.00402ee0
push 0x41dc18
mov edx, esi
push 0x104
push edx
call fcn.0040ab8d
add esp, 0x14
push 0x4253e8
mov eax, esi
push 0x104
push eax
call fcn.0040ab8d
add esp, 0xc
mov ecx, esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401232
push 0x1f4
call edi
push 1
push 0
push 0x41dd90
mov edx, esi
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x1388
call edi
call fcn.004027d0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401520
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push 0x41dc34
push eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0
call fcn.0040ad98
add esp, 0xc
test eax, eax
je 0x401544
xor eax, eax
pop ecx
ret
mov edx, dword [esp]
push ebx
push ebp
push esi
push edi
push 2
push 0
push edx
call fcn.0040ae6f
mov eax, dword [esp + 0x1c]
push eax
call fcn.0040b08c
mov ecx, dword [esp + 0x20]
push 0
push 0
push ecx
mov esi, eax
call fcn.0040ae6f
mov edx, dword [esp + 0x38]
lea ebp, [esi + edx]
push ebp
call fcn.0040b149
mov edi, eax
mov eax, dword [esp + 0x30]
push eax
push 1
push esi
push edi
call fcn.0040b469
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0040b4f7
mov eax, dword [esp + 0x50]
lea ebx, [edi + esi]
call fcn.00403a30
mov edx, dword [esp + 0x4c]
push 0x41dc3c
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.0040ad98
add esp, 0x40
test eax, eax
je 0x4015c5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x10]
push ecx
push 1
push ebp
push edi
call fcn.0040b68d
mov edx, dword [esp + 0x20]
push edx
call fcn.0040b4f7
add esp, 0x14
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x4020e0
Capabilities:
Create thread
Initialize winsock library

Disassembly:
sub esp, 0x3e4
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x3e0], eax
mov eax, dword [esp + 0x3e8]
push edi
push 0
push eax
push 0
push 0
push 0
push closesocket
push 0
push closesocket
push 0xcf0000
push 0x4246d0
push 0x424608
push 0
mov dword [0x424798], eax
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
je 0x4022b4
push 0x206
lea eax, [esp + 0x1de]
push 0
push eax
mov word [esp + 0x1e4], 0
call fcn.0040ef00
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 1
mov edi, 0x424f58
call fcn.0040a980
add esp, 4
test eax, eax
jne 0x402269
push 0x3a
push eax
lea edx, [esp + 0x1a6]
push edx
mov word [esp + 0x1a8], ax
call fcn.0040ef00
add esp, 0xc
lea edi, [esp + 0x19c]
call fcn.00401000
xor eax, eax
jmp 0x4021b0
movzx ecx, word [esp + eax + 0x19c]
mov word [eax + 0x425100], cx
add eax, 2
test cx, cx
jne 0x4021b0
push 0x41dc90
push 0x40
push 0x424f5c
call fcn.0040ac07
add esp, 0xc
push 0x41dcac
push 0x10
push 0x424fde
mov word [0x424fdc], 0x51
call fcn.0040ac07
add esp, 0xc
push 0x41dc5c
push 0x40
push 0x424ffe
call fcn.0040ac07
add esp, 0xc
mov word [0x42507e], 0x2b66
xor eax, eax
jmp 0x402220
movzx ecx, word [esp + eax + 0x19c]
mov word [eax + 0x4250e0], cx
add eax, 2
test cx, cx
jne 0x402220
mov eax, 0x4250e0
add eax, 0xfffffffe
nop
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x402240
mov ecx, dword [0x41dd2c]
mov dx, word [0x41dd30]
mov dword [eax], ecx
mov word [eax + 4], dx
mov dword [0x425120], 5
call fcn.004013a0
lea edi, [esp + 0x1d8]
call fcn.00401000
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0x1d8]
mov word [eax + 0x425158], cx
add eax, 2
test cx, cx
jne 0x402280
push 0x425158
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x4022cc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
mov ecx, dword [esp + 0x3e0]
xor ecx, esp
call fcn.0040ab4e
add esp, 0x3e4
ret
push 0x425158
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x4022b4
mov ecx, 0x4255f0
call fcn.00402640
mov eax, dword [0x425124]
push 0
push 0
push 0
push 0x4012e0
push 0
push 0
mov dword [0x4255f8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0x3e4]
pop edi
mov dword [0x423660], eax
xor ecx, esp
mov eax, 1
call fcn.0040ab4e
add esp, 0x3e4
ret