joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10157a04
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
cmp ecx, 0
sete dl
cmp eax, 0
sete dh
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov byte [ebp - 0x15], dl
mov byte [ebp - 0x16], dh
mov eax, 0xffffffff
mov cl, byte [ebp - 0x15]
mov dl, byte [ebp - 0x16]
and cl, dl
test cl, 1
mov dword [ebp - 0x1c], eax
jne 0x10157bc4
mov dword [0x10167ce4], 0x25ed
mov dword [0x10167ce0], 0x14fc
mov ecx, dword fs:[0x18]
mov dword [0x10167ce0], 0xffffeafc
mov eax, dword [ecx + 0x30]
mov dword [0x10167ce4], 0xffffd3cf
mov eax, dword [eax + 0xc]
add eax, 0x14
mov ecx, dword [ebp - 0x10]
cmp ecx, 0
setne dl
mov esi, eax
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x21], dl
mov dword [ebp - 0x28], esi
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov eax, dword [eax]
mov edx, dword [ebp - 0x20]
cmp eax, edx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], ecx
je 0x10157bc4
mov eax, dword [ebp - 0x2c]
add eax, 0x24
mov dword [0x10167ce0], 0xe77
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x28]
mov esi, dword [ecx + 0x10]
mov edi, dword [ebp - 0x10]
cmp esi, edi
sete bl
mov bh, byte [ebp - 0x21]
and bh, bl
test bh, 1
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], esi
jne 0x10157aea
jmp 0x10157afa
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff8
mov dword [ebp - 0x1c], eax
jmp 0x10157bc4
xor eax, eax
mov ecx, dword [ebp - 0x30]
mov dx, word [ecx]
mov dword [0x10167ce0], 0x26b6
shr dx, 1
movzx esi, dx
cmp dx, 0
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], eax
je 0x10157a9a
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x34]
mov dx, word [ecx + eax*2]
mov si, dx
add si, 0xffbf
mov di, dx
add di, 0x20
cmp si, 0x1a
mov dword [ebp - 0x44], eax
mov word [ebp - 0x46], dx
mov word [ebp - 0x48], di
jb 0x10157b5e
mov ax, word [ebp - 0x46]
mov word [ebp - 0x48], ax
mov ax, word [ebp - 0x48]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x44]
cmp word [ecx + edx*2], ax
sete bl
cmp ax, 0
sete bh
mov al, bl
xor al, 1
or bh, al
test bh, 1
mov byte [ebp - 0x49], bl
jne 0x10157ba0
mov dword [0x10167ce0], 0x667
mov eax, dword [ebp - 0x44]
add eax, 1
mov ecx, dword [ebp - 0x3c]
cmp eax, ecx
mov dword [ebp - 0x40], eax
jb 0x10157b2a
mov al, byte [ebp - 0x49]
test al, 1
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], ecx
jne 0x10157bb2
jmp 0x10157a9a
mov dword [0x10167ce4], 0xffffc994
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x1c], eax
jmp 0x10157bc4
mov eax, dword [ebp - 0x1c]
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1015800d
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [0x10167cec], 0
mov byte [0x10167cf0], 0
mov dword [0x10167ce0], 0x1f87
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
xor eax, eax
mov dword [0x10167ce8], 0
mov dword [ebp - 0x1c], eax
jmp 0x1015806f
xor eax, eax
mov dword [0x10167ce0], 0xd51
mov dword [0x10167ce8], 0
mov dword [ebp - 0x20], eax
jmp 0x10158097
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x10167ce8]
add eax, 1
mov dword [0x10167ce8], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1015806f
jmp 0x10158054
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x10167cf4], 0
mov dword [ebp - 0x24], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov dword [0x10167ce0], 0x17de
mov edi, dword [0x10167cec]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x10167cf4], esi
mov dword [0x10167ce4], 0x51e
mov dword [0x10167ce0], 0xffffe312
mov eax, esi
cdq
idiv ecx
mov dword [0x10167cec], edx
mov ecx, dword [ebp - 0x24]
mov cl, byte [ebx + ecx]
mov byte [0x10167cf0], cl
mov dword [0x10167ce0], 0x1980
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], cl
mov esi, dword [0x10167ce0]
add esi, 0x1ff7
mov dword [0x10167ce4], esi
mov cl, byte [0x10167cf0]
mov esi, dword [0x10167cec]
mov byte [ebx + esi], cl
mov dword [0x10167ce0], 0x5e6
mov esi, dword [0x10167ce4]
add esi, 0xfffffd1a
mov dword [0x10167ce4], esi
mov esi, dword [0x10167ce8]
add esi, 1
mov dword [0x10167ce8], esi
cmp esi, 0x100
mov dword [ebp - 0x20], esi
jl 0x10158097
mov dword [0x10167ce0], 0x1e31
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101585b7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov eax, dword [ebp + 8]
mov dword [0x10167ce4], 0x26de
mov dword [ebp - 0x10], eax
call fcn.10157bcf
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov dword [0x10167ce4], 0xe73
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 0x10158607
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x78]
mov dword [0x10167ce0], 0x16bd
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 0x10158726
jmp 0x10158686
mov eax, dword [ebp - 0x34]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [0x10167ce0], 0x22a3
mov dword [ebp - 0x30], edi
jmp 0x10158726
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], edx
jmp 0x1015869a
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], eax
jmp 0x1015866a
mov eax, dword [ebp - 0x48]
mov ecx, eax
mov edx, dword [ebp - 0x44]
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 - 0x4c], eax
mov byte [ebp - 0x4d], bh
mov byte [ebp - 0x4e], cl
je 0x101586f1
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x54], eax
mov al, byte [ebp - 0x4d]
cmp al, 0
setne cl
mov dl, byte [ebp - 0x4e]
and dl, cl
mov esi, dword [ebp - 0x54]
cmp esi, 0x20
setb cl
and dl, cl
test dl, 1
mov dword [ebp - 0x48], esi
jne 0x1015869a
mov al, byte [ebp - 0x4e]
test al, 1
jne 0x10158642
jmp 0x101586fe
xor eax, eax
mov ecx, dword [ebp - 0x34]
add ecx, 2
mov edx, dword [ebp - 0x40]
add edx, 1
mov esi, dword [ebp - 0x2c]
cmp edx, esi
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x30], eax
jb 0x1015866a
mov eax, dword [ebp - 0x30]
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10158785
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 [0x10167ce0], 0x1927
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x101587d9
mov dword [0x10167ce0], 0x21a9
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x18], 0x6f
je 0x10158848
jmp 0x1015889b
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
je 0x10158830
jmp 0x1015880f
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff6
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2], 0x64
je 0x10158859
jmp 0x1015889b
mov dword [0x10167ce0], 0x9f6
mov eax, dword [ebp - 0x18]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], eax
jl 0x101587d9
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x14], eax
je 0x101587bb
jmp 0x1015889b
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x101587f1
jmp 0x1015889b
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x1015889b
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x10], 0x6c
sete dl
mov byte [ebp - 0x21], dl
mov al, byte [ebp - 0x21]
test al, 1
jne 0x10158884
jmp 0x1015889b
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x28], eax
je 0x101588a2
xor eax, eax
mov dword [ebp - 0x28], eax
jmp 0x101588a2
mov eax, dword [ebp - 0x28]
add esp, 0x28
pop ebp
ret
Function at 0x101588aa
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
jmp 0x101588cc
xor eax, eax
add esp, 0x50
pop esi
pop ebp
ret
mov eax, dword [ebp - 0x30]
mov cl, byte [eax + 0x1015b5a3]
mov dl, byte [eax + 0x1015b574]
sub dl, cl
mov byte [ebp + eax - 0x24], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x30], eax
jne 0x101588cc
lea eax, [ebp - 0x24]
mov dword [0x10167ce0], 0x1372
mov dword [ebp - 0x34], eax
call fcn.10158fbf
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.10157d4c
cmp eax, 0
mov dword [ebp - 0x38], eax
je 0x101588c4
mov eax, dword [ebp - 0x38]
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 ecx, dword [0x10167ce0]
add ecx, 0xffffdbc9
mov dword [0x10167ce0], ecx
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x3c], eax
call fcn.10157f09
xor eax, eax
mov ecx, dword [0x10167ce0]
add ecx, 0xffffe005
mov dword [0x10167ce4], ecx
mov ecx, dword [ebp - 0x3c]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x44], ecx
mov dword [0x10167ce0], 0x19c4
mov ecx, dword [ebp - 0x3c]
mov dword [edx + 0x34], ecx
add ecx, 0x14fc
mov esi, dword [ebp - 0x3c]
cmp esi, 0
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], eax
je 0x101589cf
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
add esp, 0x50
pop esi
pop ebp
ret
Function at 0x10158af2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x10167ce8], 0
mov dword [0x10167cec], 0
mov dword [0x10167cf8], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
xor eax, eax
mov ecx, dword [0x10167ce4]
add ecx, 0xfffff338
mov dword [0x10167ce0], ecx
mov ecx, dword [ebp - 0x10]
cmp ecx, 0
mov edx, eax
mov esi, eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], eax
je 0x10158c74
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov dword [0x10167ce0], 0x20d1
mov dword [0x10167ce4], 0x7e7
add ecx, 1
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x10167ce8], edx
mov ecx, dword [ebp - 0x1c]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x30]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x10167cec], edx
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x10167cf0], cl
mov edi, dword [ebp - 0x1c]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov cl, byte [0x10167cf0]
mov edx, dword [0x10167cec]
mov byte [edi + edx], cl
mov dword [0x10167ce4], 0x2664
mov edx, dword [0x10167ce8]
movzx edx, byte [edi + edx]
mov ebx, dword [0x10167cec]
movzx ebx, byte [edi + ebx]
add ebx, edx
and ebx, 0xff
mov dword [0x10167cf8], ebx
mov dword [0x10167ce0], 0x1fb1
mov cl, byte [edi + ebx]
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x2c]
mov ch, byte [edx + ebx]
mov byte [0x10167cfd], ch
mov byte [0x10167cfe], cl
xor ch, cl
mov byte [0x10167cfc], ch
mov dword [0x10167ce0], 0x251f
mov edx, dword [ebp - 0x18]
mov byte [edx + ebx], ch
mov dword [0x10167ce4], 0x13d3
add ebx, 1
mov edx, dword [ebp - 0x10]
cmp ebx, edx
mov dword [ebp - 0x38], ebx
je 0x10158c74
mov eax, dword [0x10167ce8]
mov ecx, dword [0x10167cec]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], edx
jmp 0x10158b61
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10158db0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x78
mov esi, esp
mov eax, 0x10
call fcn.10151920
mov eax, esp
and eax, 0xfffffff8
mov esp, eax
mov dword [esi + 0x1c], eax
call fcn.10001066
xor ecx, ecx
cmp eax, 0
mov dword [esi + 0x18], ecx
je 0x10158e25
jmp 0x10158e1b
lea eax, [esi + 0x20]
mov dword [0x10167ce4], 0x341
mov ecx, dword [esi + 0x1c]
mov edx, dword [ecx + 8]
push edx
push eax
call fcn.101588aa
add esp, 8
sub esp, 4
mov ecx, esp
lea edx, [esi + 0x20]
mov dword [ecx], edx
call eax
mov eax, 1
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x18]
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
lea eax, [esi + 0x20]
mov dword [0x10167ce0], 0x1f19
sub esp, 4
mov ecx, dword [esi + 0x1c]
mov dword [esp], ecx
mov dword [esi + 0x10], eax
call fcn.10158197
add esp, 4
lea ecx, [0x10158731]
mov edx, dword [esi + 0x1c]
mov edi, dword [edx]
mov dword [esi + 0x74], edi
mov dword [esi + 0x48], 0x12b400
mov edi, dword [0x10167ccc]
mov dword [esi + 0x40], edi
mov edi, dword [0x10167cd0]
mov dword [esi + 0x2c], edi
mov edi, dword [0x10167cd4]
mov dword [esi + 0x68], edi
mov edi, dword [0x10167cd8]
mov dword [esi + 0x70], edi
mov edi, dword [0x10167cdc]
mov dword [esi + 0x5c], edi
mov dword [0x10167ce4], 0x4bf
mov dword [esi + 0xc], eax
mov dword [esi + 8], ecx
mov eax, dword [esi + 8]
cmp word [eax], 0x5a4d
mov dword [esi + 4], eax
jne 0x10158eb6
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esi], ecx
je 0x10158ec8
mov eax, dword [esi + 4]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esi + 8], eax
jmp 0x10158e98
mov eax, dword [esi + 4]
mov dword [esi + 0x44], eax
mov dword [0x10167ce4], 0xe73
mov ecx, dword [esi]
mov edx, dword [eax + ecx + 0x50]
mov dword [esi + 0x3c], edx
call fcn.10158785
xor ecx, ecx
cmp eax, 0
mov dword [esi + 0x14], ecx
je 0x10158de4
jmp 0x10158e15
Function at 0x42859d
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x438ef0
call fcn.004290e4
push 1
call fcn.00428707
pop ecx
test al, al
jne 0x428454
push 7
call fcn.00428eac
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.004286d2
mov byte [ebp - 0x24], al
mov eax, dword [0x43f814]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x42844d
test eax, eax
jne 0x4284be
mov dword [0x43f814], ecx
push 0x42c30c
push 0x42c2f4
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x4284a1
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x428597
push 0x42c2f0
push 0x42c2c0
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x43f814], 2
jmp 0x4284c3
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.00428874
pop ecx
call fcn.00428ea0
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x4284f3
push esi
call fcn.004287ea
pop ecx
test al, al
je 0x4284f3
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.00428e38
call esi
call fcn.00428ea6
mov esi, eax
cmp dword [esi], edi
je 0x428511
push esi
call fcn.004287ea
pop ecx
test al, al
je 0x428511
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
call fcn.00428fc2
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_narrow_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.00428ff5
test al, al
jne 0x42853c
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x428545
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.00428891
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x428597
call fcn.00429129
ret
call fcn.004282db
jmp 0x428435

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
mov ecx, 0x1bae2750
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
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
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x338f4ae2
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x47927275
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x1d410bd1
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4045ec
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00406e00
test esi, esi
jne 0x404624
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406f3c
jmp 0x404642
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404530
mov edi, eax
test esi, esi
je 0x404642
cmp dword [ebx], 0
je 0x404642
dec esi
jmp 0x40462b
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x405f28
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x637054], 0
je 0x405f89
cmp word [0x637330], 0xd7b2
jne 0x405f51
cmp dword [0x637338], 0
jbe 0x405f51
mov eax, 0x63732c
call dword [0x637348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
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 0x405fb4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x61b030], 0
jne 0x405fa5
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406134
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x61b034], 0
je 0x40615a
mov edx, esi
mov eax, ebx
call dword [0x61b034]
jmp 0x406169
mov eax, 8
call fcn.0040422c
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x637055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4060fc
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x408e58
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x408fbf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406e00
cmp si, word [0x61b7d0]
jb 0x408ef2
cmp si, word [0x61b9d0]
ja 0x408ef2
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408ef2
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x61b7d0]
jae 0x408ecc
mov edi, ebx
dec edi
jmp 0x408eed
cmp si, word [ebx*8 + 0x61b7d0]
jbe 0x408edc
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408eed
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x61b7d4]
call fcn.00408d68
jmp 0x408ef2
cmp edi, dword [ebp - 0xc]
jae 0x408eb6
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408fa1
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408fa1
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407010
push dword [ebp - 0x164]
push 0x408fdc
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00407010
push dword [ebp - 0x168]
push 0x408fec
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407010
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.004073c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408fc6
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406df8
ret