joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450ba4
Capabilities:
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x31c
push ebx
mov ebx, dword [ebp + 0x78]
push esi
mov esi, dword [ebp + 0x74]
xor edx, edx
push edi
xor edi, edi
cmp esi, 0xffffffff
mov dword [ebp + 0x64], edx
mov dword [ebp + 0x68], edx
jne 0x450bd8
cmp ebx, esi
jne 0x450bd8
mov eax, dword [ebp + 0x7c]
call fcn.00450b85
jmp 0x450d75
cmp dword [ebp + 0x7c], edx
jle 0x450bed
mov edi, dword [ebp + 0x7c]
call fcn.0045216a
mov dword [ebp + 0x68], edx
mov dword [ebp + 0x64], eax
xor edx, edx
xor eax, eax
or ecx, 0xffffffff
inc eax
cmp esi, ecx
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0x1ac], edx
je 0x450c1d
mov dword [ebp - 0x1a8], esi
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa8], eax
mov ecx, esi
cmp ebx, 0xffffffff
mov dword [ebp - 0x2b0], edx
je 0x450c74
mov dword [ebp - 0x2b0], eax
xor eax, eax
cmp dword [ebp - 0xa8], edx
mov dword [ebp - 0x2ac], ebx
jbe 0x450c50
cmp dword [ebp + eax*4 - 0xa4], ebx
je 0x450c50
inc eax
cmp eax, dword [ebp - 0xa8]
jb 0x450c3e
cmp eax, dword [ebp - 0xa8]
jne 0x450c6e
cmp dword [ebp - 0xa8], 0x40
jae 0x450c6e
mov dword [ebp + eax*4 - 0xa4], ebx
inc dword [ebp - 0xa8]
cmp ebx, ecx
jbe 0x450c74
mov ecx, ebx
cmp dword [ebp + 0x7c], edx
jge 0x450c7d
xor ebx, ebx
jmp 0x450c80
lea ebx, [ebp + 0x5c]
lea esi, [ecx + 1]
xor eax, eax
cmp dword [ebp + 0x7c], eax
jle 0x450c9f
mov eax, edi
cdq
mov ecx, 0x3e8
idiv ecx
imul edx, edx, 0x3e8
mov dword [ebp + 0x60], edx
jmp 0x450ca4
jne 0x450ca7
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x5c], eax
push ebx
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x2b0]
push eax
lea eax, [ebp - 0x1ac]
push eax
push esi
call dword [0x45e28c]
cmp eax, 0xffffffff
jne 0x450d00
call dword [0x45e224]
test eax, eax
je 0x450cda
cmp eax, 0x2714
jne 0x450d04
cmp dword [ebp + 0x7c], 0
jle 0x450c83
push dword [ebp + 0x68]
push dword [ebp + 0x64]
call fcn.0045216a
push edx
push eax
call fcn.00452180
mov edi, dword [ebp + 0x7c]
sub edi, eax
add esp, 0x10
test edi, edi
jg 0x450c83
jmp 0x450d04
test eax, eax
jge 0x450d09
or eax, 0xffffffff
jmp 0x450d75
jne 0x450d0f
xor eax, eax
jmp 0x450d75
xor esi, esi
cmp dword [ebp + 0x74], 0xffffffff
je 0x450d41
lea eax, [ebp - 0x1ac]
push eax
push dword [ebp + 0x74]
call fcn.00459ada
test eax, eax
je 0x450d2b
inc esi
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x74]
call fcn.00459ada
test eax, eax
je 0x450d41
or esi, 4
cmp dword [ebp + 0x78], 0xffffffff
je 0x450d73
lea eax, [ebp - 0x2b0]
push eax
push dword [ebp + 0x78]
call fcn.00459ada
test eax, eax
je 0x450d5d
or esi, 2
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x78]
call fcn.00459ada
test eax, eax
je 0x450d73
or esi, 4
mov eax, esi
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret
Function at 0x452cc7
Capabilities:
Parse pe header

