joyce8/EMBER2024-capa huggingface dataset:
Function at 0x497850
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xb8
mov eax, dword [esp + 0xc4]
push ebx
push ebp
push esi
mov esi, dword [eax + 4]
push edi
lea ecx, [esp + 0x50]
push 0
lea edx, [esp + 0x60]
push ecx
lea eax, [esp + 0x34]
and esi, 0xffff
push edx
push eax
push esi
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x28], 0xc1800000
mov dword [esp + 0x2c], 0xc1800000
mov dword [esp + 0x30], 0xc1000000
mov dword [esp + 0x4c], 0x41800000
mov dword [esp + 0x50], 0x41800000
mov dword [esp + 0x54], 0x41000000
mov dword [esp + 0x24], esi
call fcn.004afbc0
lea ecx, [esp + 0x7c]
push ecx
push esi
call fcn.004a0c70
add esp, 0x1c
test eax, eax
jne 0x4978fd
push esi
push str.no_entity_with_model__d_n
push 1
call dword [0x11f5020]
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xb8
ret
mov edx, dword [esp + 0xcc]
lea ebx, [esp + 0x50]
lea esi, [esp + 0x68]
lea ebp, [esp + 0x5c]
xor edi, edi
sub ebx, edx
sub esi, edx
mov ecx, edx
sub ebp, edx
fld dword [ebx + ecx]
fadd dword [esi + ecx]
fadd dword [0x4d63a8]
fcomp dword [ecx]
fnstsw ax
test ah, 1
jne 0x4978f0
fld dword [ecx + ebp]
fadd dword [esi + ecx]
fsub dword [0x4d63a8]
fcomp dword [ecx]
fnstsw ax
test ah, 0x41
je 0x4978f0
inc edi
add ecx, 4
cmp edi, 2
jl 0x49791a
fld dword [edx + 8]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
fadd dword [0x4d683c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x48], ecx
push 0x10001
lea eax, [esp + 0x48]
fstp dword [esp + 0x2c]
fld dword [edx + 8]
mov edx, dword [esp + 0xd4]
lea ecx, [esp + 0x3c]
fsub dword [0x4d6840]
push edx
push eax
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x30]
push edx
fstp dword [esp + 0x60]
lea ecx, [esp + 0x88]
push eax
push ecx
call fcn.004afac0
mov ecx, 0x15
mov esi, eax
lea edi, [esp + 0x90]
add esp, 0x1c
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x78]
test eax, eax
jne 0x4978f0
mov eax, dword [esp + 0x74]
test eax, eax
jne 0x4978f0
mov eax, dword [esp + 0xc4]
cmp eax, 0x3ff
je 0x4978f0
push eax
call fcn.004a0c20
mov ecx, dword [esp + 0x14]
add esp, 4
cmp eax, ecx
jne 0x4978f0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xb8
ret
Function at 0x498390
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x64
push ebx
mov ebx, dword [esp + 0x6c]
push ebp
push esi
mov edx, dword [ebx + 8]
mov eax, dword [ebx]
fld dword [ebx + 8]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x7c]
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], eax
fsub dword [0x4d736c]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], ecx
push edx
lea eax, [esp + 0x18]
push 4
lea ecx, [esp + 0x28]
fstp dword [esp + 0x24]
push eax
lea edx, [esp + 0x38]
push ecx
push edx
call fcn.004b0900
mov ecx, 9
mov esi, eax
lea edi, [esp + 0x40]
add esp, 0x14
rep movsd dword es:[edi], dword [esi]
fld dword [esp + 0x30]
fcomp dword [0x4d63c0]
fnstsw ax
test ah, 1
jne 0x49840e
fld dword [0x4d63c0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
fld dword [esp + 0x3c]
fadd dword [0x4d63c0]
mov ebp, dword [esp + 0x7c]
mov dword [esp + 0x78], 0x41000000
fstp dword [esp + 0x10]
fld dword [esp + 0x78]
fmul dword [ebp]
mov ecx, dword [esp + 0x80]
lea edx, [esp + 0x14]
push ecx
push 4
fadd dword [ebx]
push edx
lea ecx, [esp + 0x5c]
fst dword [esp + 0x2c]
fld dword [esp + 0x84]
fmul dword [ebp + 4]
fadd dword [ebx + 4]
fstp dword [esp + 0x30]
fld dword [esp + 0x1c]
fadd dword [0x4d683c]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x2c]
push eax
push ecx
fstp dword [esp + 0x3c]
fstp dword [esp + 0x28]
fld dword [esp + 0x3c]
fld dword [0x11eff44]
fadd dword [0x4d6840]
fsubp st(1)
fstp dword [esp + 0x30]
call fcn.004b0900
mov ecx, 9
mov esi, eax
lea edi, [esp + 0x40]
add esp, 0x14
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x4984cf
fld dword [esp + 0x10]
fsub dword [0x11eff48]
fsub dword [0x4d63ac]
fcomp dword [esp + 0x3c]
fnstsw ax
test ah, 0x41
je 0x4984fc
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x10], edx
fld dword [esp + 0x78]
fadd dword [0x4d63ac]
fst dword [esp + 0x78]
fcomp dword [0x4d6578]
fnstsw ax
test ah, 0x41
jne 0x498428
fld dword [0x4d6388]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
fld dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
fsub dword [0x4d6960]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], eax
push edx
mov dword [esp + 0x1c], ecx
fstp dword [esp + 0x20]
call fcn.004afb10
add esp, 4
test al, 0x30
jne 0x4984ee
fld dword [esp + 0x78]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
Function at 0x4a7630
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x11f4dd8]
push ebx
push esi
mov edx, dword [ecx + 0xc4]
mov ecx, dword [esp + 0x10]
lea eax, [eax + eax*2]
xor esi, esi
mov dword [ecx + 8], esi
mov dword [ecx + 4], esi
lea ebx, [edx + eax*8]
mov dword [ecx], esi
cmp dword [ebx + 8], esi
jle 0x4a7726
push edi
mov edi, dword [0x11f4dd8]
mov eax, dword [ebx + 0xc]
add eax, esi
mov edx, dword [edi + 0xbc]
mov eax, dword [edx + eax*4]
cdq
xor eax, edx
sub eax, edx
mov edx, dword [edi + 0xb4]
mov edi, dword [edi + 0xa4]
inc esi
lea eax, [edx + eax*8]
mov edx, dword [eax]
lea edx, [edx + edx*2]
fld dword [edi + edx*4]
fadd dword [ecx]
fstp dword [ecx]
mov edx, dword [eax]
mov edi, dword [0x11f4dd8]
mov edi, dword [edi + 0xa4]
lea edx, [edx + edx*2]
fld dword [edi + edx*4 + 4]
fadd dword [ecx + 4]
fstp dword [ecx + 4]
mov edx, dword [eax]
mov edi, dword [0x11f4dd8]
mov edi, dword [edi + 0xa4]
lea edx, [edx + edx*2]
fld dword [edi + edx*4 + 8]
fadd dword [ecx + 8]
fstp dword [ecx + 8]
mov edx, dword [eax + 4]
mov edi, dword [0x11f4dd8]
mov edi, dword [edi + 0xa4]
lea edx, [edx + edx*2]
fld dword [edi + edx*4]
fadd dword [ecx]
fstp dword [ecx]
mov edx, dword [eax + 4]
mov edi, dword [0x11f4dd8]
mov edi, dword [edi + 0xa4]
lea edx, [edx + edx*2]
fld dword [edi + edx*4 + 4]
fadd dword [ecx + 4]
fstp dword [ecx + 4]
mov eax, dword [eax + 4]
mov edx, dword [0x11f4dd8]
mov edx, dword [edx + 0xa4]
lea eax, [eax + eax*2]
fld dword [edx + eax*4 + 8]
fadd dword [ecx + 8]
fstp dword [ecx + 8]
cmp esi, dword [ebx + 8]
jl 0x4a7660
pop edi
fild dword [ebx + 8]
pop esi
pop ebx
fdivr qword [0x4d63d8]
fld st(0)
fmul dword [ecx]
fstp dword [ecx]
fld st(0)
fmul dword [ecx + 4]
fstp dword [ecx + 4]
fmul dword [ecx + 8]
fstp dword [ecx + 8]
ret
Function at 0x4b2b30
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0xc]
xor ecx, ecx
test edi, edi
jle 0x4b2b54
push esi
mov esi, dword [esp + 0xc]
mov al, cl
mov dl, 0x77
imul dl
mov dl, byte [ecx + esi]
xor dl, al
mov byte [ecx + esi], dl
inc ecx
cmp ecx, edi
jl 0x4b2b40
pop esi
pop edi
ret

Function at 0x4bbc10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d5619
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor ebx, ebx
push 1
push 1
mov dword [esp + 0x1c], esi
mov dword [esi], ebx
call fcn.004c13f0
mov eax, dword [esi]
mov ecx, dword [eax + 8]
mov byte [ecx], bl
lea edi, [esi + 4]
mov eax, 0x10
mov dword [esp + 0x20], ebx
mov dword [edi + 8], eax
mov dword [edi + 0xc], ebx
mov dword [edi], ebx
mov dword [edi + 4], ebx
lea ebp, [esi + 0x14]
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], ebx
mov dword [ebp], ebx
mov dword [ebp + 4], ebx
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov eax, dword [edi]
mov byte [esp + 0x20], 3
cmp eax, ebx
mov dword [esp + 0x10], ebx
jle 0x4bbca9
mov edx, dword [esi + 0x10]
mov eax, dword [esp + 0x10]
mov ecx, dword [edx + eax*4]
push ecx
call fcn.004c550c
mov eax, dword [esp + 0x14]
mov ecx, dword [edi]
add esp, 4
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4bbc87
mov ecx, edi
call fcn.004c0610
mov eax, dword [ebp]
xor edi, edi
cmp eax, ebx
jle 0x4bbcd0
mov edx, dword [esi + 0x20]
mov eax, dword [edx + edi*4]
push eax
call fcn.004c550c
mov eax, dword [ebp]
add esp, 4
inc edi
cmp edi, eax
jl 0x4bbcb9
mov ecx, ebp
call fcn.004c0610
mov eax, dword [esi + 0x30]
cmp eax, ebx
je 0x4bbce7
push eax
call fcn.004c550c
add esp, 4
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x30], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov eax, 0x3f800000
mov dword [esi + 0x34], ebx
mov byte [esi + 0x6d], 1
mov dword [esi + 0x70], ebx
mov dword [esi + 0x68], 0x3ccccccd
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0x3f000000
mov dword [esi + 0x40], ebx
mov dword [esi + 0x50], 0x3f333333
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], eax
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4cc3e1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4f7ba8
cmp edx, dword [eax]
je 0x4cc403
add eax, 8
inc ecx
cmp eax, 0x4f7c38
jl 0x4cc3f4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4f7ba8]
jne 0x4cc531
mov eax, dword [0xac9b04]
cmp eax, 1
je 0x4cc50b
test eax, eax
jne 0x4cc434
cmp dword [0x4f7064], 1
je 0x4cc50b
cmp edx, 0xfc
je 0x4cc531
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4cc46b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004cbbd0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004c8880
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4cc4ae
lea eax, [ebp - 0x1a4]
push eax
call fcn.004c8880
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4e74d8
push edi
call fcn.004c2e40
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004cbbd0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004cbbe0
lea eax, [ebp - 0xa0]
push 0x4d7b34
push eax
call fcn.004cbbe0
push dword [esi + 0x4f7bac]
lea eax, [ebp - 0xa0]
push eax
call fcn.004cbbe0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004d0dcf
add esp, 0x2c
pop edi
jmp 0x4cc531
lea eax, [ebp + 8]
lea esi, [esi + 0x4f7bac]
push 0
push eax
push dword [esi]
call fcn.004c8880
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 0x1000157d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0xc]
push esi
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x100015be
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x14]
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
ret

Function at 0x100015c3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10002119
mov esi, eax
test esi, esi
je 0x100015e5
mov ecx, esi
call fcn.10002229
cmp eax, 1
mov edi, 0x20119
je 0x100015ea
mov edi, 0x20019
test esi, esi
je 0x100015f6
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
lea eax, [ebp - 4]
push eax
push edi
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x1000162f
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x14]
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x10002195
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor ebx, ebx
push str.Kernel32.DLL
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
call edi
push str.User32.DLL
mov dword [esi + 0x1c], eax
call edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x1c]
cmp eax, ebx
je 0x10002213
push str.GetNativeSystemInfo
push eax
call edi
push str.IsWow64Process
mov dword [esi + 4], eax
push dword [esi + 0x1c]
call edi
push str.IsWow64Process2
mov dword [esi + 8], eax
push dword [esi + 0x1c]
call edi
push str.Wow64EnableWow64FsRedirection
mov dword [esi + 0xc], eax
push dword [esi + 0x1c]
call edi
push str.GetSystemWow64DirectoryA
mov dword [esi + 0x10], eax
push dword [esi + 0x1c]
call edi
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x20]
cmp eax, ebx
je 0x10002225
push str.IsWow64Message
push eax
call edi
mov dword [esi + 0x18], eax
pop edi
pop esi
pop ebx
ret
Function at 0x10002476
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and byte [ebp - 0x104], 0
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
and byte [ebp - 0x208], 0
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x207]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
pop edi
jne 0x100024c7
leave
ret
lea eax, [ebp - 0x104]
push str.Version.dll
push eax
lea eax, [ebp - 0x208]
push str._s_s
push eax
call fcn.10005dc4
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
leave
ret

Function at 0x10003d00
Capabilities:
Contain obfuscated stackstrings

Disassembly:
cwde
pop ss
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.10003943
push eax
push esi
push dword [ebp + 8]
call fcn.100038f8
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.10003943
push eax
push esi
push dword [ebp + 8]
call fcn.100038f8
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.10003933
xchg ebp, eax
sbb eax, 0x9d88972b
jl 0x10003db8
invalid
invalid

Function at 0x100059aa
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
call fcn.10003943
pop ecx
push eax
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.100038f8
add esp, 0xc
mov dword [ebp - 0x37c], eax

Function at 0x10005e16
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10005e36
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1000a594
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x10005e59
test byte [esp + 8], 2
je 0x10005e59
call fcn.1000a607
mov dword [eax], 0xd
call fcn.1000a610
mov dword [eax], 5
jmp 0x10005e32
xor eax, eax
ret
Function at 0x40b801
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x411a00
cmp edx, dword [eax]
je 0x40b823
add eax, 8
inc ecx
cmp eax, 0x411a90
jl 0x40b814
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x411a00]
jne 0x40b951
mov eax, dword [0x41911c]
cmp eax, 1
je 0x40b92b
test eax, eax
jne 0x40b854
cmp dword [0x411488], 1
je 0x40b92b
cmp edx, 0xfc
je 0x40b951
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40b88b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00408740
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00408910
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40b8ce
lea eax, [ebp - 0x1a4]
push eax
call fcn.00408910
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41050c
push edi
call fcn.00408fa0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00408740
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00408750
lea eax, [ebp - 0xa0]
push 0x4104ec
push eax
call fcn.00408750
push dword [esi + 0x411a04]
lea eax, [ebp - 0xa0]
push eax
call fcn.00408750
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040e2c6
add esp, 0x2c
pop edi
jmp 0x40b951
lea eax, [ebp + 8]
lea esi, [esi + 0x411a04]
push 0
push eax
push dword [esi]
call fcn.00408910
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 0x60f56b
Capabilities:
Encode data using xor

Disassembly:
cmc
mov edi, 0xdebb49e6
and eax, dword [ebx]
dec edi
jae 0x60f59c
pop ebx
cli
cmp edi, dword [ebp - 0x6d]
inc esi
and esp, ebx
aam 0xe6
mov dh, 0x32
xchg edi, eax
loope 0x60f5d9
xchg esi, eax
mov esi, eax
xchg esi, eax
and dword [ecx + 0x7b89015b], 0xffffffaa
mov ebx, 0x30694bbb
xchg ebx, eax
and al, 0xbd
inc esp
or ebx, dword [edx]
sbb ah, bh
loopne 0x60f5ea
xchg dword [ebp + 0x5bc34f98], edx
add dword [eax - 0x5d], esi
jg 0x60f5ad
fstp xword [edi - 0x3f0b934a]
push edi
add dh, byte [ebp - 0x13]
mov dl, byte [edx + 0x52]
add eax, 0xf4177aba
dec edi
adc edx, dword [eax + 0x5863bfd7]
aas
cld
nop
dec ebx
inc ebx
popfd
aam 0x94
jae 0x60f624
mov dh, 0x6c
hlt
mov al, 0x79
wait
jl 0x60f5eb
retf 0xc3d4
xchg dword [edx - 0x33], ecx
and al, 0xd5
push ss
mov edx, 0x9f63ef5c
or cl, ch
adc eax, eax
ror dword [ecx - 0x5f52749f], cl
inc edi
sub al, 0x21
popal
mov ebp, dword [ebp + 0x212c47a0]
sbb eax, 0x1653ecfb
sti
in al, dx
push ebx
push ss
push edi
outsb dx, byte [esi]
cld
stc
lodsd eax, dword [esi]
or byte [ebx + 0x37], al
sbb dl, byte [eax + 0x4bec02cb]
ret 0x5e5e
push edx
jg 0x60f5f2
nop
sub dword [esi + 0x53], 7
xor cl, byte [ebx]
mov eax, dword [0x168f45d3]
jp 0x60f614
adc al, byte [edi]
retf
jecxz 0x60f610
mov dl, 0xf7
mov dl, 0x2a
adc byte [ebx + 0x738f8882], al
lodsb al, byte [esi]
retf 0x7b51
Function at 0x405000
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405015
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405054
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x405050
lea ebx, [ebx]
cmp esi, edx
jae 0x405054
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x405040
cmp esi, edx
jb 0x405059
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x409bd0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6cd400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
mov ebx, ecx
push 0x29
push ebx
mov dword [ebp - 8], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x409c1f
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005e96ad
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
test eax, eax
je 0x409c0e
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
seto cl
push esi
push 0x6d53a0
neg ecx
or ecx, eax
push ecx
call fcn.005ea1b7
mov esi, eax
add esp, 8
test esi, esi
je 0x409c72
push 0
lea eax, [ebp - 8]
push eax
push esi
push 0
push 0x29
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x409c84
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call fcn.004c56c2
add esp, 4
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005e96ad
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
push esi
call fcn.00403800
push esi
call fcn.004c56c2
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop esi
mov al, 1
pop ebx
call fcn.005e96ad
mov esp, ebp
pop ebp
ret
Function at 0x40e1e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x622ef1
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x6cd400]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x1c], 0
push eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
push 0x676964
mov dword [ebp - 0x20], esi
mov word [esi], ax
call fcn.00403c30
mov dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push 0x678b60
push 0x80000000
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e30f
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e306
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40e306
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c56b9
mov edi, eax
add esp, 4
test edi, edi
je 0x40e306
lea eax, [ebp - 0x14]
push eax
push edi
push 0
push 0
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e2fd
push dword [ebp - 0x14]
mov ecx, esi
push edi
call fcn.00403c30
mov edx, esi
lea ecx, [ebp - 0x38]
call fcn.004a1b70
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.00403640
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.00403680
push edi
call fcn.004c56c2
add esp, 4
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00401520
add eax, 0xf8
cmp dword [esi + 0x14], 8
jb 0x40e323
mov edx, dword [esi]
jmp 0x40e325
mov edx, esi
mov ecx, dword [eax]
push edx
push 0x678b90
push eax
call dword [ecx + 0x14]
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005e96ad
mov esp, ebp
pop ebp
ret