joyce8/EMBER2024-capa huggingface dataset:
Function at 0x474cd0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
push edi
xor eax, eax
mov ecx, 0x410
mov edi, 0xd0b15c
rep stosd dword es:[edi], eax
mov ecx, 0x10
mov edi, 0xecc228
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x100]
push 0x4d45f0
push eax
call fcn.004741f0
add esp, 8
lea ecx, [ebp - 0x100]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea edx, [ebp - 0x100]
push 0x4d45e0
push edx
mov dword [0xecc268], eax
call fcn.004741f0
mov ecx, dword [0xecc268]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 8
lea eax, [ebp - 0x100]
push eax
push ecx
call esi
lea edx, [ebp - 0x100]
push str.BCprfeeaqtceAFaieloeJA
push edx
mov dword [0xecc26c], eax
call fcn.00474220
mov ecx, dword [0xecc268]
add esp, 8
lea eax, [ebp - 0x100]
push eax
push ecx
call esi
lea edx, [ebp - 0x100]
push str.SRgeba_dCFoiklme
push edx
mov dword [0xd0c1a0], eax
call fcn.00474220
mov ecx, dword [0xecc268]
add esp, 8
lea eax, [ebp - 0x100]
push eax
push ecx
call esi
lea edx, [ebp - 0x100]
push str.BCnllows_eNHfafnmdflne
push edx
mov dword [0xd0c19c], eax
call fcn.00474220
mov ecx, dword [0xecc268]
add esp, 8
lea eax, [ebp - 0x100]
push eax
push ecx
call esi
lea edx, [ebp - 0x100]
push str.RSgewtBFlijlbeXPfocienxther
push edx
mov dword [0xd0c1a4], eax
call fcn.00474220
mov ecx, dword [0xecc268]
add esp, 8
lea eax, [ebp - 0x100]
push eax
push ecx
call esi
mov dword [0xd0b158], eax
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x100]
rep stosd dword es:[edi], eax
lea eax, [0x474e06]
push eax
ret
Function at 0x4761f0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x100c
call fcn.0044fbe0
mov ecx, dword [esp + 0x101c]
test ecx, ecx
push ebp
mov ebp, dword [esp + 0x1014]
push esi
mov esi, dword [esp + 0x101c]
push edi
mov eax, esi
je 0x476238
mov edx, dword [esp + 0x1024]
shr edx, 2
xor ecx, 0x6393528e
mov edi, edx
dec edx
test edi, edi
je 0x476238
inc edx
xor dword [eax], ecx
add eax, 4
dec edx
jne 0x476230
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], 0x100
mov esi, dword [esi - 4]
push eax
call fcn.00476180
add esp, 4
test esi, esi
jbe 0x4762d3
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xc], esi
mov esi, dword [esp + 0x18]
push ebx
cmp eax, 0x100
mov ebx, eax
jl 0x4762c3
dec ecx
mov dword [esp + 0x18], ecx
js 0x47628c
mov edx, 1
shl edx, cl
and edx, esi
jmp 0x4762aa
mov ecx, 0x1f
mov dword [esp + 0x18], ecx
mov esi, dword [edi]
add edi, 4
mov edx, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], edi
and edx, 0x80000000
test edx, edx
je 0x4762b7
mov ebx, dword [esp + ebx*4 + 0x820]
jmp 0x4762bb
mov ebx, dword [esp + ebx*4 + 0x24]
cmp ebx, 0x100
jge 0x47627a
mov edx, dword [esp + 0x10]
mov byte [ebp], bl
inc ebp
dec edx
mov dword [esp + 0x10], edx
jne 0x476271
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x100c
ret

Function at 0x4762e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0x14]
push esi
push edi
xor edi, edi
cmp eax, edi
je 0x47631c
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
shl eax, 0x10
mov ecx, dword [ebp + 0x10]
or eax, dword [ebp + 0x14]
mov edx, ecx
not eax
shr ecx, 2
je 0x476311
xor dword [esi], eax
add esi, 4
dec ecx
jne 0x476309
and edx, 3
je 0x47631c
xor byte [esi], al
inc esi
dec edx
jne 0x476316
push 0x38
lea eax, [ebp - 0x38]
push str.1.2.7
push eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
call fcn.004896f0
add esp, 0xc
test eax, eax
je 0x47634a
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], ecx
mov ecx, dword [esi]
lea edx, [ebp - 0x38]
push edi
push edx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ecx
call fcn.00489710
add esp, 8
cmp eax, 1
je 0x47637e
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
push eax
call fcn.0048b040
add esp, 4
test eax, eax
je 0x476396
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov ecx, dword [ebp - 0x28]
sub eax, ecx
mov dword [esi], eax
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x476510
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x4d6948]
test eax, eax
push esi
push edi
mov edi, dword [esp + 0xc]
je 0x476549
xor edx, edx
mov ecx, 0x4d6948
mov eax, edx
mov esi, 8
test al, 1
je 0x476536
xor eax, 0x10810
shr eax, 1
dec esi
jne 0x47652d
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x4d6d48
jb 0x476526
mov ecx, dword [esp + 0x10]
mov edx, ecx
dec ecx
test edx, edx
mov eax, 0xffff
je 0x476578
inc ecx
xor edx, edx
mov dl, byte [edi]
mov esi, eax
and esi, 0xff
shr eax, 8
xor edx, esi
mov edx, dword [edx*4 + 0x4d6948]
xor eax, edx
inc edi
dec ecx
jne 0x47655a
pop edi
xor eax, 0xffff
pop esi
ret
Function at 0x479600
Capabilities:
Create thread

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0x20]
xor ebx, ebx
test eax, eax
push edi
je 0x4796d2
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push ebx
push ebx
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x34], eax
call edi
mov dword [esi + 0x38], eax
mov ecx, dword [0x4e7198]
xor eax, eax
test ecx, ecx
jle 0x479657
lea ecx, [esi + 0x44]
mov edx, dword [esi + 0x24]
inc eax
imul edx, eax
mov dword [ecx - 4], edx
mov edx, dword [esi + 0x34]
mov dword [ecx], edx
mov edx, dword [0x4e7198]
add ecx, 8
cmp eax, edx
jl 0x47963b
mov ecx, dword [esi + eax*8 + 0x38]
lea edx, [esi + 0xc8]
push edx
push 0
push esi
dec ecx
mov dword [esi + eax*8 + 0x38], ecx
push 0x47a2f0
mov dword [esi + eax*8 + 0x40], 0xffffffff
mov ecx, dword [esi + 0x38]
push 0
push 0
mov dword [esi + eax*8 + 0x44], ecx
call fcn.0044f2cb
add esp, 0x18
test eax, eax
mov dword [esi + 0x30], eax
je 0x4796fd
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
lea edx, [esi + 0x40]
push edx
mov edx, dword [0x4e7198]
inc edx
push edx
push eax
call dword [ecx + 0xc]
mov edi, eax
test edi, edi
je 0x4796cc
mov eax, dword [esi + 0x34]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebx
mov ecx, dword [esi + 0x38]
push ecx
call ebx
mov dword [esi + 0x38], 0
mov dword [esi + 0x34], 0
mov eax, edi
pop edi
pop esi
pop ebx
ret
lea edx, [esi + 0xc8]
push edx
push 0
push esi
push 0x47a4d0
push 0
push 0
call fcn.0044f2cb
add esp, 0x18
test eax, eax
mov dword [esi + 0x30], eax
jne 0x4796fd
pop edi
pop esi
mov eax, 0x80004001
pop ebx
ret
pop edi
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x479b40
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x479b4d
xor eax, eax
pop esi
ret
push esi
call fcn.00479c60
mov eax, dword [esi + 0x1c]
add esp, 4
test eax, eax
mov dword [esi + 0x1c4], 0
je 0x479bd8
cmp dword [esi], 0
je 0x479b76
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x48]
mov edi, eax
cmp dword [esi], 0
je 0x479b91
lea edx, [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
pop edi
je 0x479b9a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x30]
test eax, eax
je 0x479bd8
push 0x64
push eax
mov dword [esi + 0x1d0], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x479bc7
mov eax, dword [esi + 0x30]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x30], 0
mov eax, 1
pop esi
ret

Function at 0x47a160
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x47a16d
xor eax, eax
pop esi
ret
lea eax, [esi + 0xd0]
push eax
push 0
push esi
push 0x47a200
push 0
push 0
call fcn.0044f2cb
xor ecx, ecx
add esp, 0x18
test eax, eax
setne cl
mov dword [esi + 0xcc], eax
pop esi
mov eax, ecx
ret
Function at 0x47a1a0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x47a1ad
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0xcc]
test eax, eax
je 0x47a1ed
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x47a1d6
mov eax, dword [esi + 0xcc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0xcc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xcc], 0
mov eax, 1
pop esi
ret
Function at 0x47c210
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 8], esi
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
push eax
push ecx
push 1
call fcn.00481e30
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], esi
jne 0x47c241
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
mov eax, DirectSoundCreate
mov dword [edx + 0x280], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x284], eax
mov edx, dword [ebp - 4]
mov dword [edx + 0x288], esi
mov eax, dword [ebp - 4]
push 0x40
mov dword [eax + 0x28c], esi
push 0x44fa9c
mov ecx, dword [ebp - 4]
push ecx
call fcn.00481c70
push esi
push eax
call fcn.0044fb18
add esp, 0x14
test eax, eax
je 0x47c28f
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edi, dword [ebp + 0x20]
mov edx, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
push edi
push edx
push ebx
mov eax, dword [ebp - 4]
push eax
call fcn.00482050
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ecx
push edx
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00481d30
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.0047a7e0
add esp, 0x28
test eax, eax
jne 0x47c2d4
mov dword [ebp - 8], 1
cmp dword [ebp - 8], esi
jne 0x47c317
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xb4], 0x2000
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xb4]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00482020
add esp, 8
mov edx, dword [ebp - 4]
mov dword [edx + 0xb0], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0xb0], esi
jne 0x47c317
mov dword [ebp - 8], 1
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x98], 0x47a6d0
mov edx, dword [ebp - 4]
mov dword [edx + 0x9c], fcn.0047a730
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xa0], eax
cmp dword [ebp - 8], esi
jne 0x47c3a1
push 0x38
push str.1.2.7
mov edx, dword [ebp - 4]
add edx, 0x78
push edx
call fcn.004896f0
add eax, 6
add esp, 0xc
cmp eax, 6
ja case.0x47c360.5
jmp dword [eax*4 + 0x47c410]
push str.zlib_memory_error
jmp 0x47c389
push str.zlib_stream_error
mov ecx, dword [ebp - 4]
push ecx
jmp 0x47c38d
push str.zlib_version_error
mov edx, dword [ebp - 4]
push edx
jmp 0x47c38d
push str.Unknown_zlib_error
mov eax, dword [ebp - 4]
push eax
call fcn.004818f0
add esp, 8
mov dword [ebp - 8], 1
cmp dword [ebp - 8], esi
je 0x47c3d4
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xb0]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00481fd0
mov ecx, dword [ebp - 4]
push ebx
mov dword [ecx + 0xb0], esi
push edi
mov edx, dword [ebp - 4]
push edx
call fcn.00481ed0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xb0]
mov dword [eax + 0x84], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xb4]
push esi
mov dword [eax + 0x88], edx
push esi
mov eax, dword [ebp - 4]
push eax
call fcn.00481dc0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x481cd0
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x481cea
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x481cea
mov edx, dword [esp + 8]
push edx
push ecx
call eax
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x48eb60
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, 0x131c
call fcn.0044fbe0
mov eax, dword [esp + 0x1320]
push ebx
push ebp
push esi
push edi
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.0048ea30
sub esp, 8
mov edi, esp
mov eax, 0x48ea90
mov dword [edi], eax
push 0
lea edx, [esp + 0x58]
mov ecx, 0x48eaf0
mov dword [edi + 4], ecx
mov dword [esp + 0x28], edx
push 0
lea eax, [esp + 0x74]
mov edx, fcn.00479130
push eax
lea ecx, [esp + 0x30]
mov dword [edi + 8], edx
mov esi, 0x48eb50
push ecx
mov dword [edi + 0xc], esi
call fcn.0049cd70
add esp, 0x20
test eax, eax
jge 0x48ebd3
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x131c
ret
lea edx, [esp + 0x5c]
push 0xffffffffffffffff
push edx
call fcn.0049f420
mov esi, eax
lea eax, [esp + 0x64]
push 0xffffffffffffffff
push eax
call fcn.0049de80
mov ecx, eax
imul ecx, dword [esi + 4]
shl ecx, 1
lea edx, [ecx + 0x24]
mov dword [esp + 0x2c], edx
mov dx, word [esi + 4]
mov esi, dword [esi + 8]
mov eax, 0x10
mov dword [esp + 0x38], eax
mov word [esp + 0x4a], ax
mov word [esp + 0x3e], dx
mov dword [esp + 0x40], esi
mov eax, dword [esp + 0x3e]
and eax, 0xffff
shl eax, 4
cdq
and edx, 7
add eax, edx
sar eax, 3
mov word [esp + 0x48], ax
mov eax, dword [esp + 0x48]
and eax, 0xffff
imul eax, esi
add esp, 0x10
mov dword [esp + 0x40], ecx
add ecx, 0x2c
push ecx
push 0
mov dword [esp + 0x20], 0x46464952
mov dword [esp + 0x28], 0x45564157
mov dword [esp + 0x2c], 0x20746d66
mov word [esp + 0x34], 1
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], 0x61746164
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x48ec8f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x131c
ret
mov ecx, 0xb
lea esi, [esp + 0x18]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x10]
push ecx
push 1
push 2
push 0
push 0x1000
lea edx, [esp + 0x340]
push edx
lea eax, [esp + 0x74]
push eax
lea ebx, [ebp + 0x2c]
call fcn.0049f850
add esp, 0x1c
test eax, eax
je 0x48ed0c
mov ecx, eax
mov edx, ecx
shr ecx, 2
mov edi, ebx
lea esi, [esp + 0x32c]
rep movsd dword es:[edi], dword [esi]
add ebx, eax
lea eax, [esp + 0x10]
push eax
push 1
mov ecx, edx
push 2
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push 0x1000
lea ecx, [esp + 0x340]
push ecx
lea edx, [esp + 0x74]
push edx
call fcn.0049f850
add esp, 0x1c
test eax, eax
jne 0x48ecc8
lea eax, [esp + 0x5c]
push eax
call fcn.0049cc70
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x131c
ret
Function at 0x48f4e0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
xor edx, edx
cmp ecx, edx
je 0x48f580
push ebx
push ebp
push esi
mov esi, dword [ecx]
mov byte [esi + 0x16], dl
mov esi, dword [ecx]
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov byte [esi + 0x18], dl
mov esi, dword [ecx]
mov byte [esi + 0x19], dl
push edi
mov edi, dword [ecx + 4]
xor eax, eax
xor esi, esi
cmp edi, edx
jle 0x48f532
mov ebp, dword [ecx]
xor edx, edx
mov dl, byte [esi + ebp]
mov ebx, eax
shr ebx, 0x18
shl eax, 8
xor edx, ebx
mov edx, dword [edx*4 + 0x4a8a94]
xor eax, edx
inc esi
cmp esi, edi
jl 0x48f513
xor edx, edx
mov edi, dword [ecx + 0xc]
xor esi, esi
cmp edi, edx
jle 0x48f55b
mov ebp, dword [ecx + 8]
xor edx, edx
mov dl, byte [esi + ebp]
mov ebx, eax
shr ebx, 0x18
shl eax, 8
xor edx, ebx
mov edx, dword [edx*4 + 0x4a8a94]
xor eax, edx
inc esi
cmp esi, edi
jl 0x48f53e
mov edx, dword [ecx]
mov byte [edx + 0x16], al
mov esi, dword [ecx]
mov edx, eax
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov edx, eax
shr edx, 0x10
pop edi
mov byte [esi + 0x18], dl
mov ecx, dword [ecx]
pop esi
shr eax, 0x18
pop ebp
mov byte [ecx + 0x19], al
pop ebx
ret
Function at 0x402ec8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404700
test esi, esi
jne 0x402eff
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.004047f0
jmp 0x402f20
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402d64
mov dword [esp], eax
test esi, esi
je 0x402f20
cmp dword [ebx], 0
je 0x402f20
dec esi
jmp 0x402f07
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403218
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x50b008], 0x8088405
inc edx
mov dword [ebx + 0x50b008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4036fc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x50b024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403794
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403774
xor eax, eax
push ebp
push 0x40376d
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 0x4037b0
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 0x403774
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x50b024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x50b024], ax
mov esp, ebp
pop ebp
ret

Function at 0x4044d8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x51304c], 0
je 0x404539
cmp word [0x513220], 0xd7b2
jne 0x404501
cmp dword [0x513228], 0
jbe 0x404501
mov eax, 0x51321c
call dword [0x513238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x50b070
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 0x404560
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x50b034], 0
jne 0x404555
push 0
push 0x50b068
push 0x50b070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4046b4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402b04
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x51304d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40467c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4069d4
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 0x406a3a
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.00404970
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004032a0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406a24
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a41
lea eax, [ebp - 0x10]
call fcn.00404700
ret

Function at 0x40c8b4
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 0x40c8ed
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004047f0
jmp 0x40c8f6
mov eax, ebx
mov edx, esi
call fcn.00404754
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c900
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 0x40c921
mov al, byte [esp]
jmp 0x40c923
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40cfb8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ce20
mov eax, dword [0x512370]
cmp byte [eax], 0
je 0x40d034
mov eax, dword [0x511de8]
call fcn.00403048
call fcn.00402c90
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.00409930
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 0x40d07c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d06a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x511d40]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x513668]
call fcn.00405e04
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 0x40d944
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40da1a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404798
lea eax, [ebp - 8]
call fcn.00404c10
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404bc0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40da04
mov eax, ebx
call fcn.00402b04
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d9fd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404bc0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d9e7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40da2c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d9e7
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40da04
mov eax, dword [ebp - 0x10]
call fcn.00402b34
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40da21
lea eax, [ebp - 8]
call fcn.00404700
ret

Function at 0x40e088
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 0x40e0ec
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.00404970
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409380
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e0f3
lea eax, [ebp - 0xc]
call fcn.00404700
ret

Function at 0x40e8e4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov eax, dword [0x511e4c]
cmp dword [eax], 0
je 0x40e91a
push 0xa
push 0x40e970
mov eax, dword [0x511e4c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_FindResourceA
push eax
mov eax, dword [0x511e4c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_LoadResource
mov dword [esp], eax
jmp 0x40e966
xor eax, eax
mov dword [esp], eax
mov eax, dword [0x512470]
mov eax, dword [eax]
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x40e966
mov ebx, dword [esp + 4]
push 0xa
push 0x40e970
mov esi, dword [ebx + 4]
push esi
call sub.kernel32.dll_FindResourceA
push eax
push esi
call sub.kernel32.dll_LoadResource
mov dword [esp], eax
cmp dword [esp], 0
jne 0x40e966
mov eax, dword [esp + 4]
mov eax, dword [eax]
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
jne 0x40e931
mov eax, dword [esp]
pop ecx
pop edx
pop esi
pop ebx
ret