joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431b00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
push edi
lea edi, [esp + 8]
mov esi, ecx
call fcn.00401040
push 1
push 0x43d1a4
mov eax, edi
push eax
call fcn.00402520
test esi, esi
jne 0x431b27
xor eax, eax
jmp 0x431b3f
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x431b30
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x10]
push ecx
call fcn.00402520
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push eax
lea ecx, [esp + 0x18]
push ecx
push 0x43d1a8
push edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], 3
mov dword [esp + 0x24], 0x378
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov esi, eax
neg esi
sbb esi, esi
lea eax, [edi - 0x10]
inc esi
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x431ba2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
mov eax, esi
pop esi
add esp, 0xc
ret
Function at 0x4341e0
Capabilities:
Extract resource via kernel32 functions
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
cmp eax, ebx
jne 0x4342d1
lea eax, [esp + 0xc]
push eax
push 0xf003f
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsConnections
push SysReAllocStringLen
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4342ca
mov edi, dword [esp + 0xc]
push 0x43df90
push 0x107
push ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x43425a
cmp edi, ebx
je 0x4342ca
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x434285
test edi, edi
je 0x4342ca
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x4342a0
lea esi, [esp + 0x10]
call fcn.00401fc0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 3
push 0
push str.DefaultConnectionSettings
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea esi, [esp + 0x10]
call fcn.00401f90
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4342ca
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x4342ca
lea ecx, [esp + 0xc]
push ecx
push 0xf003f
push ebx
push str.SoftwareMicrosoftInternet_ExplorerPrivacy
push SysReAllocStringLen
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4342ca
mov esi, dword [esp + 0xc]
push 4
lea edx, [esp + 0x14]
push edx
push 4
push ebx
push str.ClearBrowsingHistoryOnExit
push esi
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, ebx
je 0x4342ca
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x434330
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x438
mov eax, dword [0x445030]
xor eax, esp
mov dword [esp + 0x434], eax
mov eax, dword [0x448804]
mov edx, dword [eax + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x444]
push esi
push edi
mov edi, ecx
mov ecx, 0x448804
call edx
mov esi, eax
add esi, 0x10
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], 0x428
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4343b4
add esi, 0xfffffff0
mov eax, esi
call fcn.00401980
add eax, 0x10
mov dword [ebp], eax
lea eax, [esi + 0xc]
or ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43442a
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
jmp 0x43442a
lea ecx, [esp + 0x18]
push ecx
push ebx
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x4343fa
mov eax, dword [esp + 0x2c]
cmp edi, eax
jb 0x4343d5
mov edx, dword [esp + 0x30]
add edx, eax
cmp edi, edx
jbe 0x4343e6
lea eax, [esp + 0x18]
push eax
push ebx
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x4343c3
jmp 0x4343fa
lea edx, [esp + 0x238]
lea edi, [esp + 0x14]
call fcn.004010e0
mov esi, dword [esp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 0xfffffff0
mov eax, esi
call fcn.00401980
add eax, 0x10
mov dword [ebp], eax
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43442a
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov ecx, dword [esp + 0x444]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.0041b3f1
add esp, 0x438
ret
Function at 0x434a20
Capabilities:
Get file version info

Disassembly:
sub esp, 0x7e8
mov eax, dword [0x445030]
xor eax, esp
mov dword [esp + 0x7e4], eax
mov eax, dword [0x448804]
mov edx, dword [eax + 0xc]
push ebx
mov ebx, ecx
push esi
mov ecx, 0x448804
mov dword [esp + 0xc], ebx
call edx
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [esp + 0x7f4]
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x434b75
push ebp
push esi
call fcn.0041b40b
mov ecx, dword [esp + 0x7fc]
add esp, 4
mov ebp, eax
push ebp
push esi
push 0
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x434b67
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x1c]
push eax
push str.VarFileInfoTranslation
push ebp
mov dword [esp + 0x1c], 4
call sub.VERSION.dll_VerQueryValueW
xor esi, esi
test dword [esp + 0xc], 0xfffffffc
jbe 0x434b67
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
xor ecx, ecx
push 0x7ce
push ecx
lea edx, [esp + 0x2e]
push edx
mov word [esp + 0x30], cx
call fcn.0041c990
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x80c]
movzx edx, word [eax + esi*4 + 2]
movzx eax, word [eax + esi*4]
push ecx
push edx
push eax
lea ecx, [esp + 0x3c]
push str.StringFileInfo_04x_04x_s
push ecx
call edi
add esp, 0x20
test eax, eax
jge 0x434b11
mov edx, dword [esp + 0x10]
inc esi
shr edx, 2
cmp esi, edx
jb 0x434ac2
jmp 0x434b66
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x2c]
push edx
push ebp
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 0x3e8
call sub.VERSION.dll_VerQueryValueW
mov edx, dword [esp + 0x18]
test edx, edx
jne 0x434b42
xor eax, eax
jmp 0x434b56
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x434b47
sub eax, esi
sar eax, 1
mov ebx, eax
mov eax, dword [esp + 0x14]
push edx
call fcn.004018e0
mov ebx, dword [esp + 0x14]
pop edi
test ebp, ebp
je 0x434b74
push ebp
call fcn.0041b3e6
add esp, 4
pop ebp
mov eax, dword [esp + 0x7f4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x434b98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x7f8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x434bbb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x7ec]
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0041b3f1
add esp, 0x7e8
ret
Function at 0x4354d0
Capabilities:
Enumerate threads
Terminate thread

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [eax - 8]
sub esp, 0x2c
push ebx
push ebp
push esi
mov esi, dword [eax - 0xc]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, esi
or ecx, edx
push edi
jge 0x4354fe
mov ecx, esi
lea eax, [esp + 0x44]
call fcn.00402160
mov eax, dword [esp + 0x44]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.0041bbee
xor ecx, ecx
add esp, 8
cmp esi, ecx
jl 0x4356b7
mov eax, dword [esp + 0x44]
cmp esi, dword [eax - 8]
jg 0x4356b7
mov dword [eax - 0xc], esi
mov eax, dword [esp + 0x44]
xor edx, edx
mov word [eax + esi*2], dx
xor eax, eax
push ecx
push 4
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x435589
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43557f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
lea ecx, [esp + 0x20]
push ecx
push ebp
mov dword [esp + 0x28], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x435684
mov edx, dword [esp + 0x40]
cmp dword [esp + 0x2c], edx
jne 0x435671
mov eax, dword [esp + 0x28]
push eax
push 0
push 0x1f03ff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x435671
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004340b0
add esp, 4
test eax, eax
je 0x43566a
lea edx, [esp + 0x18]
push edx
mov ecx, eax
call fcn.00434330
add esp, 4
mov edi, eax
call fcn.00401280
mov eax, dword [eax]
sub eax, 0x10
call fcn.00401980
mov esi, eax
mov eax, dword [esp + 0x18]
add esi, 0x10
add eax, 0xfffffff0
mov dword [esp + 0x1c], esi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43562c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x48]
call fcn.004014d0
add esp, 4
test al, al
je 0x43564e
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esp + 0x14], eax
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43566a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x20]
push ecx
push ebp
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x4355a4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4356ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
push 0x80070057
call fcn.004021d0
int3
Function at 0x436dc0
Capabilities:
Get graphical window text

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [edi + 4]
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
mov eax, dword [ebx]
mov edx, dword [eax - 8]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, esi
or ecx, edx
jge 0x436def
mov ecx, esi
mov eax, ebx
call fcn.00402160
mov eax, dword [ebx]
mov ecx, dword [edi + 4]
inc esi
push esi
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test eax, eax
je 0x436e15
push ecx
push eax
call fcn.0041b493
add esp, 8
test eax, eax
jl 0x436e36
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x436e36
mov dword [ecx - 0xc], eax
mov edx, dword [ebx]
xor ecx, ecx
mov word [edx + eax*2], cx
call fcn.00405800
call fcn.00405780
pop esi
xor eax, eax
pop ebx
ret
push 0x80070057
call fcn.004021d0
int3

Function at 0x4370f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [esi + 4]
sub esp, 0x18
push ebx
push edi
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x43710f
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00402cb0
xor edi, edi
cmp dword [esi + 0x40], edi
mov ebx, eax
mov dword [esp + 0xc], ebx
jle 0x4371c4
jmp 0x437130
mov eax, dword [esi + edi*4 + 0x30]
push 0x43d298
push eax
call dword [sym.imp.USER32.dll_GetPropW]
mov ebx, eax
test ebx, ebx
jl 0x4371b6
mov ecx, dword [esi + edi*4 + 0x30]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4371b6
mov eax, dword [esi + 4]
lea edx, [esp + 0x10]
push edx
push ebx
push 0x40a
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test edi, edi
jne 0x437197
mov ecx, dword [esi + 0x2c]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x437197
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x2c]
push 4
push 0x10
push 0x10
inc edx
push edx
mov edx, dword [esi + 0x30]
inc eax
push eax
push ecx
jmp 0x4371af
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + edi*4 + 0x30]
push 4
push 0x10
push 0x10
inc eax
push eax
inc ecx
push ecx
push 0
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
inc edi
cmp edi, dword [esi + 0x40]
jl 0x437130
mov ebx, dword [esp + 0xc]
mov eax, dword [esi + 0x2c]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x437237
mov edx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esp + 0x10]
push ecx
push 1
push 0x40a
push edx
call edi
mov eax, dword [esi + 0x2c]
push 0
push 0
push 0x408
push eax
call edi
test eax, eax
ja 0x437209
mov ecx, dword [esi + 0x2c]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
lea edx, [eax + 0x64]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x1c]
push 4
sub edx, ecx
sub edx, 4
push edx
push 0x64
add ecx, 2
push ecx
push eax
mov eax, dword [esi + 0x2c]
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x5d8b7d16
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
je 0x4330d2
nop
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x1e8f22c0
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x403043
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x417044]
sub esi, dword [0x40afb0]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x423eac], eax
jle 0x4031ad
push dword [0x41f054]
call fcn.004031f1
push ebx
push ebx
push dword [0x40afb0]
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41f050], esi
mov dword [0x417040], ebx
mov ebp, 0x40b040
mov eax, dword [0x417048]
mov edi, 0x4000
sub eax, dword [0x41f054]
cmp eax, edi
jg 0x4030b8
mov edi, eax
mov esi, 0x413040
push edi
push esi
call fcn.004031bf
test eax, eax
je 0x40319f
add dword [0x41f054], edi
mov dword [0x40afd0], esi
mov dword [0x40afd4], edi
cmp dword [0x423eb0], ebx
je 0x40310f
cmp dword [0x423f40], ebx
jne 0x40310f
mov eax, dword [0x41f050]
push ebx
sub eax, dword [0x417044]
sub eax, dword [esp + 0x1c]
add eax, dword [0x40afb0]
mov dword [0x417040], eax
call fcn.00402bd3
pop ecx
mov ecx, 0x40afb8
mov dword [0x40afd8], ebp
mov dword [0x40afdc], 0x8000
call fcn.00405f82
test eax, eax
jl 0x4031a8
mov esi, dword [0x40afd8]
sub esi, ebp
je 0x403169
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4031a4
cmp esi, dword [esp + 0x10]
jne 0x4031a4
add dword [0x40afb0], esi
cmp dword [0x40afd4], ebx
jne 0x4030de
jmp 0x403175
cmp dword [0x40afd4], ebx
jne 0x4031a8
cmp edi, ebx
je 0x4031a8
mov eax, dword [0x417044]
mov ecx, eax
sub ecx, dword [0x40afb0]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x4030a2
push ebx
push ebx
push eax
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4031ad
or eax, 0xffffffff
jmp 0x4031b7
push 0xfffffffffffffffe
jmp 0x4031aa
push 0xfffffffffffffffd
pop eax
jmp 0x4031b7
push 1
call fcn.00402bd3
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4

Function at 0x40364f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
clc
div ecx
test edx, edx
je 0x40365d
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.0040336f
and al, 0xda
and al, 0x67
lea eax, [ebp - 0x40]
push eax
call fcn.0040337f
push eax
push esi
push dword [ebp + 8]
call fcn.00403334
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.0040336f
dec ebx
stosb byte es:[edi], al
hlt
Function at 0x40581e
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40583a
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x40583d
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x40586c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4058b0
test edi, edi
jne 0x405877
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4058aa
Function at 0x4028d0
Capabilities:
Terminate process

Disassembly:
call fcn.00401000
push 0x18
push 0x4029f8
call 0x594000
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.MSVCR120_CLR0400.dll___crtGetShowWindowMode]
movzx ebx, ax
mov dword [ebp - 4], esi
mov eax, dword fs:[0x18]
mov edx, dword [eax + 4]
mov edi, esi
mov esi, 0x4150e8
mov ecx, edx
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
jne 0x404373
xor esi, esi
inc esi
cmp dword [0x4150ec], esi
je 0x404385
cmp dword [0x4150ec], 0
jne 0x402a1e
mov dword [0x4150ec], esi
push 0x4029f4
push 0x4029e4
call sub.MSVCR120_CLR0400.dll__initterm_e
pop ecx
pop ecx
test eax, eax
jne 0x404392
cmp dword [0x4150ec], esi
jne 0x402973
push 0x4029e0
push 0x4029cc
call sub.MSVCR120_CLR0400.dll__initterm
pop ecx
pop ecx
mov dword [0x4150ec], 2
test edi, edi
jne 0x402980
xor eax, eax
mov ecx, 0x4150e8
xchg dword [ecx], eax
cmp dword [0x4150f8], 0
jne 0x4043a3
mov eax, dword [sym.imp.MSVCR120_CLR0400.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov edi, dword [ebp - 0x24]
nop
nop
nop
nop
nop
nop
mov cl, byte [esi]
cmp cl, 0x20
jbe 0x402a14
cmp cl, 0x22
je 0x4043d1
movzx eax, cl
push eax
call dword [sym.imp.MSVCR120_CLR0400.dll__ismbblead]
pop ecx
test eax, eax
jne 0x4043e2
inc esi
mov dword [ebp - 0x20], esi
jmp 0x4029a0
test cl, cl
je 0x402a29
test edi, edi
je 0x402a29
jmp 0x4029a7
mov dword [0x415244], esi
jmp 0x402950
mov al, byte [esi]
test al, al
je 0x402a39
cmp al, 0x20
ja 0x402a39
inc esi
mov dword [ebp - 0x20], esi
jmp 0x402a29
push ebx
push esi
push 0
push 0x400000
call fcn.00403044
mov dword [0x415060], eax
cmp dword [0x415064], 0
jne 0x40441a
push eax
call dword [sym.imp.MSVCR120_CLR0400.dll_exit]
test ecx, ecx
je 0x402a82
push ecx
call fcn.0040117d
jmp 0x402a82
mov eax, esi
pop esi
pop ebp
ret 4
cmp eax, edx
jne 0x402905
xor esi, esi
inc esi
mov edi, esi
jmp 0x402918
push 0x1f
call sub.MSVCR120_CLR0400.dll__amsg_exit
pop ecx
jmp 0x402950
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x404435
push 0x4150f8
call fcn.0040fdd0
pop ecx
test eax, eax
je 0x40298d
push 0
push 2
push 0
mov esi, dword [0x4150f8]
mov ecx, esi
call dword [0x416268]
call esi
jmp 0x40298d
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [ebp - 0x24], edi
jmp 0x4029b0
inc esi
mov dword [ebp - 0x20], esi
jmp 0x4029c3
cmp dword [0x415244], 0
jne 0x40442e
call dword [sym.imp.MSVCR120_CLR0400.dll__cexit]
mov eax, dword [0x415060]
mov dword [ebp - 4], 0xfffffffe
call fcn.004032ee
ret
Function at 0xb3a370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xb3a38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xb63074
push ecx
mov edi, eax
call fcn.00b4e198
mov esi, eax
add esp, 8
test esi, esi
jne 0xb3a3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00b4e02e
push esi
call fcn.00b4dfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret