joyce8/EMBER2024-capa huggingface dataset:
Function at 0x61be80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x61be89
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0040a22c
xor eax, eax
push ebp
push 0x61c0ca
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x61c0a2
cmp dword [0x62e960], 0
je 0x61bee6
mov eax, dword [0x62e960]
push eax
call sub.bass.dll_BASS_ChannelStop
mov eax, dword [0x62e960]
push eax
call sub.bass.dll_BASS_StreamFree
xor eax, eax
mov dword [0x62e960], eax
lea ecx, [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0061bacc
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.0040a570
cmp dword [ebp - 4], 0
jne 0x61bf39
test bl, bl
je 0x61c0a2
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
mov eax, dword [0x62f1e0]
mov eax, dword [eax]
mov edx, 0x61c0e8
call fcn.005e9d30
mov eax, dword [ebp - 0xc]
call fcn.005e7ca4
jmp 0x61c0a2
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00422590
test al, al
jne 0x61bf5c
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00422628
test al, al
je 0x61bf5c
push ebp
call fcn.0061bbfc
pop ecx
cmp byte [ebp + 0xc], 0
je 0x61bf8b
mov eax, dword [ebp - 4]
call fcn.005e7e1c
test al, al
jne 0x61bf8b
push 5
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040ad9c
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteW
jmp 0x61c0a2
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00422590
test al, al
jne 0x61bfce
test bl, bl
je 0x61c0a2
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
mov eax, dword [0x62f1e0]
mov eax, dword [eax]
mov edx, 0x61c0e8
call fcn.005e9d30
mov eax, dword [ebp - 0x14]
call fcn.005e7ca4
jmp 0x61c0a2
push 0x80000000
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040ad9c
push eax
push 0
call sub.bass.dll_BASS_StreamCreateFile
mov dword [0x62e960], eax
cmp dword [0x62e960], 0
jne 0x61c035
test bl, bl
je 0x61c0a2
push 0x61c120
call sub.bass.dll_BASS_ErrorGetCode
lea edx, [ebp - 0x1c]
call fcn.00421e20
push dword [ebp - 0x1c]
push 0x61c198
push dword [ebp - 4]
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.0040b090
mov eax, dword [ebp - 0x18]
call fcn.005e7ca4
jmp 0x61c0a2
push 0xffffffffffffffff
mov eax, dword [0x62e960]
push eax
call sub.bass.dll_BASS_ChannelPlay
test eax, eax
jne 0x61c07e
test bl, bl
je 0x61c0a2
push 0x61c1b8
call sub.bass.dll_BASS_ErrorGetCode
lea edx, [ebp - 0x24]
call fcn.00421e20
push dword [ebp - 0x24]
push 0x61c198
push dword [ebp - 4]
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.0040b090
mov eax, dword [ebp - 0x20]
call fcn.005e7ca4
jmp 0x61c0a2
mov dword [esi + 0x514], edi
mov eax, dword [0x62f130]
mov eax, dword [eax]
mov edx, 1
call fcn.006175f8
mov dl, 1
mov eax, dword [esi + 0x480]
call fcn.0053a530
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x61c0d1
lea eax, [ebp - 0x24]
mov edx, 5
call fcn.0040a1a8
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040a1a8
ret
Function at 0x94d6f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1bc000]
push edi
or ebp, 0xffffffff
jmp 0x94d712
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x94d719
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x94d708
mov eax, 1
add ebx, ebx
jne 0x94d72b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x94d73c
jne 0x94d75b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x94d75b
dec eax
add ebx, ebx
jne 0x94d748
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x94d720
add ebx, ebx
jne 0x94d757
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x94d7ad
xor ecx, ecx
sub eax, 3
jb 0x94d773
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x94d7e2
sar eax, 1
mov ebp, eax
jmp 0x94d77e
add ebx, ebx
jne 0x94d77e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x94d74c
inc ecx
add ebx, ebx
jne 0x94d78c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x94d74c
add ebx, ebx
jne 0x94d799
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x94d78e
jne 0x94d7aa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x94d78e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x94d7cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x94d7be
jmp 0x94d70e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x94d7cc
add edi, ecx
jmp 0x94d70e
pop esi
mov edi, esi
mov ecx, 0x4ed6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x94d7ea
cmp byte [edi], 0x1e
jne 0x94d7ea
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 al, bl
loop 0x94d7ef
lea edi, [esi + 0x54a000]
mov eax, dword [edi]
or eax, eax
je 0x94d867
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5a8684]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5a87ec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x94d81c
mov ecx, edi
jns 0x94d84b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5a87f4]
or eax, eax
je 0x94d861
mov dword [ebx], eax
add ebx, 4
jmp 0x94d839
call dword [esi + 0x5a87f0]
mov ebp, dword [esi + 0x5a87f8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x247]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x94d89b
sub esp, 0xffffff80
jmp 0x4b06ab

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402b5c
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402b99
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402bb9
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404984
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402d98
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402df1
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402c34
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402c34
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402ddb
inc ebx
jmp 0x402dc4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402df8
lea eax, [ebp - 8]
call fcn.00404714
ret

Function at 0x402e00
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404714
test esi, esi
jne 0x402e37
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404804
jmp 0x402e58
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402c34
mov dword [esp], eax
test esi, esi
je 0x402e58
cmp dword [ebx], 0
je 0x402e58
dec esi
jmp 0x402e3f
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x40392c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x416020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4039c4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4039a4
xor eax, eax
push ebp
push 0x40399d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4039e0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4039a4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x416020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x416020], ax
mov esp, ebp
pop ebp
ret
Function at 0x404590
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x417044], 0
je 0x4045f1
cmp word [0x417218], 0xd7b2
jne 0x4045b9
cmp dword [0x417220], 0
jbe 0x4045b9
mov eax, 0x417214
call dword [0x417230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x41606c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404618
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41602c], 0
jne 0x40460d
push 0
push 0x416064
push 0x41606c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4061ec
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x406252
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404984
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403334
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40623c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406259
lea eax, [ebp - 0x10]
call fcn.00404714
ret

Function at 0x40a714
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a74d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404804
jmp 0x40a756
mov eax, ebx
mov edx, esi
call fcn.00404768
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a760
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a781
mov al, byte [esp]
jmp 0x40a783
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40ae18
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ac80
mov eax, dword [0x416504]
cmp byte [eax], 0
je 0x40ae94
mov eax, dword [0x416420]
call fcn.004031f8
call fcn.00402ae8
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00407f80
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40aedc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40aeca
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4163fc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x417660]
call fcn.00405694
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40bbdc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40bc40
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404984
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407a98
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bc47
lea eax, [ebp - 0xc]
call fcn.00404714
ret

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

Disassembly:
pushal
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x401000
Capabilities:
Copy file
Extract resource via kernel32 functions
Get common file path
Get file size
Move file
Read file on windows
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x337]
mov byte [ebp - 0x338], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x233]
mov byte [ebp - 0x234], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x12f]
mov byte [ebp - 0x130], bl
mov dword [ebp - 0x14], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, 0x401c73
mov edi, 0x401a5e
sub eax, edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x24], eax
mov eax, 0x401f55
sub eax, fcn.00401d39
mov byte [ebp - 0x1c], 0xa
mov dword [ebp - 0x20], eax
mov eax, 0x401a4d
sub eax, 0x40198b
mov byte [ebp - 0x1b], 0xa
mov dword [ebp - 0x28], eax
mov eax, 0x40193b
sub eax, int.00401690
mov byte [ebp - 0x1a], 0xa
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push str.RT_RCDATA
push 0x66
mov byte [ebp - 0x19], 0xa
mov byte [ebp - 0x18], 0xa
mov byte [ebp - 0x17], 0xa
mov byte [ebp - 0x16], 0xa
mov byte [ebp - 0x15], 0xa
mov dword [ebp - 8], ebx
call fcn.00401451
add esp, 0x10
cmp dword [ebp - 0x10], ebx
jne 0x4010d2
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
mov esi, 0x404314
push 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x1c]
push 8
push eax
push section..data
call fcn.00402260
add esp, 0xc
test eax, eax
je 0x4011a0
push 8
lea eax, [ebp - 0x130]
push section..data
push eax
call fcn.00401f6a
push dword [ebp - 0x24]
lea eax, [ebp - 0x130]
push edi
push eax
call fcn.00401fe2
push dword [ebp - 0x20]
lea eax, [ebp - 0x130]
push fcn.00401d39
push eax
call fcn.00401fe2
push dword [ebp - 0x28]
lea eax, [ebp - 0x130]
push 0x40198b
push eax
call fcn.00401fe2
push dword [ebp - 0x2c]
lea eax, [ebp - 0x130]
push int.00401690
push eax
call fcn.00401fe2
push dword [ebp - 0x10]
lea eax, [ebp - 0x130]
push dword [ebp - 0x14]
push eax
call fcn.00401fe2
add esp, 0x48
lea eax, [ebp - 0x130]
push 0x100
push ebx
push eax
call fcn.00402200
call int.00401690
push str.rwbinru_dyd
call fcn.00401944
push eax
push dword [ebp - 0x14]
call fcn.00401d39
add esp, 0x18
mov dword [ebp - 4], ebx
call fcn.0040149a
mov ecx, dword [ebp - 4]
inc dword [ebp - 4]
cmp dword [ebp - 4], 8
mov byte [ecx + section..data], al
jl 0x4011a3
lea eax, [ebp - 0x1c]
push 8
push eax
push section..data
call fcn.00402260
add esp, 0xc
test eax, eax
je 0x4011a0
push 8
lea eax, [ebp - 0x130]
push section..data
push eax
call fcn.00401f6a
push dword [ebp - 0x24]
lea eax, [ebp - 0x130]
push edi
push eax
call fcn.00401fe2
push dword [ebp - 0x20]
lea eax, [ebp - 0x130]
push fcn.00401d39
push eax
call fcn.00401fe2
push dword [ebp - 0x28]
lea eax, [ebp - 0x130]
push 0x40198b
push eax
jmp loc.00408000
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x401037
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path

Disassembly:
call 0x401037
push 0
call sub.kernel32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffbf4
push esi
push edi
push ebx
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x403030], eax
mov dword [ebp - 8], 0
push 0xa
push section..data
push 0
call sub.kernel32.dll_FindResourceA
or eax, eax
je 0x401089
mov dword [ebp - 4], eax
push dword [ebp - 4]
push 0
call sub.kernel32.dll_SizeofResource
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
push 0
call sub.kernel32.dll_LoadResource
or eax, eax
je 0x401089
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4010c1
push 4
push 0x1000
push dword [ebp - 0xc]
push 0
call sub.kernel32.dll_VirtualAlloc
mov edi, eax
push dword [ebp - 0xc]
push dword [ebp - 8]
push edi
call sub.kernel32.dll_RtlMoveMemory
mov dword [ebp - 8], edi
push 0xdeadbeef
push dword [ebp - 0xc]
push dword [ebp - 8]
call section..text
cmp dword [ebp - 8], 0
je 0x4010fb
lea eax, [ebp - 0x40c]
push eax
push 0x400
call sub.kernel32.dll_GetTempPathA
push str.dup2patcher.dll
lea eax, [ebp - 0x40c]
push eax
call sub.kernel32.dll_lstrcatA
push dword [ebp - 0xc]
push dword [ebp - 8]
lea eax, [ebp - 0x40c]
push eax
call fcn.00401184
lea eax, [ebp - 0x40c]
push eax
call sub.kernel32.dll_LoadLibraryA
or eax, eax
je 0x401130
mov ebx, eax
push str.load_patcher
push ebx
call sub.kernel32.dll_GetProcAddress
or eax, eax
je 0x40111e
call eax
push ebx
call sub.kernel32.dll_FreeLibrary
lea eax, [ebp - 0x40c]
push eax
call sub.kernel32.dll_DeleteFileA
pop ebx
pop edi
pop esi
leave
ret

Function at 0x401184
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x4011af
xor eax, eax
leave
ret 0xc
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
push dword [ebp - 4]
call sub.kernel32.dll_FlushFileBuffers
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 8]
leave
ret 0xc
Function at 0x403ee7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [esi], edi
je 0x403f16
cmp dword [esi + 4], edi
jbe 0x403f0f
mov eax, dword [esi]
mov eax, dword [eax + edi*8]
test eax, eax
je 0x403f09
push eax
call fcn.004301e8
inc edi
cmp edi, dword [esi + 4]
jb 0x403efa
push dword [esi]
call fcn.004324f6
push ebx
xor ebx, ebx
mov edi, 0xe0
cmp dword [esi + 8], ebx
je 0x403f48
cmp dword [esi + 0xc], ebx
jbe 0x403f40
mov dword [ebp + 8], ebx
mov eax, dword [esi + 8]
add eax, dword [ebp + 8]
push eax
call fcn.00403e14
add dword [ebp + 8], edi
inc ebx
cmp ebx, dword [esi + 0xc]
jb 0x403f2b
push dword [esi + 8]
call fcn.004324f6
xor ebx, ebx
cmp dword [esi + 0x10], ebx
je 0x403f74
cmp dword [esi + 0x14], ebx
jbe 0x403f6c
and dword [ebp + 8], ebx
mov eax, dword [esi + 0x10]
add eax, dword [ebp + 8]
push eax
call fcn.00403e14
add dword [ebp + 8], edi
inc ebx
cmp ebx, dword [esi + 0x14]
jb 0x403f57
push dword [esi + 0x10]
call fcn.004324f6
xor edi, edi
pop ebx
cmp dword [esi + 0x18], edi
je 0x403f9f
cmp dword [esi + 0x1c], edi
jbe 0x403f97
mov eax, dword [esi + 0x18]
mov eax, dword [eax + edi*8]
test dword [edi + 0x65], eax
je 0x403fb9
push ebp
outsb dx, byte [esi]
imul ebp, dword [esi + 0x73], 0x6c6c6174
push edx
imul esi, dword gs:[bp + di + 0x74], 0x654b7972
imul esi, dword [bp + di + 0x74], 0x654b7972
jns 0x403fcf
jo 0x404016
xor dword [eax], eax
add byte [eax], al
add byte [eax], al
add dword [eax], eax
add byte [eax], al
add byte [eax], al
add byte [ecx], al
add byte [ecx + 0x40], al
add byte [eax], al
add byte [esi + 0x2e000011], dh
adc dword [eax], eax
add byte [esi], ch
adc al, 0
add byte [0x516aede9], bl
cmp edi, dword [eax]
pop esp
add dword [edi - 0x7e818284], 0x383b8177
dec esi
dec esi
dec esi
cmp dword [ebx], 0x4e4e4e38
dec esi
adc byte [ebx - 0x6c685f5e], 0xa4
xchg ebx, eax
dec esi
mov al, byte [0xa1979593]
mov byte [0x994ea7a0], al
xchg ebx, eax
cmpsd dword [esi], dword es:[edi]
push esi
mov eax, dword [0x9d944e57]
mov al, byte [0xa1a7a14e]
mov byte [0x975b9b93], al
pushfd
mov eax, dword [0x9a9a8fa2]
xchg ebx, eax
xchg edx, eax
dec esi
invalid
invalid

Function at 0x42f8ab
Capabilities:
Encode data using xor

Disassembly:
sbb byte [edi], bl
pop ds
retf
sti
sti
sti
sti
ja 0x42f72d
mov ecx, 0x2f2f2f9f
ja 0x42f72c
invalid
pop ebp
inc ebx
das
das
ja 0x42f76d
dec edi
invalid
sti
sti
sti
sti
sti
sti
ja 0x42f7b5
adc dword [ebx + 0x3f], 0xffffff84
ja 0x42f7b5
sbb ecx, dword [edi + 0x77]
mov edx, 0x74ba7b19
invalid
sti
sti
sti
sti
sti
sti
ja 0x42f7f5
mov ecx, 0x2f2f2f5f
sbb byte [ebp - 0x4d1d139], dh
sti
sti
sti
sti
sti
sti
sti
sti
sti
ja 0x42f80b
mov ecx, 0x2f2f2f67
sbb byte [edi], ch
retf 0x2e2e
int3
sub eax, 0xfbfbfb2e
sti
sti
sti
ja 0x42f82f
mov ecx, 0x2f2f2f8f
sbb byte [ebx], cl
leave
sti
sti
sti
sti
sti
sti
sti
sti
sti
sti
sti
sti
sti
sti
sti
sti
ja 0x42f849
mov ecx, 0x2f2f2f7f
ja 0x42f848
invalid
sti
sti
ja 0x42f869
mov ecx, 0x2f2f2f7f
ja 0x42f868
invalid
Function at 0x401028
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x53bfe1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov esi, ecx
push 0
mov dword [esp + 8], esi
call sub.MFC71.DLL_CWinApp::CWinApp
push 0x5d09d8
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0
mov dword [esi], 0x5d0918
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push 1
push 1
push eax
mov byte [esp + 0x38], 1
call fcn.004635a0
add esp, 0xc
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x401ef0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x53c1a9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
push edi
xor edi, edi
mov ecx, esi
mov dword [esp + 8], edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetManager]
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x24]
push edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::StringLength]
add esp, 4
push eax
push edi
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::Concatenate]
mov esi, dword [esp + 0x30]
add esp, 0x14
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call dword [0x5d01bc]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret