joyce8/EMBER2024-capa huggingface dataset:
Function at 0x469a30
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x48d0e0], 0
jne 0x469ab1
cmp dword [0x48d100], 0
jne 0x469a60
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x48d100], eax
test eax, eax
jne 0x469a60
push str.GetEnvironmentStrings_failed
call fcn.004692b0
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x48d100]
jmp 0x469a74
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00463018
pop ecx
mov edi, eax
test eax, eax
jne 0x469a6c
lea edi, [ebp + 1]
push edi
call fcn.004629dc
pop ecx
mov ebx, eax
mov dword [0x48d0e4], ebx
test ebx, ebx
jne 0x469a9e
xor eax, eax
jmp 0x469b74
push edi
mov edx, dword [0x48d100]
push edx
push ebx
call fcn.00462e4c
add esp, 0xc
jmp 0x469ad1
xor esi, esi
mov ebx, dword [0x48d0e0]
jmp 0x469acb
push eax
call fcn.00463018
pop ecx
test eax, eax
jne 0x469ac7
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x469abb
lea ebx, [esi + 4]
push 4
mov dword [0x48d0e8], ebx
inc ebx
push ebx
call fcn.004624b4
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x469af4
xor eax, eax
jmp 0x469b74
cmp dword [0x48d0e0], 0
jne 0x469b25
xor esi, esi
mov ebx, dword [0x48d0e4]
mov eax, dword [esp]
mov ebp, eax
jmp 0x469b16
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00463018
pop ecx
mov edi, eax
test eax, eax
jne 0x469b0c
jmp 0x469b56
xor esi, esi
mov ebx, dword [0x48d0e0]
mov eax, dword [esp]
mov edi, eax
jmp 0x469b50
push eax
call fcn.00463018
pop ecx
test eax, eax
je 0x469b45
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x469b49
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x469b34
mov eax, dword [0x48d0e0]
test eax, eax
je 0x469b66
push eax
call fcn.004629ec
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x48d0e0], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x470018
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x470046
mov eax, ebx
call fcn.00470abc
cmp dword [ebx + 0x3c], 0
je 0x47003f
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x4700b7
mov edx, dword [ebx + 0x1a6]
cmp dword [edx + 0x10], 0
je 0x4700a9
cmp dword [ebx + 8], 0
je 0x470068
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1a6]
call dword [edx]
test eax, eax
jne 0x47007a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4700a9
cmp dword [ebx + 8], 0
je 0x47005b
cmp eax, 3
je 0x47008d
dec eax
jne 0x47005b
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x47005b
mov edx, dword [ebx + 0x132]
add dword [eax + 8], edx
jmp 0x47005b
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x4700d5
cmp dword [ebx + 0x10], 0xcc
je 0x4700d5
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004700e0
pop ebx
ret
Function at 0x438ca2
Capabilities:
Encode data using xor

Disassembly:
push 0x438a14
pop edx
mov edi, edi
sub ebx, 0x500de423
call fcn.00438cd6
or edi, edi
xor dword [ecx], edx
push 0xe2754a74
pop edi
add ebx, ebx
and ebx, ebx
inc ecx
and edi, edi
push ebx
pop ebx
sub ebx, 0x4793d4f5
cmp ecx, eax
jne fcn.00438ca2
add edi, edi
ret
Function at 0x100044c9
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0xa0
lea eax, [esp + 0x30]
lea ecx, [esp + 0x40]
mov dword [0x10028154], 0x121e
mov dword [0x10028158], 0x1c3
mov dword [esp], eax
mov dword [esp + 0x2c], ecx
call fcn.100058ff
lea ecx, [0x10004639]
mov edx, 0xc67
mov dword [0x10028158], 0xc67
mov esi, dword [esp + 0x30]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x6c], 0x128000
mov dword [0x10028154], 0x423d
mov esi, dword [0x10028140]
mov dword [esp + 0x70], esi
mov esi, dword [0x10028144]
mov dword [esp + 0x64], esi
mov esi, dword [0x10028148]
mov dword [esp + 0x84], esi
mov esi, dword [0x1002814c]
mov dword [esp + 0x4c], esi
mov esi, dword [0x10028150]
mov dword [esp + 0x60], esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edx
jmp 0x1000458e
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x3c]
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
cmp dword [eax + ecx], 0x4550
je 0x100045dc
jmp 0x100045a5
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
cmp word [ecx], 0x5a4d
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ecx
je 0x10004570
mov eax, dword [esp + 0x1c]
add eax, 0xfffff000
and eax, 0xfffff000
mov ecx, dword [esp + 0x14]
add ecx, 0x954
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0xc]
mov dword [0x10028158], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
jmp 0x1000458e
lea eax, [esp + 0x40]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x74], ecx
mov edx, dword [esp + 0x14]
add edx, 0xffffe1fb
mov dword [0x10028154], edx
mov edx, dword [esp + 0x18]
mov esi, dword [ecx + edx + 0x50]
mov dword [esp + 0x8c], esi
mov esi, dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.1000575c
mov dword [0x10028158], 0xe4a
mov ecx, esp
lea edx, [esp + 0x40]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
lea esp, [ebp - 4]
pop esi
pop ebp
ret
Function at 0x10004691
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x1000470c
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x18], 0x6f
je 0x100046fb
jmp 0x100046e0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x14], eax
je 0x100046bd
xor eax, eax
mov dword [ebp - 0x1c], eax
jmp 0x1000478f
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x10004774
jmp 0x100046e0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x1000474d
jmp 0x100046e0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], edx
je 0x100046ce
mov eax, dword [ebp - 0x20]
add eax, 1
cmp eax, 0x104
setl cl
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x25], cl
mov al, byte [ebp - 0x25]
test al, 1
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], edx
jne 0x1000470c
jmp 0x100046ce
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x100046e0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x100046ea
jmp 0x100046e0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x1c], eax
jne 0x100046e0
mov eax, dword [ebp - 0x1c]
add esp, 0x28
pop ebp
ret
Function at 0x10004d3e
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x10028160], 0
mov edi, dword [0x10028154]
add edi, 0xac6
mov dword [0x10028154], edi
mov byte [0x10028164], 0
mov edi, dword [0x10028158]
add edi, 0x899
mov dword [0x10028158], edi
mov dword [0x1002815c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x10004dc2
xor eax, eax
mov ecx, 0x117c
mov dword [0x10028154], 0x117c
mov dword [0x1002815c], 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
jmp 0x10004df4
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x10028158], 0x21f
mov eax, dword [0x1002815c]
add eax, 1
mov dword [0x1002815c], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x10004dc2
jmp 0x10004d9f
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov edx, 0x100
add eax, 0xfffff2bb
mov dword [0x10028158], eax
mov eax, dword [0x10028160]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + ecx]
add edi, eax
mov eax, ecx
xor ebx, ebx
mov dword [ebp - 0x28], edx
mov edx, ebx
mov ebx, dword [ebp - 0x10]
div ebx
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov eax, edi
cdq
mov edi, dword [ebp - 0x28]
idiv edi
mov dword [0x10028160], edx
mov esi, dword [ebp - 0x18]
mov bl, byte [esi + ecx]
mov byte [0x10028164], bl
mov dword [0x10028158], 0x19c9
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov bl, byte [0x10028164]
mov ecx, dword [0x10028160]
mov byte [esi + ecx], bl
mov dword [0x10028158], 0x237e
mov ecx, dword [0x1002815c]
add ecx, 1
mov dword [0x1002815c], ecx
cmp ecx, 0x100
mov dword [ebp - 0x2c], ecx
jge 0x10004ea7
mov eax, dword [0x10028154]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
jmp 0x10004df4
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10004ec6
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, 0xfffff7ea
xor ebx, ebx
mov dword [0x1002815c], 0
mov dword [0x10028160], 0
mov dword [0x10028168], 0
mov dword [0x10028154], 0x1640
cmp eax, 0
mov dword [ebp - 0x10], eax
mov eax, ebx
mov dword [ebp - 0x14], eax
mov eax, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], edi
je 0x10005043
jmp 0x10004f43
mov eax, dword [ebp - 0x30]
add eax, 0xfffff418
mov dword [ebp - 0x2c], eax
jmp 0x10005043
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov esi, 0x100
add ecx, 1
mov dword [ebp - 0x34], eax
mov eax, ecx
mov dword [ebp - 0x38], edx
cdq
idiv esi
mov dword [0x1002815c], edx
mov ecx, dword [ebp - 0x24]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x38]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x3c], edx
cdq
idiv esi
mov dword [0x10028160], edx
mov esi, dword [ebp - 0x3c]
mov cl, byte [ecx + esi]
mov byte [0x10028164], cl
mov edi, dword [0x10028158]
add edi, 0xfffff1b0
mov dword [0x10028158], edi
mov edi, dword [ebp - 0x24]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov cl, byte [0x10028164]
mov edx, dword [0x10028160]
mov byte [edi + edx], cl
mov edx, dword [0x1002815c]
movzx edx, byte [edi + edx]
mov ebx, dword [0x10028160]
movzx ebx, byte [edi + ebx]
add ebx, edx
mov dword [0x10028158], 0x494
and ebx, 0xff
mov dword [0x10028168], ebx
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x34]
mov cl, byte [edx + ecx]
xor cl, byte [edi + ebx]
mov ebx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x34]
mov byte [ebx + edx], cl
mov ecx, dword [0x10028154]
mov edx, ecx
add edx, 0x126e
mov dword [0x10028154], edx
mov edx, dword [ebp - 0x34]
add edx, 1
mov esi, dword [ebp - 0x10]
cmp edx, esi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x40], edx
je 0x10004f33
mov eax, dword [0x1002815c]
mov ecx, dword [0x10028160]
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], edx
jmp 0x10004f43
mov eax, dword [ebp - 0x2c]
mov dword [0x10028158], eax
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100051c7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x5c
mov eax, dword [ebp + 8]
mov dword [0x10028154], 0xf07
mov dword [ebp - 0x10], eax
call fcn.10005053
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x1000520d
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [0x10028154], 0x1d5b
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov esi, dword [edx + eax + 0x18]
cmp esi, 0
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
je 0x1000535a
jmp 0x100052bf
mov al, byte [ebp - 0x31]
test al, 1
jne 0x1000527f
jmp 0x1000532d
mov eax, dword [ebp - 0x38]
mov ecx, eax
mov edx, dword [ebp - 0x3c]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x41], bh
mov byte [ebp - 0x31], cl
je 0x10005248
jmp 0x100052f0
mov eax, dword [ebp - 0x48]
mov cx, word [eax]
mov edx, dword [ebp - 0x24]
add edx, 0x1c
movzx esi, cx
mov edi, dword [ebp - 0x1c]
add edi, edx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], esi
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x4c]
add eax, dword [ecx]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x50]
add edx, dword [eax + esi*4]
mov dword [0x10028154], 0x249e
mov dword [ebp - 0x30], edx
jmp 0x1000535a
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edx
jmp 0x10005254
mov eax, dword [ebp - 0x40]
add eax, 1
mov cl, byte [ebp - 0x41]
cmp cl, 0
setne dl
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x61], dl
mov al, byte [ebp - 0x31]
mov cl, byte [ebp - 0x61]
and al, cl
mov edx, dword [ebp - 0x60]
cmp edx, 0x20
setb ah
and al, ah
test al, 1
mov dword [ebp - 0x38], edx
jne 0x10005254
jmp 0x10005248
mov eax, dword [ebp - 0x48]
add eax, 2
mov dword [ebp - 0x68], eax
xor eax, eax
mov ecx, dword [ebp - 0x5c]
add ecx, 1
mov edx, dword [ebp - 0x2c]
cmp ecx, edx
mov esi, dword [ebp - 0x68]
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x30], eax
jb 0x100052d1
mov eax, dword [ebp - 0x30]
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1000575c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [0x10028154], 0x270
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
call fcn.10004691
cmp eax, 0
sete dl
mov byte [ebp - 0x29], dl
xor eax, eax
mov cl, byte [ebp - 0x29]
test cl, 1
mov dword [ebp - 0x30], eax
jne 0x100057ba
jmp 0x100057b2
mov eax, dword [ebp - 0x34]
add eax, 0x1909
mov dword [ebp - 0x38], eax
mov dword [0x10028154], 0x1327
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
add esp, 0x54
pop ebp
ret
xor eax, eax
mov dword [0x10028154], 0x24bc
mov ecx, dword [0x10028158]
add ecx, 0xfffff2ac
mov dword [0x10028158], ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov cl, byte [eax + 0x10006378]
mov dl, byte [eax + 0x10006349]
sub dl, cl
mov byte [ebp + eax - 0x20], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x3c], eax
jne 0x100057db
lea eax, [ebp - 0x20]
mov dword [0x10028154], 0x380
mov dword [0x10028158], 0xffffeaa5
mov dword [ebp - 0x40], eax
call fcn.1000548b
mov dword [esp], eax
mov eax, dword [ebp - 0x40]
mov dword [esp + 4], eax
call fcn.100055a6
xor ecx, ecx
cmp eax, 0
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x30], ecx
je 0x100057b2
mov eax, dword [ebp - 0x44]
mov dword [0x10028154], 0x761
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x24]
mov dword [esp + 4], ecx
mov dword [ebp - 0x34], eax
call fcn.10004a4f
mov eax, dword [ebp - 0x34]
mov word [eax], 0x5a4d
mov dword [eax + 0x3c], 0xd0
mov dword [eax + 0xd0], 0x4550
add eax, 0xffc00000
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 8], eax
mov dword [0x10028154], 0x1e36
xor eax, eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x34]
mov dword [ecx + 0x28], edx
cmp edx, 0
mov dword [ebp - 0x30], eax
je 0x100057b2
jmp 0x10005797
Function at 0x402a80
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040446c
test esi, esi
jne 0x402ab6
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040455c
jmp 0x402ad4
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402994
mov edi, eax
test esi, esi
je 0x402ad4
cmp dword [ebx], 0
je 0x402ad4
dec esi
jmp 0x402abd
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403578
Capabilities:
Query or enumerate registry value

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

Function at 0x4042f0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46d04c], 0
je 0x404351
cmp word [0x46d220], 0xd7b2
jne 0x404319
cmp dword [0x46d228], 0
jbe 0x404319
mov eax, 0x46d21c
call dword [0x46d238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46b058
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 0x404378
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46b020], 0
jne 0x40436d
push 0
push 0x46b078
push 0x46b058
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405e00
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406030
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405e83
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406030
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405e83
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40604c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405f0c
xor eax, eax
push ebp
push 0x405f05
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405c48
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405eea
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40606c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405eea
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405f0c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x406026
cmp byte [ebp - 0xd], 0
jne 0x405f53
cmp byte [ebp - 0x12], 0
je 0x406026
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405f6c
dec ebx
cmp byte [ebx], 0x2e
je 0x405f7b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405f6b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406026
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405fb8
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406026
cmp byte [ebp - 0xd], 0
je 0x406026
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406026
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret