joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40107e
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax]
push esi
push edi
mov edi, dword [eax + 4]
mov eax, dword [0x42f6c8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x42f6cc]
xor esi, esi
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
call fcn.00401077
mov eax, dword [0x42f6d0]
add dword [ebp - 0xc], 0x23f
mov dword [ebp - 0x20], eax
mov eax, dword [0x42f6d4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0x20
jmp 0x4010ce
xor esi, esi
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, ebx
shl eax, 4
cmp dword [0x43e914], 0xc
mov dword [ebp - 4], eax
jne 0x4010f8
push esi
lea eax, [ebp - 0x30]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [0x43e914]
cmp eax, 0xfa9
jne 0x401114
mov dword [0x43e910], 0xedeb2e40
cmp eax, 0x3eb
jne 0x401133
push str.fahubizavojijalaho
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov dword [0x43e868], esi
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov edx, ebx
add eax, ebx
shr edx, cl
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov dword [0x43e90c], 0xf4ea3dee
add edx, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor eax, edx
sub edi, eax
mov eax, edi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov esi, edi
shr esi, cl
add eax, edi
mov dword [ebp - 0x18], eax
add esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
cmp dword [0x43e914], 0xb03
jne 0x4011ac
push str.juyuzuwedikicezosofuxodesir
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
xor dword [ebp - 4], esi
sub ebx, dword [ebp - 4]
add dword [ebp - 0xc], 0x61c88647
dec dword [ebp - 0x1c]
jne 0x4010cc
mov eax, dword [ebp + 8]
mov dword [eax + 4], edi
pop edi
pop esi
mov dword [eax], ebx
pop ebx
leave
ret 4
Function at 0x4073d0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e83c]
jne 0x4073da
repz ret
jmp fcn.0040b7df

Function at 0x40b1cd
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405d67
and dword [ebp - 4], 0
cmp dword [0x433904], 0
mov ebx, eax
jne 0x40b27e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b32f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40b32f
push eax
call fcn.00405cf5
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x433904], eax
call esi
push eax
call fcn.00405cf5
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x433908], eax
call esi
push eax
call fcn.00405cf5
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43390c], eax
call esi
push eax
call fcn.00405cf5
pop ecx
mov dword [0x433914], eax
test eax, eax
je 0x40b27e
push 0x42af28
push edi
call esi
push eax
call fcn.00405cf5
pop ecx
mov dword [0x433910], eax
mov eax, dword [0x433910]
cmp eax, ebx
je 0x40b2d6
cmp dword [0x433914], ebx
je 0x40b2d6
push eax
call fcn.00405d70
push dword [0x433914]
mov esi, eax
call fcn.00405d70
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b2d6
test edi, edi
je 0x40b2d6
call esi
test eax, eax
je 0x40b2cd
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b2cd
test byte [ebp - 0xc], 1
jne 0x40b2d6
or dword [ebp + 0x10], 0x200000
jmp 0x40b30f
mov eax, dword [0x433908]
cmp eax, ebx
je 0x40b30f
push eax
call fcn.00405d70
pop ecx
test eax, eax
je 0x40b30f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b30f
mov eax, dword [0x43390c]
cmp eax, ebx
je 0x40b30f
push eax
call fcn.00405d70
pop ecx
test eax, eax
je 0x40b30f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x433904]
call fcn.00405d70
pop ecx
test eax, eax
je 0x40b32f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b331
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10002070
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1000f380], eax
je 0x1000208e
mov eax, 0x10dd
jmp 0x1000216f
mov eax, dword [0x1000f390]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000210c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x100020ea
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x100020ea
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10001710
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.10009dfc
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x10002096
mov dword [0x1000f390], 0
call fcn.10001a30
mov ecx, dword [0x1000f38c]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10002159
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.10009dfc
add esp, 4
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x10002124
mov dword [0x1000f38c], 0
mov dword [0x1000f380], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10002660
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1000f384], 0
je 0x10002679
mov eax, dword [0x1000f384]
jmp 0x10002719
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x1000268b
xor eax, eax
jmp 0x10002719
push 8
call fcn.1000971e
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100026e1
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x100026ca
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.10009dfc
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x1000f384], eax
mov dword [0x1000f388], 0
mov eax, dword [ebp - 8]
jmp 0x10002719
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x100026fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x100026ab
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x1000f38c]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x1000f38c], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x10004560
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x1000f040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
push edi
mov dword [0x1000f844], 0
xor esi, esi
lea eax, [esi + 1]
push eax
mov esi, eax
lea eax, [ebp - 0x38]
push str.ACCOUNT_i
push eax
call fcn.10003020
imul eax, dword [0x1000f844], 0xb
add esp, 0xc
push str..logins.ini
push 0xc
add eax, 0x1000f6f8
push eax
push 0x1000c41d
push 0x1000c4b8
lea eax, [ebp - 0x38]
push eax
call ebx
imul eax, dword [0x1000f844], 0xb
push str..logins.ini
push 0xc
add eax, 0x1000f848
push eax
push 0x1000c41d
push 0x1000c4c0
lea eax, [ebp - 0x38]
push eax
call ebx
mov edx, dword [0x1000f844]
imul eax, edx, 0xb
add eax, 0x1000f6f8
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100045f5
sub eax, edi
cmp eax, 1
jb 0x10004613
inc edx
mov dword [0x1000f844], edx
cmp esi, 0x1e
jl 0x10004585
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10009710
mov esp, ebp
pop ebp
ret
Function at 0x100054f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1000f040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10005520
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10009710
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1000555c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1000555c
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10009710
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x10005633
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10005584
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10005590
movsx eax, bl
jmp 0x100055c8
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x100055f2
sub eax, 1
je 0x100055f2
sub eax, 2
jne 0x10005633
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10009710
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10005610
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x10005633
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10009710
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10009710
mov esp, ebp
pop ebp
ret 4
Function at 0x10005b40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1000f040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x10005bfc
cmp byte [esi + 0x3d], 0
je 0x10005bfc
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10005bea
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x10005bb1
sub eax, 1
je 0x10005bb5
sub eax, 2
jne 0x10005bea
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10009710
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10005bd3
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x10005bea
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10009710
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10009710
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.10009710
mov esp, ebp
pop ebp
ret

Function at 0x100065f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x10006626
push str.Main.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x10006626
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
push 0
push 0
push 0x100062a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc

Function at 0x10006630
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1000f040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push 0x40
push 5
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov al, byte [ebp + 8]
cmp al, 0xff
je 0x1000665c
mov byte [esi], al
mov eax, dword [ebp + 0x10]
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 5
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10009710
mov esp, ebp
pop ebp
ret
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x4058bd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x4058cc
pop dword [ebp - 0x28]
mov eax, 0x4058cc
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x17bd4380
sub dword [ebp - 0x38], 0xc96afe35
mov dword [ebp - 0x34], 0xd62c4520
sub dword [ebp - 0x34], 0xa3f8f8db
mov dword [ebp - 0x30], 0xe38c6be3
add dword [ebp - 0x30], 0x68bfd84b
mov dword [ebp - 0x2c], 0xf257c2d0
sub dword [ebp - 0x2c], 0xf257c2d0
lea eax, [ebp - 0x38]
push eax
mov eax, 0xdd7927df
add eax, 0x22c7a875
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0xcf3ae613
add dword [ebp - 0x38], 0xa5378343
mov dword [ebp - 0x34], 0xd469d1a8
sub dword [ebp - 0x34], 0x92fd7033
mov dword [ebp - 0x30], 0x45337fbf
sub dword [ebp - 0x30], 0xe1c41353
mov dword [ebp - 0x2c], 0x70846f3e
add dword [ebp - 0x2c], 0x8f7b90c2
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x36638
push 0
call eax
mov ecx, 0x11d0661d
sub ecx, 0x11d02abf
xor edx, edx
add edx, eax
mov ebx, 0xc5108b00
add ebx, 0x3b312500
add ebx, dword [ebp - 0x28]
mov edi, 0xf3ef6b4a
sub edi, 0x3a93bf38
add dword [ebp - 0x10], 0xc7f36aa0
mov esi, dword [ebx]
add dword [ebp - 0x20], esi
xor esi, edi
sub dword [ebp - 4], 0x1823f8fa
mov dword [edx], esi
sub dword [ebp - 0x1c], edi
add edx, 0xcffb908c
sub edx, 0xcffb9088
add ebx, 4
loop 0x4059e6
add eax, 0xe04b
xor ebx, ebx
add ebx, eax
add eax, 0x43e64195
sub eax, 0x43e64190
mov ecx, 0x1ac7497f
add ecx, 0xe578b681
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x10600b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1060200
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x10600d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10600c2
add dl, dl
jne 0x10600e1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1060134
xor eax, eax
add dl, dl
jne 0x10600ee
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10601d5
add dl, dl
jne 0x10600fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1060108
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1060113
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106011e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x106012a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10600cd
mov eax, 1
add dl, dl
jne 0x1060142
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106014d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1060139
sub eax, ebx
mov ebx, 1
jne 0x1060180
mov ecx, 1
add dl, dl
jne 0x1060166
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1060171
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x106015d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10600cd
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1060197
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10601a2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x106018e
cmp eax, 0x7d00
jae 0x10601c5
cmp eax, 0x500
jb 0x10601c0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10600cd
cmp eax, 0x7f
ja 0x10601c8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10600cd
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x10601f6
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10600cd
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401040
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push str.user32.dll
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x402140
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 6
push 0x403380
push eax
mov dword [0x40337c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x40109b
push str.____ReadProcessMemory_Failed
call fcn.00401010
add esp, 4
movzx eax, byte [0x403384]
push eax
movzx eax, byte [0x403383]
push eax
movzx eax, byte [0x403382]
push eax
movzx eax, byte [0x403381]
push eax
movzx eax, byte [0x403380]
push eax
push str._x_x_x_x_x_n
call fcn.00401010
mov eax, 0x401170
sub eax, dword [0x40337c]
sub eax, 5
push eax
push str.JmpAddress_:__x_n
mov dword [0x403019], eax
call fcn.00401010
add esp, 0x20
lea eax, [ebp - 8]
push eax
push 0x40
push 6
push dword [0x40337c]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0
push 5
push 0x403018
push dword [0x40337c]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x40112f
push str.____WriteProcessMemory_Failed
call fcn.00401010
add esp, 4
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 6
push dword [0x40337c]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0
push str.Title
push str.Hello_World
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004011e2
mov esp, ebp
pop ebp
ret

Function at 0x4019e7
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401a26
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401a26
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401a26
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401a26
cmp dword [ecx + 0x74], 0xe
jbe 0x401a26
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401870
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov eax, dword [ebx + 0x14]
push edi
mov edi, ecx
mov esi, dword [edi + 0xbc]
mov ecx, dword [edi + 0x1c]
add esi, edi
mov dword [esi + 8], eax
mov eax, dword [ebx + 0x18]
mov dword [esi + 0xc], eax
mov eax, pe_nt_image_headers32
mov dword [esi + 0x10], 1
test word [edi + 0x94], ax
jne 0x4018ae
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov eax, dword [edi + 0x78]
test al, 4
je 0x4018c2
test byte [ecx + 0x3a], 1
je 0x4018e2
and eax, 0xfffffffb
mov dword [edi + 0x78], eax
or dword [esi + 0x10], 0x200
test byte [ecx + 0x3a], 2
je 0x4018e2
mov eax, dword [ecx + 0x46]
or dword [esi + 0x10], 0x400
mov dword [esi + 0x14], eax
test dword [edi + 0x78], 0x400
je 0x4018f2
or dword [esi + 0x10], 0x4000
test byte [ecx + 0x3a], 4
je 0x4018ff
or dword [esi + 0x10], 0x100
test byte [ebx + 6], 2
mov edx, 1
je 0x401927
or dword [esi + 0x10], 0x80
mov word [esi + 0x20], dx
cmp word [edi + 0x18], 3
jne 0x40192c
mov eax, 0x2000
or word [edi + 0x7c], ax
jmp 0x40192c
or word [esi + 0x20], 0x20
mov eax, dword [ecx + 0x3c]
mov dword [esi + 0x18], eax
cmp word [esi + 0x18], 0xd
mov eax, dword [ecx + 0x40]
mov dword [esi + 0x1c], eax
jne 0x401993
movsx edx, word [ecx]
mov ecx, dword [0x4a8b6c]
cmp edx, dword [ecx + 0x194]
jge 0x401989
mov eax, dword [ecx + 0x198]
movzx eax, word [eax + edx*2]
mov dword [ecx + 0x1a0], eax
mov eax, dword [0x4a8b6c]
mov ecx, dword [eax + 0x1a0]
mov eax, dword [eax + 0x19c]
mov edx, dword [eax + ecx*4]
test edx, edx
je 0x401989
mov ecx, dword [edx + 0x24]
test ecx, ecx
je 0x401989
mov edx, dword [edx + 0xc]
call fcn.00433950
jmp 0x40198b
xor eax, eax
mov dword [esi + 0x1c], eax
mov edx, 1
cmp dword [edi + 0xcc], 0
jne 0x4019a5
or word [esi + 0x20], 2
or dword [esi + 0x10], 8
mov cx, word [esi + 0x10]
pop edi
mov word [esi + 0x22], cx
pop esi
mov eax, edx
pop ebx
pop ebp
ret