Disassembly:
movsx eax, byte [esp + 4]
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x452cd4
jmp dword [eax*4 + 0x452d2f]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret
mov al, byte [esp + 4]
ret

Function at 0x454a12
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi]
push ebx
xor ebx, ebx
cmp dword [eax + 4], 2
push edi
sete bl
test ebx, ebx
je 0x454a36
push dword [eax + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [esi + 0xc]
jmp 0x454a67
cmp dword [esi + 8], 0
jne 0x454a57
push 0x464504
push dword [eax + 8]
call fcn.00455eac
test eax, eax
pop ecx
pop ecx
mov dword [esi + 8], eax
jne 0x454a57
or eax, 0xffffffff
jmp 0x454a8d
push dword [esi + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.004556d3
mov edi, eax
add esp, 0x10
test edi, edi
je 0x454a75
cmp edi, dword [ebp + 0xc]
jbe 0x454a8b
test ebx, ebx
jne 0x454a85
push dword [esi + 8]
call fcn.0043b599
and dword [esi + 8], ebx
pop ecx
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop ebx
pop ebp
ret
Function at 0x455437
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x455474
cmp dword [ebp + 0x14], edi
je 0x455474
cmp ecx, edi
jne 0x45547b
call fcn.00428a4c
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004259d1
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x45548f
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4554b0
cmp ebx, 0xffffffff
je 0x45549f
push ebx
push edi
push ecx
call fcn.00428080
add esp, 0xc
cmp esi, edi
je 0x45545c
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x45545c
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4554cc
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4554d3
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4555c4
test word [esi + 0xc], 0x10c
je 0x455527
mov eax, dword [esi + 4]
test eax, eax
je 0x455527
jl 0x455625
cmp ebx, eax
mov edi, ebx
jb 0x4554f8
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4555cc
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00425a05
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4555bc
cmp ebx, dword [ebp - 0xc]
jb 0x455594
cmp dword [ebp - 0xc], 0
je 0x455551
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x455546
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x45554d
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x45555c
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x45555c
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4555f8
push eax
push dword [ebp - 8]
push esi
call fcn.00436130
pop ecx
push eax
call fcn.0043bcb7
add esp, 0xc
test eax, eax
je 0x455637
cmp eax, 0xffffffff
je 0x455625
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4555bc
push esi
call fcn.0043a3f4
cmp eax, 0xffffffff
pop ecx
je 0x455629
cmp dword [ebp - 4], 0
je 0x4555f8
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4554db
mov eax, dword [ebp + 0x14]
jmp 0x455476
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4555e3
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00428080
add esp, 0xc
call fcn.00428a4c
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x45546c
cmp dword [ebp + 0xc], 0xffffffff
je 0x45560e
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00428080
add esp, 0xc
call fcn.00428a4c
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x45546c
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x455476
or dword [esi + 0xc], 0x10
jmp 0x455629
Function at 0x401000
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60c
mov eax, dword [0x451024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x4454e0
call fcn.004019e5
pop ecx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [edi + 0x2210]
mov dword [edi + 0x220c], eax
push 0x451a18
push ecx
call fcn.0040e335
push 0x445390
call fcn.00401ca4
add esp, 0xc
test eax, eax
jne 0x401070
push dword [0x451e18]
push dword [0x454744]
push str._s__s
push edi
call fcn.004028c7
add esp, 0x10
jmp 0x4010e9
push str._SystemRoot__
call fcn.0040eca2
xor ecx, ecx
inc eax
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00402f24
mov esi, eax
push str._SystemRoot__
push esi
call fcn.0040e335
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x60c]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [0x454744]
call fcn.0040ff9c
push dword [0x451e18]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x40c]
push eax
push esi
push str._s_s_s__s
push edi
call fcn.004028c7
push esi
call fcn.00402f2d
add esp, 0x40
push str.realtime
call fcn.00401ca4
pop ecx
test eax, eax
je 0x401104
mov dword [edi + 0x2208], 0x100
jmp 0x40113a
push str.high
call fcn.00401ca4
pop ecx
test eax, eax
je 0x40111f
mov dword [edi + 0x2208], 0x80
jmp 0x40113a
push str.idle
call fcn.00401ca4
neg eax
pop ecx
sbb eax, eax
and eax, 0x20
add eax, 0x20
mov dword [edi + 0x2208], eax
push str.nowait
call fcn.00401ca4
mov dword [edi + 0x2418], eax
pop ecx
test ebx, ebx
je 0x40115e
lea eax, [edi + 0x2000]
push ebx
push eax
call fcn.0040e335
pop ecx
pop ecx
push edi
push dword [0x451e1c]
mov esi, 0x451e20
push str._s_:__s
push esi
call fcn.004028c7
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.00403244
leave
ret

Function at 0x4014b2
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x451024]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x445390
call fcn.00401ca4
pop ecx
test eax, eax
jne 0x4014d7
inc eax
jmp 0x401538
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [0x454744]
call fcn.0040ff9c
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x40c]
push eax
push dword [0x451e1c]
lea eax, [ebp - 0x614]
push 0x445394
push eax
call fcn.004028c7
add esp, 0x28
lea eax, [ebp - 0x614]
push 0
push eax
push dword [0x454744]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403244
leave
ret
Function at 0x401544
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x451024]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RemComSVC
mov esi, eax
push 0x65
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x401604
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push str.DspRemComSvc.exe
push dword [0x451e1c]
mov edi, eax
lea eax, [ebp - 0x20c]
push str._sADMIN__s
push eax
call fcn.004028c7
add esp, 0x10
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401604
push 0
lea eax, [ebp - 0x210]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x210], edi
sete al
jmp 0x401606
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403244
leave
ret
Function at 0x40164c
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x451024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
push eax
push ecx
lea eax, [ebp - 0x20c]
push 0x4452d0
push eax
call fcn.004028c7
add esp, 0x10
xor ebx, ebx
xor esi, esi
inc ebx
push esi
cmp dword [ebp + 0x10], esi
je 0x401781
push dword [0x45473c]
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x228], esi
push dword [0x454738]
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x22c]
push eax
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x210], esi
call sub.MPR.dll_WNetAddConnection2W
mov edi, eax
sub eax, 5
je 0x4016df
sub eax, 0x51
je 0x4016df
sub eax, 0x46d
je 0x4016df
sub eax, 0x6b
jne 0x401790
cmp dword [0x45473c], esi
je 0x401759
cmp dword [0x454738], esi
jne 0x401759
push str.Invalid_password_n_n
mov edi, 0x44526c
push edi
push ebx
call fcn.0041022b
pop ecx
push eax
call fcn.0040296f
push ebx
call fcn.0041022b
push eax
call fcn.004220f2
push ebx
call fcn.00402080
add esp, 0x18
push str.Connecting_to_remote_service_...
push edi
push ebx
call fcn.0041022b
pop ecx
push eax
call fcn.0040296f
push ebx
call fcn.0041022b
push eax
call fcn.004220f2
add esp, 0x14
lea eax, [ebp - 0x22c]
push esi
push dword [0x45473c]
push dword [0x454738]
push eax
call sub.MPR.dll_WNetAddConnection2W
jmp 0x40178e
push str.Admin__connection_failed____d_n_n
push 0x44526c
push ebx
call fcn.0041022b
pop ecx
push eax
call fcn.0040296f
push ebx
call fcn.0041022b
push eax
call fcn.004220f2
add esp, 0x14
jmp 0x401790
push esi
lea ecx, [ebp - 0x20c]
push ecx
call sub.MPR.dll_WNetCancelConnection2W
mov edi, eax
test edi, edi
jne 0x401798
mov eax, ebx
jmp 0x4017a1
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403244
leave
ret
Function at 0x4017b0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x242c
call fcn.00403260
mov eax, dword [0x451024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x241c
lea eax, [ebp - 0x2420]
xor edi, edi
push esi
push edi
push eax
mov dword [ebp - 0x2424], edi
call fcn.00404260
push 8
lea eax, [ebp - 0x242c]
push edi
push eax
call fcn.00404260
lea eax, [ebp - 0x2420]
push eax
call section..text
add esp, 0x1c
lea eax, [ebp - 0x2424]
push edi
push eax
push esi
lea eax, [ebp - 0x2420]
push eax
push dword [0x45100c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x3e8
push 5
call fcn.00401191
pop ecx
pop ecx
test eax, eax
je 0x401877
push str.Ok_n_n
push 0x44526c
push 1
call fcn.0041022b
pop ecx
push eax
call fcn.0040296f
push 1
call fcn.0041022b
push eax
call fcn.004220f2
add esp, 0x14
lea eax, [ebp - 0x2424]
push edi
push eax
push 8
lea eax, [ebp - 0x242c]
push eax
push dword [0x45100c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x40189f
push str.Failed_n_n
push 0x44526c
push 1
call fcn.0041022b
pop ecx
push eax
call fcn.0040296f
push 1
call fcn.0041022b
push eax
call fcn.004220f2
add esp, 0x14
mov eax, dword [ebp - 0x242c]
pop edi
pop esi
test eax, eax
jne 0x4018be
push dword [ebp - 0x2428]
push dword [ebp - 0x2428]
push str._nRemote_command_returned__d_0x_X__n
jmp 0x4018c5
push eax
push eax
push str._nRemote_command_failed_to_start._Returned_error_code_is__d_0x_X__n
call fcn.00402e0f
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
add esp, 0xc
inc eax
call fcn.00403244
leave
ret

Function at 0x401b9c
Capabilities:
Create service
Start service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push 0xf003f
xor edi, edi
push edi
push dword [0x451e1c]
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x401ca0
push esi
push 0xf01ff
push 0x445438
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push str.DspRemComSvc.exe
mov dword [ebp - 8], eax
call fcn.0040eca2
mov esi, eax
mov dword [esp], 0x445470
call fcn.0040eca2
add esi, eax
mov dword [esp], str._SystemRoot__
call fcn.0040eca2
inc esi
xor ecx, ecx
push 2
add eax, esi
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00402f24
mov esi, eax
push str._SystemRoot__
push esi
mov dword [ebp - 4], esi
call fcn.0040e335
push 0x445470
push esi
call fcn.0040e2c4
push str.DspRemComSvc.exe
push esi
call fcn.0040e2c4
mov esi, dword [ebp - 8]
add esp, 0x20
test esi, esi
jne 0x401c78
push edi
push edi
push edi
push edi
push edi
push dword [ebp - 4]
push 1
push 3
push 0x10
push 0xf01ff
push 0x445474
push 0x445438
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
jne 0x401c78
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x401c9f
push dword [ebp - 4]
call fcn.00402f2d
pop ecx
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x401c91
xor edi, edi
inc edi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov eax, edi
pop esi
pop edi
pop ebx
leave
ret
Function at 0x401f6c
Capabilities:
Create thread

Disassembly:
push esi
xor esi, esi
push esi
push esi
push 0x401db7
call fcn.00422404
push esi
push esi
push 0x401d14
call fcn.00422404
push esi
push esi
push 0x401eca
call fcn.00422404
add esp, 0x24
pop esi
ret
Function at 0x42e080
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042df54

Function at 0x4309b3
Capabilities:
Set environment variable

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

Function at 0x435b60
Capabilities:
Read file on windows

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

Function at 0x435b6b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004358e2

Function at 0x401398
Capabilities:
Encode data using xor

Disassembly:
push 0x4d4734
call sub.MSVBVM60.DLL_ThunRTMain
add byte [eax], al
add byte [eax], al
add byte [eax], al
xor byte [eax], al
add byte [eax], al
cmp byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
mov dword [0x264ebeff], eax
jle entry0
dec ebx
movsd dword es:[edi], dword [esi]
lodsb al, byte [esi]
std
or eax, dword [edx + 0x7e]
or ecx, dword [esi]
add byte [eax], al
add dword [eax], eax
add byte [eax], al
dec edx
add byte [esi], al
push eax
add dword [ecx], 0xffffffb9
movsb byte es:[edi], byte [esi]
mov bl, 0xcc
xor dword [eax], eax
inc esp
add dword [eax], eax
add byte [eax], al
add bh, bh
int3
Function at 0x401020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401039
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401074
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401070
lea ebx, [ebx]
cmp esi, eax
jae 0x401074
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401060
cmp esi, eax
jb 0x40107a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x405d90
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [esp + 4]
push eax
add ecx, 0x90
call fcn.0040b230
mov dword [esp + 4], str.CClickSlider_n
jmp dword [sym.imp.KERNEL32.dll_OutputDebugStringA]

Function at 0x406e70
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [esp + 0x30]
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 0
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
lea ecx, [esp + 0x14]
push ecx
push edi
push eax
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0xc]
push edx
push 1
push ebx
mov dword [esp + 0x18], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push 0x45a2a4
push 0
push edi
push ecx
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov esi, dword [esp + 0x40]
mov ecx, esi
call fcn.0041b535
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, esi
call fcn.0041b4dd
mov eax, dword [esi + 4]
lea edx, [esp + 0x1c]
push edx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
pop edi
mov dword [eax], ecx
mov dword [eax + 4], edx
pop esi
pop ebx
add esp, 0x28
ret
Function at 0x4071d0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x44e0d8
mov eax, dword fs:[0]
push eax
sub esp, 0x808
mov eax, dword [0x466910]
xor eax, esp
mov dword [esp + 0x804], eax
push esi
mov eax, dword [0x466910]
xor eax, esp
push eax
lea eax, [esp + 0x810]
mov dword fs:[0], eax
mov esi, dword [esp + 0x820]
mov dword [esp + 8], 0
mov ecx, dword [ecx]
mov edx, dword [esp + 0x828]
push ecx
mov ecx, dword [esp + 0x830]
push 0x800
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x830]
push ecx
push edx
push eax
mov dword [esp + 0x830], 2
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.00401dc0
mov eax, dword [esp + 0x824]
add eax, 0xfffffff0
mov byte [esp + 0x818], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407284
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x828]
add eax, 0xfffffff0
mov byte [esp + 0x818], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4072af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x82c]
add eax, 0xfffffff0
mov dword [esp + 0x818], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4072dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x810]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.00438a4b
add esp, 0x814
ret 0x10

Function at 0x40b230
Capabilities:
Print debug messages

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
mov esi, ecx
mov ebp, dword [esi + 0x98]
push edi
cmp ebx, ebp
jb 0x40b24c
cmp ebx, dword [esi + 0x9c]
jbe 0x40b24e
mov ebx, ebp
mov edx, dword [esi + 0x64]
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x9c]
push 1
push edx
push eax
lea edi, [esi + 0x7c]
mov dword [esi + 0xa4], ebx
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
sub eax, edx
mov edx, ecx
sub edx, ebx
imul eax, edx
sub ecx, ebp
xor edx, edx
div ecx
mov ecx, esi
add eax, dword [esi + 0x80]
push eax
mov eax, dword [edi]
push eax
call fcn.00422e18
mov ecx, dword [esi + 0x20]
push 1
push edi
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
pop ebp
pop ebx
mov dword [esp + 4], 0x453fb8
jmp dword [sym.imp.KERNEL32.dll_OutputDebugStringA]